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

2
votes
0answers
468 views

Keyframe extraction with ffmpeg fails

I'm trying to extract key frames from video file using command: ffmpeg -i newtape.mp4 -an -r 1 -y -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync 0 -ss 00:01:00 thumbnail_%09d.jpg It starts but ...
1
vote
1answer
328 views

FFMPEG text file

I am giving the input file in the command line like this: ffmpeg -i catch.flv. The information about the file such as resolution, frame rate, bit rate etc is displayed in the terminal. I want this ...
3
votes
1answer
1k views

Using ffmpeg with decimal wildcard

I have a folder with PNG images of the following naming scheme: IMG_0423.png IMG_0424.png ... IMG_0509.png I would like to make an MP4 movie from these images, but I get an error message that ...
3
votes
1answer
1k views

FFmpeg command converting M4V to FLV; video streaming is very slow

I am using this command to convert videos from M4V and AVI to FLV: ffmpeg -i 'video_1355440448.m4v' -s '640x360' -ab '64k' -ar '44100' -q:v '1' -f 'flv' -y video_1355440448.flv I have two servers: ...
3
votes
3answers
397 views

Why doesn't this for loop work?

This is on Ubuntu 12.04 I'm trying to figure out how to get ffmpeg to do a batch conversion of FLACs to MP3, recursively. If I cd into a directory and use for f in *.flac; do ffmpeg -i "$f" -c:a ...
2
votes
0answers
974 views

FFMPEG - streaming a playlist of videos to RTMP

I'm aware that you can stream files to a video server using FFMPEG - something like the following. fmpeg -re -i localFile.mp4 -c copy -f flv rtmp://server/live/streamName Is anybody aware of ...
3
votes
0answers
685 views

Setting font size of Closed Captions on iPhone

Does anyone know if it's possible to control the font size on videos played in the built-in iPhone video player? The subtitles (or "Closed Captions") that are there by default are rather small. None ...
2
votes
1answer
2k views

Tool to bulk speed up/convert an audio file

I want to listen to certain podcasts on my phone but I have two common problems: The audio is in some weird format (some don't play on my phone). The audio is slow. I want to use something like ...
2
votes
0answers
423 views

Prepend AAC file to MP4 causing audio to get out of sync

I have an application that handles the normalizing and combining of audio and video files from many different sources. All incoming audio is normalized as follows: ffmpeg.exe -i ...
3
votes
1answer
2k views

FFMPEG dropping frames while encoding JPEG sequence at color change

I'm trying to put together a slide show using imagemagick and FFMPEG. I use imagemagick to expand a single photo into 30fps video (imagemagick also handles things like putting some text captions on ...
2
votes
2answers
936 views

How Video4Linux and ALSA work with Codecs

My understanding is that a codec is both a decoder and a specification for decoding. So some group writes a codec which explains how to decode from their format back into the raw bitstream, and they ...
3
votes
2answers
4k views

Convert mp4 video to a format xbox 360 can play

Here is a video file my Xbox 360 refuses to play: $ MP4Box -info video.mp4 * Movie Info * Timescale 90000 - Duration 02:18:33.365 Fragmented File no - 2 track(s) File Brand ...
8
votes
2answers
5k 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
459 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
168 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
817 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
955 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 ...
18
votes
1answer
25k 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
2k 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
256 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
395 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 ...
7
votes
1answer
2k 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
663 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
374 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
240 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
318 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?
21
votes
2answers
33k 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
369 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
451 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: ...
2
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
186 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
580 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
881 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
324 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 ...