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

9
votes
2answers
6k views

How to encode audio with Opus codec?

The Opus audio codec looks like the best thing ever for compressing audio. It has recently become supported in the latest ffmpeg and VLC players. However, there is no documentation I can find on how ...
1
vote
1answer
1k views

Can't convert FLAC to MP3 with FFmpeg

How can I convert FLAC to MP3 using FFmpeg? What I've tried: ffmpeg -i "file.flac" "file.mp3" Stream mapping: Stream #0:0 -> #0:0 (flac -> ?) Encoder (codec none) not found for output ...
1
vote
4answers
2k views

Batch process ffmpeg?

Given an AVI encapsulated video with WMA2 audio and MP4 video how do I pass-through the video, convert the audio to MP3; then re-encapsulate the entire file into an AVI? ffmpeg -i "foo bar.avi" ...
0
votes
1answer
470 views

Encode video with changing bit rates using FFmpeg

I would like to encode a 30 min video using ffmpeg. I am able to achieve this using ffmpeg -i in.mp4 -vcodec libvpx -vb 1024k -keyint_min 150 -g 150 -an out.webm But I would like to encode ...
0
votes
0answers
169 views

Superimpose videos with FFmpeg

We’re trying to edit a video with FFmpeg. One of our videos has an alpha channel and we want to superimpose this above another video. example: Video 01: Start frame 1 end frame 200 Video 02: ...
5
votes
1answer
1k views

Convert png sequence to x264 with ffmpeg

I am trying to convert a series of pngs into an mp4 video. I am using ffmpeg, and want to encode the video with the H.264 codec. Using the command ffmpeg -y -r 30 -b 1800k -i _tmp%04d.png -vcodec ...
1
vote
0answers
846 views

Webcam stream doesn't work on Logitech E2500

I'm currently trying to get webcam streaming to work on a Logitech E2500 with ffmpeg. Running the command gives me some kind of buffer length error. pi@raspberrypi ~/ffmpeg-dmo-1.0 $ sudo ...
3
votes
3answers
990 views

How to apply audio track to a mute h264/mp4-video losslessly?

I have a MP4/h.264-video with no sound. With ffmpeg or similar, how can I apply an audio track to that MP4-file without degrading the quality of the video (i.e. without recoding the video-track)? I'd ...
19
votes
1answer
27k views

How to resize a video to make it smaller with FFmpeg

Is it possible to resize my videos to make them smaller with FFmpeg? I have an original video dimensions of 1024x576, now I want to resize the video to 720x480 to meet the requirement. How can I do ...
3
votes
1answer
2k views

Convert EXR file sequence with FFmpeg and x264

When I convert an EXR sequence into a QuickTime MOV file using FFmpeg and the x264 codec, it codes the video – but in QuickTime Player and Windows Media Player it's just black! But when I open it up ...
3
votes
1answer
3k views

“Unknown encoder libx264” on Windows

I'm testing ClipBucket on a Windows XP system, and ClipBucket (open source video share) uses FFmpeg to convert videos. The final command it executes is (i changed it a little to make it compatible ...
0
votes
1answer
2k views

Tuning hqdn3d for use with ffmpeg

I have some live action video I am scaling up 200% and then uploading to youtube. Trying to reserve as much quality as possible. Can anyone suggest some good starting settings to use with hqdn3d? Is ...
0
votes
1answer
261 views

Only video playback not working for Xbox using uShare

I have been mucking around with video encode for a while now using Handbrake without any success. (just recently tried EncodeHD on a Windows machine with no luck) So far all music and pictures play ...
1
vote
1answer
400 views

Audio of DV video files is corrupted

I have .dv files which I have recorded from DV tapes with iMovie. The formats are as follows: Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 25 tbr, 25 tbn, 25 tbc ...
0
votes
2answers
1k views

.MP4 video (h.264 format) is not playing in iPhone when I host the video in Amazon EC2 instance

I have converted my source.flv video into target.mp4 (h.264 format) by using following command: ffmpeg -i source.flv -r 25 -b:a 128k -strict -2 -c:v libx264 -preset slow -s 320x240 -b:v 768k -ar ...
8
votes
1answer
3k views

When spliting MP4s with ffmpeg how do I include metadata?

I have a few MP4s that i want to upload to my flickr account but they have a maximum size of 500mb as mine is only about 550 i was planing to simply split them in half then upload them, but i want to ...
3
votes
0answers
684 views

ffmpeg to resize and concatenate multiple videos

I need to perform 3 operations on a source video (in sequence) 1 resize the source video from 320X 240 to 640X480 (200%) 2 add another video file before 3 add a 3rd video after In addition I ...
0
votes
1answer
381 views

live encoding/streaming with ffmpeg

I'm using ffmpeg to encode large avi (or other) files to mp4, which are then saved to disk, then streamed in the browser using apache mod_h264. The problem with this is that we have to wait until ...
1
vote
1answer
246 views

FFmpeg 1.0 Angel --soname-prefix=PREFIX

I'm trying to compile FFmpeg 1.0 "Angel" with following configure : ./configure --enable-gpl --enable-encoder=mpeg2video --enable-version3 / --soname-prefix="/pc/temp/myproject/" ...
3
votes
1answer
2k views

How can I specify how long I want an overlay on a video to last with FFMPEG?

I'm making a video for YouTube, and I've already edited and touched it up in a full video editing program. The last thing I want to do is add an overlay banner with subscribe and playlist buttons ...
1
vote
1answer
1k views

FFMPEG: Stream a file with original playing rate

I want to stream a file to the network using ffmpeg in it's original frame rate; so I can play the generated UDP stream using some receiver client such as VLC. I used this command: ffmpeg -i ...
0
votes
2answers
7k views

ffmpeg add two audio streams to video

I tried this: ffmpeg -i /sdcard/video/transcode/video.avi -map 0:0,0 -i /sdcard/video/transcode/first.mp3 -map 1:0,1 -i /sdcard/video/transcode/second.mp3 -map 2:0,2 -acodec copy -vcodec py ...
2
votes
1answer
326 views

FFMpeg and Handbrake

I have a brilliant preset saved in Handbrake but now I need to be able to use that preset in FFMPEG. Is there an easy way to translate or would I have to break apart the commands one by one?
22
votes
2answers
35k 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 ...
1
vote
0answers
382 views

FFmpeg encoding for meta data wrong – need it in UTF8

When I run this command ffmpeg.exe -i test.mp3 -metadata title="The Title You Want" -metadata artist="ÄÄÄßß!`n Artist Name" -metadata album="Name Fö#'ddp+!of the Album" -c:a copy -id3v2_version 3 ...
1
vote
1answer
1k views

FFMPEG overlay video with time shift or offset

I've figured out how to composite 2 videos using the overlay command, but was wondering if there is also a way to offset or shift the 2nd video in time, so you don't see the overlayed video until ...
0
votes
1answer
2k views

FFMPEG for frame interpolation ala Twixtor

Can any FFMPEG experts tell me if FFMPEG can do any sophisticated frame interpolation similar to the Twixtor plugin in After Effects? If so, what would be some suggested settings to try? I'm trying to ...
0
votes
1answer
3k views

FFMPEG settings for unsharpmasking with and without upsampling

I am tasked with trying to 'improve' the quality of video from a point and shoot camera. I was considering perhaps up-sampling and then applying some unsharp masking. Can any FFMPEG experts suggest ...
1
vote
0answers
465 views

mjpeg mov created by the newest FFMPEG looks in Windows Media Player like half sized videos

I have new version of FFMPEG installed and created mov compressed with mjpeg. Is looks pretty in Afx, Premiere and QucikTime player but it looks like half-sized video in Windows Media Player. There ...
4
votes
1answer
4k views

FFmpeg settings for YouTube and Facebook video uploads

Can any FFmpeg experts share their preferred settings for video conversion to both YouTube and Facebook? For Youtube I am following these guidelines and my video size is 480P @ 24 fps Audio Codec: ...
3
votes
3answers
2k views

Will a file encoded with the libx264 play on Windows 8?

I'm sending a movie via email. Will a file encoded with the ffmpeg's option libx264, be able to play back natively in Windows 8 without any external software? ffmpeg -i in.avi -vcodec libx264 ...
0
votes
0answers
192 views

How to automatically create comparison pictures for a transcoded video file?

How do one automatically/easily create a "before-after" comparison of two video file, where one file is the transcoded version of the other, in terms of several still images? Each pair would be ...
6
votes
1answer
5k views

accurate cutting of video (+ audio) with ffmpeg

I want my website to allow users to accurately create their own clips from a source video I provide. I have a source video file that I first want to convert to something suitable for a website: ...
1
vote
0answers
602 views

.MOV video compressed with PNG has no alpha channel

I have a QuickTime file .mov with alpha channel compressed with PNG codec. What I need is to create smaller version of this file using ffmpeg. Everything works except new mov has no alpha (Adobe After ...
4
votes
1answer
923 views

How to merge video flv and audio wav file in ffmpeg

I want to merge an audio .wav with a video .flv using ffmpeg Please suggest me how to achieve this. i am using this command on ubuntu 12 : ffmpeg -i recod_audio.wav -i recod_ideo.flv -acodec ...
1
vote
1answer
327 views

JM H264 Reference Software quality drop

I've just started messing around with the latest JM 18.4 tool for a bit but after I encode a sample yuv file the video comes out poor.(Everything is on default, I did a clean compile just to make sure ...
1
vote
1answer
2k views

Error when trying to enable x11grab in ffmpeg

I've lost a day of work over this. Trying to set up ffmpeg so I can do screen captures and just receive error after error after error. However, the root issue is that I can't even seem to enable ...
2
votes
2answers
7k views

What is the best way to downscale mp4 video while keeping it as sharp as possible?

I've got an .mp4 file that's currently 830x1100 (it's a screencast) that I need to resize down to 114x150. I've been experimenting for hours with ffmpeg settings and nothing comes out looking nice and ...
1
vote
1answer
2k views

How to create thumbnail image from .flv video by using ffmpeg ?

I am using following command to create thumbnail image from flv video , image is created but with error (image doesn't open) ffmpeg -ss 00:00:10 -i output.mp4 -f image2 -s 150x150 -vframes 1 -c:v ...
2
votes
1answer
543 views

Stream live audio with noise filter in Linux

I need to strip the noise from an audio source, but it needs to happen live. The resulting voice doesn't need to sound perfect, it just can't contain too much noise. I've read up about sox, but it ...
5
votes
1answer
9k views

ffmpeg open webcam using YUYV but i want MJPEG

I need ffmpeg to open webcam (logitech c910) in MJPEG mode, because the webcam can give ~24 using MJPEG "protocol" and only ~10 fps using the YUYV. Can i choose between them using ffmpeg command line? ...
0
votes
1answer
2k views

ffmpeg an image sequence

I want to encode a sequence of images to an video file, I have done this in the past with something like: ffmpeg -i %08d.jpg out.mp4 But first I had to rename the files to be in that %08d.jpg ...
1
vote
1answer
945 views

ffmpeg - How to set MIME-type?

I'm trying to set the proper MIME-type for an AAC file, but this command does not work: ffmpeg -i rain.mp3 -metadata mime-type="audio/aac" rainmp3toaac.aac but, actualy audio/x-hx-aac-adts is set. ...
2
votes
0answers
959 views

Playing and recording a live stream from another computer webcam using VLC/FFmpeg

I was trying lately to set a video server on one machine and play it in a differen machine, it works with me.. but the problem is that it always stuck and become jammed in the middle .. and it is very ...
1
vote
1answer
1k views

ffmpeg working when SSH but not when PHP exec

I am not sure why so first here is the error Array ( [0] => ffmpeg: error while loading shared libraries: libvpx.so.1: failed to map segment from shared object: Permission denied ) my PHP ...
5
votes
1answer
6k views

Install FFmpeg on OS X

Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X? I have Xcode installed as well as the CLI for Xcode (gcc etc). I have a version of ...
1
vote
1answer
13k views

Cheat sheets and presets-settings that actually work with FFmpeg 1.0?

Have tried a number of 'cheat sheets' available elsewhere but they almost all are out of date and simply will NOT work with the latest version of FFMpeg. Can anyone point me to settings that WILL ...
3
votes
1answer
7k views

FFmpeg is “unable to find a suitable output format for '–i'”

I'm trying to do a simple conversion using the following arguments from Fabio Sonnati's blog. ffmpeg –i source.MOV –r 15 –s 320×240 –an video.flv Getting this error Unable to find a suitable ...
1
vote
0answers
792 views

Fade in a movie from white with FFmpeg

I have an AVI file and I want to create a fade effect, BUT I want the fade-in to begin with white, meaning I want the first frame to be white and the movie should slowly (and continuously) appear ...
2
votes
0answers
1k views

Failed to convert a wmv file to mp4 with ffmpeg

i need a help with this command FFMPEG COMMAND: ffmpeg -y -i /input.wmv -vcodec libx264 -acodec libfaac -ac 2 -bufsize 20M -sameq -f mp4 /output.mp4 Output: ffmpeg version 1.0 Copyright (c) ...