Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.

learn more… | top users | synonyms

3
votes
2answers
1k views

What is mencoder's -speed option doing?

I need to change the playback speed of a video, but can't use mencoder to do it. Changing the speed that a video plays at seems like the sort've thing that any video encoding software should be able ...
5
votes
2answers
3k views

Most efficient way to convert a large ALAC library to MP3

I have a large library of CDs ripped to alac which I use as my main music library. I'd like to convert a copy of this library to vbr mp3 for portable devices, however I don't want to have to do this ...
2
votes
1answer
786 views

FFmpeg/X264: Split video mid-GOP without reencoding entire stream

I've got an H264 video (Stored in an MP4 file). Each GOP is approx 10s long. I want to trim the first couple of seconds off the video, which means I need to split the first GOP. Is there a way to do ...
9
votes
2answers
8k views

Convert audio file to FLAC with ffmpeg?

can I convert one of this format to compatible 16000.0 Sample Rate FLAC file? kAudioFormatLinearPCM = 'lpcm', kAudioFormatAppleIMA4 = 'ima4', kAudioFormatMPEG4AAC ...
2
votes
1answer
1k views

ffmpeg - Output file does not contain any stream

When I try to take Screenshots from an AVI file I get the above message with an empty jpg/png file. But Screenshots from MP4 files works with any problems. My OS is Debian. MP4 Command: ffmpeg ...
3
votes
1answer
2k views

ffmpeg trying to remove the first few seconds of video

I'm trying to remove a few seconds off the front of a video stream (audio already excluded), and I'm getting strange results: I would think that for every second I increase -ss by, the resulting file ...
0
votes
1answer
432 views

transform all the images from the current directory to a video

I'd like to use ffmpeg to transform all images from the current directory to a video. the image file name is not like, image1.jpg, image2.jpg.
2
votes
1answer
1k views

General ffmpeg command for encoding all formats to FLV

I am creating a video sharing/tube site and I'm in need of a single good general purpose ffmpeg command to use to transcode any video that's uploaded by my users. I'm surprised more people haven't ...
37
votes
2answers
59k views

How can I convert MP4 video to MP3 audio with ffmpeg?

I need to extract an MP3 audio track from an MP4 video with ffmpeg. I can do this for .flv -> mp3, but I don't know the command line parameters for mp4->mp3. For example, flv -> mp3: ffmpeg -i ...
1
vote
1answer
171 views

How do I convert an iPhone 720p video into a similar quality Flash video using ffmpeg?

What are the proper arguments to ffmpeg to covert an iPhone4 720p video into a similar quality Flash video? I tried the following which resulted in a low quality Flash video: ffmpeg -i movie.mov ...
3
votes
1answer
2k views

FFMPEG add audio to a video but clip it to the video length

I'm trying to create a video from an image sequence and add audio with FFMPEG The frame sequence is only 25 frames long but the audio is several minutes. I want FFMPEG to clip the audio to the length ...
1
vote
1answer
687 views

How to extract image from single-frame h264 mkv file?

ffmpeg -i IMG_9353.JPG -pix_fmt yuv420p -y qqq.y4m x264 qqq.y4m --preset placebo --tune stillimage --crf 33 -o qqq.mkv How to extract the picture now? qqq.mkv is non-empty, size depends on "crf" ...
0
votes
1answer
1k views

How to convert AVI videos to small (smartphone) size

I want to convert some .avi videos to a lower resolution, both to considerably shrink the files' sizes and to make them easily viewable on a smartphone. How can I do the conversion? I have ffmpeg ...
2
votes
1answer
717 views

ffmpeg - convert MOV to AVI but decrease frame rate

I have several videos that are filmed with a portable camera and saved in .MOV. Since these are videos of university lectures and have video of the boardwork done by the professor, I would like to ...
3
votes
1answer
8k views

how do I convert .iso to .mp4 without mounting with ffmpeg

The problem is - I want to convert .iso with dvd to .mp4 (h264/ac3), but I cannot mount it via mount -o loop, because I'm on a virtual machine that doesn't allow to do that. Googling doesn't help. ...
2
votes
2answers
939 views

How can I extract stills from a movie?

I would like to make a flipbook from a movie I made on my Mac. Is there any software that will extract, say 100 representative frames from 2 minutes of motion, or do I need to make screenshots ...
25
votes
4answers
21k views

How can I make ffmpeg be quieter/less verbose?

By default ffmpeg sends a whole lotta messages to stderr: when built, how built, codecs, etc, etc, etc. How can I make it quieter? I've tried -v 0 (and -v 10 since the documentation just coyly says ...
2
votes
0answers
1k views

Transcoding a video from GoToMeeting WMV to MP4 using FFMPEG on Windows locks up dos window

I've been tasked with converting some pre-recorded GoToMeeting videos from wmv to mp4 format. I've got the GoToMeeting transcoder app available from Citrix (g2mtranscoder.exe) that takes the source ...
23
votes
1answer
23k views

How can I normalize audio using ffmpeg?

I want the loudest peak sound in a movie clip to be as loud as the codec allows, then have every other sound amplified accordingly. What's a practical example in order to accomplish this using ...
5
votes
2answers
18k views

Using ffmpeg to encode a raw video to H.264 format

On a Ubuntu 10.04, I am trying to encode a raw video (YUV format) to a H.264 encoded video using below ffmpeg commands: ffmpeg -i input.mp4 output.h264 but I get an error saying Unsupported ...
2
votes
1answer
3k views

Why does encoding a video using the MJPEG codec take longer than MPEG-4?

I am testing the encoding performance (MPEG-4 and MJPEG) of a smart camera. I have written an application in OpenCV/FFMPEG for performing encoding, where the application captures images from the ...
11
votes
4answers
18k views

How can I pipe output of ffmpeg to ffplay?

How can I pipe the output of ffmpeg to ffplay? At the moment I use a workaround in bash : mkfifo spam (ffplay spam 2> /dev/null &) ; capture /dev/stdout | ffmpeg -i - spam
0
votes
1answer
3k views

.avi to .flv through ffmpeg

When I try to convert avi to flv, I always get gritty and pixelated output flv videos of size that are 1/4 of the the input avi videos were. The current set of parameters I use is ffmpeg -i input.avi ...
1
vote
2answers
3k views

video encode frame rate change

I have a video in mp4 with frame rate of .33 (i frame for 3 seconds). I want to increase the frame rate to 5 frames/sec. I have tried the below command but it does not do any thing... ffmpeg -i ...
19
votes
3answers
11k views

Improve quality of ffmpeg created jpgs

I'm using ffmpeg to take a mjpeg feed from an IP camera and convert it into a series of still jpeg images. Here's the command I'm using: ffmpeg -i http://xxx:xxx@xx.xx.xx.xx/vid.mjpg -f image2 ...
3
votes
1answer
2k views

How do I control the streaming frame rate of ffmpeg?

I am using ffmpeg to stream video: ffmpeg -i $file -f mpegts udp://hostname:port On another machine, I am using VLC to play the output stream. The problem I have is that VLC is playing the stream ...
2
votes
1answer
598 views

How do I take an FMS h264 stream and wrap it in a container?

I have an FMS (Flash Media Server 4) that writes out the video streams to .f4v files. As far as I can see and understand, it only writes the video/audio data with no container at all, though I could ...
2
votes
1answer
534 views

Which ffmpeg options does ffmpegx use behind the scenes?

In ffmpegx, there's an option for "High Quality". How can I obtain the same effect by using the command line tool ffmpeg? More generally, is it possible to check which ffmpeg options are used behind ...
2
votes
2answers
8k views

How do I tell ffmpeg to transcode to a video codec supported by Windows Media player?

The command below executed without error. ffmpeg -i thevideo.mkv outvideo.avi Subsequent attempts to play outvideo.avi in Windows Media player threw this error You may need an additional video ...
5
votes
1answer
2k views

Two FFMPEG commands simultaneoulsy

I want to multicast two videos to two different ports of a multicast address. I am able to send one video to one port at a time. But I want a command where both the videos are sent to the ports at the ...
1
vote
2answers
7k views

how to combine or concatenate two video files with ffmpeg?

I have tried to concatenate 2 video files (avi) into one sigle video: cat input1.avi input2.avi | ffmpeg -f avi -i - -vcodec copy -acodec copy final.avi .. but this does not concatenate the videos. ...
4
votes
4answers
12k views

How to specify audio and video bitrate

I have a mov file with the following media information: Stream 0 Type: Video Codec: H264-MPEG-4 AVC (part 10)avc1 Language: English Resolution: 1280x720 Frame rate: 24 Stream 1 Type: Audio Codec: ...
1
vote
3answers
2k views

FFmpeg command to convert to DivX

I'm trying to use ffmpeg to convert video to DivX. Here is my current command line: -vtag DIVX -f avi -vcodec msmpeg4 -s 640x480 -b 345k -acodec libmp3lame -ab 256 -ac 2 -ar 48000 The problem with ...
3
votes
5answers
543 views

Downloading, Re-encoding, and Joining YouTube Videos

I've downloaded a set of Youtube Videos that are part of the same episode. Currently I've tried converting them into mp4 using ffmpeg and then joining with MP4Box. for f in *.flv; do ffmpeg -i "$f" ...
0
votes
1answer
1k views

FFMPEG: how to add watermark to video?

My Platform: Ubuntu 10.10 + FFMPEG 0.5.3(I installed ffmpeg from source) I try to add Watermark to a .MOV video with FFMPEG 0.5.3 imlib2.so (Please note FFMPEG 0.6+ dont support imlib2.so, so I use ...
1
vote
2answers
2k views

Using FFMpeg to cut a video into 2 minute clips

I have a video lasting 10 minutes which I want to cut into five 2-minute segments. I can use ffmpeg to cut a video to a specific time with the following: ffmpeg -sameq -ss [start_seconds] -t ...
1
vote
2answers
260 views

ffmpeg command not working

I am running this command in Ubuntu and windows but I get the full length instead of 10 mins. I want to split it in 10 minutes. ffmpeg -i 2000.flv -ss "00:00:00" -t "00:10:00" -vcodec copy -acodec ...
1
vote
1answer
125 views

Several movies to DVD at decent quality?

I want to put at least 3 or 4 movies, which are around 90 minutes, on DVD and still have good quality. So around 360 minutes to one DVD. What program and options should I choose to achieve best ...
2
votes
1answer
7k views

FFMPEG command to stream video to a Multicast address

I need to stream a video to a Multicast address. I heard using FFMPEG we can stream the content. I used the following command to stream to the multicast address ffmpeg.exe -i input -vcodec copy ...
2
votes
2answers
2k views

ffmpeg trimming video

I am having a problem using ffmpeg which is driving me a little mad, so I hope someone can help me out. I have a 13 MPEG-4 .mp4 video of which I am attempting to trim the first two seconds off using ...
0
votes
1answer
592 views

Static build ffmpeg 0.8

Is there anywhere an available static build of ffmpeg with all encoder/decoders libs for Linux (not a source tarball, but a binary) ? Although this question seems trivial, I spent the last half hour ...
3
votes
1answer
537 views

What is the best input format for ffmpeg?

My company takes in video files from film makers and compresses them via ffmpeg for streaming over the internet. Ffmpeg supports many video formats, but doesn't support some (e.g. Apple ProRes). Is ...
0
votes
2answers
424 views

Why does installing LAME fail?

I want to install ffmpeg with mp3lame enabled following this tutorial. In step 2, I get the error libfaac is not found and in step 5, installing lame is giving the error in the log below. Why ...
0
votes
0answers
178 views

How to make ffmpeg installer for OS X

I have followed this tutorial to download, compile and install ffmpeg on Mac OS X. This worked fine but I want to make an universal installer from compiled source for all Mac machines. Please help me ...
0
votes
0answers
924 views

What is the best method to use to convert my HD video files on Ubuntu 10.10?

Recently I bought a JVC GZ-HM650 HD video camera. The camera produces *.MTS files, which Ubuntu 10.10 can't play correctly by default. I would like to convert those files, so I can edit them in my ...
0
votes
1answer
963 views

ffmpeg multi convert videos and put them in the same path

I am using FFMPEG for converting from MOV to FLV on Ubuntu. My problem is I have 10 folders and sub folders that contains those videos, I want a command line or a way in WinFF GUI to convert them all ...
3
votes
2answers
2k views

newsubtitles line not working in FFmpeg

i'm trying to run the following line on FFmpeg that will basically "re-format" an MKV file to MP4 without doing any re-encoding and also embed SRT subtitles onto the MP4 output: ffmpeg -i test.mkv -i ...
1
vote
0answers
2k views

Recording Webcam and Audio with ffmpeg on Windows

I am trying to record video + audio with ffmpeg of my defualt webcam. This works with video: ffmpeg -f vfwcap -r 25 -i 0 -ab 64 -ar 22050 -ac 1 output.avi but no sound is recorded. Is it ...
2
votes
1answer
538 views

A seekable one-frame FLV video (with audio)?

Is it possible to generate an FLV out of an MP3 and a JPG, without uselessly looping the image and still be able to seek the audio ? This command generates a non-seekable video: ffmpeg -y -i ...
2
votes
1answer
1k views

Encode HD video to a good format for editing

I have a video that I would like to edit, but it's currently a mov (H.264) file, which makes frame by frame editing impossible. So, I'd like to re-encode it to a better format. I read that DV is a ...