Libav is a fork of the popular FFmpeg multimedia tool, best known for appearing in the Ubuntu packages. Include the full, uncut console output when asking for help with a command.

learn more… | top users | synonyms (1)

16
votes
2answers
26k views

Why would I choose Libav over FFmpeg, or is there even a difference?

From what I've seen it looks to me like Libav's avconv is thought to become a successor of ffmpeg — is that correct? If that's true, why is that so? What exactly is libav doing better and why would ...
12
votes
2answers
10k views

Resizing videos with ffmpeg/avconv to fit into static sized player

I have a html 5 video player which is 700px wide, 400px high. I'm trying to use avconv to use ffmpeg to resize (while retaining the aspect ratio) and making sure it fits into my player. Input can be ...
7
votes
1answer
7k views

Install latest libav/avconv on OSX? [closed]

How can I install avconv on OS X?
4
votes
1answer
9k views

avconv giving error on audio stream

Trying to convert an mkv file to avi: avconv -i 1.mkv ./converted/1.avi Getting this output: avconv version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers built on Mar 22 ...
3
votes
1answer
3k views

Burn-in subtitles with avconv?

I have a mkv file and want to convert it to an DVD compatible mpg file with avconv. How can I also burn-in one subtitle stream from the same mkv file? avconv -i input.mkv -map 0:0 -map 0:1 -target ...
3
votes
1answer
727 views

A way to capture error output from ffmpeg/avconv in a bash script

I am trying to batch convert a bunch of files and i am doing an simple listing of the converted files to a text document so that i can stop the script and continue from approximately were i started. ...
3
votes
0answers
28 views

Why does avconv change the fps when deinterlacing?

I'm playing around a bit with avconv to have a better understanding of all these video formats, but I don't get this: I have a .MTS 1080i of 25fps (mediainfo) that I deinterlaced with avconv -i ...
3
votes
1answer
2k views

How do I merge a folder of PNG images to a mp4 movie using avconv?

I have a folder containing many time stamped PNG images which I'd like to merge to a short movie. The contents of that directory looks like this: └── images ├── img_20130421_115547.png ├── ...
3
votes
0answers
541 views

Accurate and reliable movie editing with avconv

I'm trying to perform movie editing in an automated way with avconv. It is made in two steps: extract some parts of an input movie: concatenate the parts to form an output movie: I tried some ...
3
votes
0answers
2k views

Avconv increases file size

I am using the version of avconv in Ubuntu 12.04 to archive videos. I would preferably use some kind of lossless video compression (e.g., huffyuv or FFV1), but using the original video stream (copy ...
2
votes
1answer
898 views

LIBFAAC cannot resample channels

Im using avconv to convert video files into MP4, but whenever I try to encode files with 6 or 8 channels into 2 channels using libfaac I get these error messages: Can not resample 8 channels @ 44100 ...
2
votes
1answer
474 views

Stream/record desktop, mic and system output

Im try to stream my desktop, and two audio: system output, and mic. Im using this command, but the audio from my system (hw:0,0) dont hear in output file... avconv \ -f alsa -i pulse \ -f alsa -i ...
2
votes
1answer
1k views

how to record/stream multiple audio output from a single input?

This is the command I am currently using to stream live audio under the Raspbian distro: ffmpeg -f alsa -ac 1 -i hw:1 -ar 44100 -f flv rtmp://10.255.11.53/ The functionality I am looking for is ...
2
votes
1answer
2k views

Converting RGB images into lossless video with avconv / ffmpeg

I am trying to convert a series of PNG24 images containing a screen animation to a lossless video, so that every pixel is reproduced exactly as it was in the original. But avconv (and ffmpeg) both ...
2
votes
1answer
698 views

imagemagick image conversion piped in avconv fails

I am trying to write a script that should take all sort of images (format, size...) and create a video with avconv. I've managed to make it work with a series of jpg (all the same size though) and I'm ...
2
votes
1answer
458 views

How do I recompile libav on ubuntu 12.04 without breaking anything

I have a "Little" script for screencasting - I'll skip to the good part. In my avconv command I record 3 different sources simultaneously to 3 different tracks. The only way I know of getting audio ...
2
votes
1answer
331 views

Extract M4A audio from a video and associate the artwork

Why on Ubuntu 12.04, when I extract audio in M4A from a video (MP4 or FLV, etc.) with avconv: avconv -i video.mp4 -c:a libvo_aacenc sound.m4a there is a video stream in it, and if I want only ...
2
votes
1answer
111 views

Debian: Version number of installed package differ from those in repository causing dependency issues

I can't install libav-dbg due to dependency issues with version numbers of installed packages, that do not correspond to those in the repository. How is this possible, and how can i resolve the issue? ...
2
votes
1answer
261 views

Codec choice for non CPU-intensive video transcoding

I am trying to achieve real-time transcoding of mkv / H264 videos on a low-end (slow CPU) platform. Using the following command line as a testing harness: avconv -i test.mkv -c:v mjpeg -q:v 3 -c:a ...
2
votes
0answers
424 views

Non monotonically increasing dts to muxer in stream 1

I have an error with 1gb videofile and avconv Application provided invalid, non monotonically increasing dts to muxer in stream 1: 177873 >= 177849 av_interleaved_write_frame(): Invalid argument ...
2
votes
0answers
308 views

ffmpeg/avconv crashes when video frame isn't expected size

I'm capturing my webcam using ffmpeg/avconv, but I keep running into this problem: The v4l2 frame is 828212 bytes, but 829440 bytes are expected And then it crashes. It should just skip that frame, ...
1
vote
1answer
812 views

Resizing with avconv causes pixellation in output

I am trying to resize a video from 1920x1800 to 1280x720 for phone viewing. This is the command I used: avconv -i input.mkv \ -map 0:v -map 0:a:1 -map 0:s:0 \ # map video, 2nd audio stream, and ...
1
vote
1answer
1k views

What is the difference beetween ffmpeg and libav, and how to chech which one is used for application? [duplicate]

I am working with some gstreamer based application and some other streaming stuff and I came to some confusion: What is difference between libav and ffmpeg? I found no explanation what are they and ...
1
vote
2answers
1k views

User Generated Chroma Key Composite Videos with FFMPEG / AVCONV

I want to create a system where a user can upload two videos to a website, one of which has blue screen in the background, and the website uses AVCONV (or similar) to create a composite video of the ...
1
vote
1answer
175 views

How to convert any video to .avi with wmv1 codec using ffmpeg/avconv?

I have installed ffmpeg to convert a video. I am trying to convert a .mp4 to a .avi video with the codec wmv1. How to do this? I am using the command avconv in a Kubuntu terminal. Last attempt I did ...
1
vote
2answers
359 views

Bash script to extract audio from video

I have written this little script to batch extract audio from video using avconv. It was working fine, but strangely it doesn't work anymore (since I have changed the codec from aac to mp3). The ...
1
vote
2answers
4k views

Using avconv (ffmpeg) to concatenate a bunch of .bmps into a mkv/avi video

Trying to figure out how to get avconv to concatenate a bunch of .bmps together into a video file. Here's what I've got so far: avconv -f image2 -i Capture/%d.bmp -vcodec mpeg4 -r 24 -b:v 20M ...
1
vote
1answer
446 views

Video concatenating, with overlay

I have a video recorded from a gopro which is split into 3 parts as the maximum filesize is reached after about 17 minutes and the gopro automatically splits it into multiple parts. I also have a ...
1
vote
2answers
3k views

reduce size of mp4 using avconv

I'm looking at this question Reduce size of MP4 and I want to do it using avconv, however, I'd also like to shrink the frame size by about half. My problem is when I do avconv -i "$file" -s 640x480 ...
1
vote
1answer
177 views

Where in FFmpeg is the DTS decoder located?

Where is the actual DTS decoder located? When I search through the FFmpeg folders, dtsdec.c and dtshddec.c show up, but they're only 2–4 kB, and don't have any actual decoding code anywhere within ...
1
vote
1answer
2k views

Simplest video grab from webcam: how to

On Raspbery Pi's Raspbian (based on Debian Wheezy) I'm trying to make a simplest video grab from a Logitech C910 webcam to a video file via ffmpeg/avconv. I say: $ avconv -t 5 -f video4linux2 -s ...
1
vote
1answer
715 views

How to use avconv filters after encoding?

I have this avconv command: avconv -i file -s [new size options] -vf "[filters]" /root/converted/1.mp4 Avconv uses the -vf filters before the -s scaling, but I need one avconv command to: Resize ...
1
vote
1answer
162 views

Avconv generating HUGE metadata over 90mb for 718mb video file

This is the metadata file, extracted with Atom box studio: https://www.dropbox.com/s/tok76wospngf854/moov Video was converted with avconv, info: /usr/local/bin/avconv -version avconv version 9.4, ...
1
vote
1answer
2k views

avconv (ffmpeg) on Raspberry Pi often corrupts extracted video still images

I'm using avconv on a Raspberry Pi to try to fetch a still image from an IP camera with an RTSP stream of H.264 video: $ avconv -v verbose -i $url -fflags discardcorrupt -t 00:00:01 -r 0.1 -an -vsync ...
1
vote
1answer
40 views

How can I save an avconv/ffmpeg command for later?

I'd like to save my entire avconv command with options so that I can reuse it without typing it in every time. I would still need to specify the input and output filenames. How do I do this? I'm on ...
1
vote
2answers
50 views

How do I capture my second monitor using avconv?

With this command: avconv -f x11grab -s 2560x1440 -i :0.0 I can stream video from my main monitor. I also have a second, 1080p monitor on which I do my gaming. I want to stream from that monitor. ...
1
vote
1answer
366 views

speed up video using avconv without quality loss

After having read this page, I'm using avconv (which in this case is apparently same as ffmpeg, and which I need to use instead since I'm on Ubuntu trusty) to speed up a .swf video. I don't want a ...
1
vote
1answer
1k views

avconv mkv to mkv with audio compression bug

In order to make quality tests, I would like to compress the audio part (to a low bitrate) of a matroska file without damaging video. Audio codec is AAC and video codec is H264. I am using avconv on ...
1
vote
1answer
515 views

Avconv Can not resample 6 channels

I'm getting a message, that it cannot resample 6 channels into 2 channel audio. This is the command i'm using to convert into h.264+aac: avconv -i ...
1
vote
1answer
754 views

Reuse transcoding outputs to generate multiple files with AvConv

I am trying to find information about how to transcode a file into multiple outputs in one shot, but I don't seem to be able to. Most of the results I find describe the opposite: merging multiple ...
1
vote
1answer
932 views

Avconv video merging audio overlays

I join 3 video files using avconv and create a intermediate file, using following syntax cat inter1.mpg inter2.mpg inter3.mpg > interAll.mpg inter1.mpg,inter2.mpg contains no audio track. After ...
1
vote
0answers
598 views

Using avconv to convert an animated gif to mp4 with sound

I want to convert an animated gif and a midi (music) file into a mp4 video. Is it possible? I saw a lot of topics on documentation, foruns and stackexchange sites, but I didn't find. It works with 1 ...
1
vote
0answers
187 views

Why can't I seem to get the framerate right when using avconv to convert a sequence of images to a gif?

I need to convert a series of images to gifs. I found three broad ways to do this. One involving ImageMagick, One involving gifsicle and another involving avconv. I can't use Imagemagick because ...
1
vote
1answer
228 views

How to make avi (MJPEG codec) by avconv for iphone?

I try to make video from pack of jpg by avconv and open it on iphone. I make avi file using MJPEG by command: avconv -r 10 -i %06d.jpg -r 10 -vcodec mjpeg -qscale 1 out.avi Eveything is ok on my ...
1
vote
0answers
128 views

Piping images to avconv at unknown fps

I am currently reading images from a camera "as fast as possible" (>50fps), outputting them as JPEGs, and piping them to avconv using the image2pipe input. What is a good approach to getting the ...
1
vote
1answer
564 views

How to use avconv or ffmpeg to convert any video to an exact size and shape

We have a system that supports streaming video, but we support multiple players. I have multiple systems that I COULD use for this. Currently, I've been using the media server that we use to stream ...
1
vote
0answers
364 views

Use avconv to convert iMovie DV streams to other formats

I have a bunch of DV streams that were imported from a DV camcorder using iMovie. Unfortunately, neither avconv nor VLC seem to be capable of converting these files correctly, whereas QuickTime ...
1
vote
0answers
320 views

AVCONV errors while grabbing af stream from an IPCAM

When im trying to grab a stream from my D-Link DSC-932L Cam, using avconv, I keep getting errors. Depending of framerate etc. the proces will terminate whitin a minute. Here is the string and common ...
1
vote
1answer
2k views

Encoding multiple video streams with a single avconv invocation

I played with avconv on Ubuntu and I'm now able to e.g. record the desktop with sound from a soundcard. One thing I wanted to do was recording two video inputs at the same time, for instance the ...
0
votes
1answer
35 views

Confused about timecode/fps results when using avconv/avprobe

I'm using avprobe to get information about timecode and fps from videos. Getting the information isn't a problem but I'm a bit confused as to the result. When running avprobe on an H.264 file I'm ...