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

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
794 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) ...
0
votes
1answer
2k views

Why can't I convert FLV to MP4 format using FFmpeg when MP3 works?

In fact I have succeeded to convert FLV to MP3: D:\tmp\ffmpeg-20121005-git-d9dfe9a-win64-static\ffmpeg-20121005-git-d9dfe9a-win 4-static\bin>ffmpeg.exe -i a.flv -acodec mp3 a.mp3 ffmpeg version ...
1
vote
1answer
4k views

Convert BMP to video in a given frame rate in FFmpeg

I am trying to encode several BMPs\JPEG into a movie file using: ffmpeg -f image2 -i a%d.jpg output.mpg The thing is that I want the frame rate of the movie to be 10, and it seems to be 25 ...
7
votes
1answer
3k views

Screen Casting using ffmpeg (too fast)

I can use ffmpeg to make screen casts: ffmpeg -f x11grab -s 1280x800 -i :0.0 -c:v libx264 -framerate 30 -r 30 -crf 18 out.mkv However the output comes out to be too fast paced. It also happens with ...
2
votes
0answers
376 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, ...
0
votes
1answer
150 views

Create a folder.jpeg for videos from batch script

I want to be able to run a batch file and it looks in all the folders within directory and creates a folder.jpeg for each flv it finds in a folder. I have this script that works but it puts the ...
5
votes
1answer
3k views

Lossless universal video format

I am trying to find the most suitable lossless video format for 1280x720 25fps video. The video has 4 minutes. Sound will be 320 kbps mp3, that is not a big deal. Ideal conditions: Lossless (can be ...
0
votes
2answers
2k views

Converting flv and mp4 video format to '.ogg' using FFmpeg

I have HostGator VPS server with FFmpeg installed. It allows me to convert .wmv to .flv as well as .mp4 files successfully using the following commands for flv and mp4: ffmpeg -i WantsABath.wmv -b ...
2
votes
1answer
392 views

Split section of video with ffmpeg

I've been trying to get this to work and I'm really close, but something still isn't right. I have a 14 second clip I'm trying to cut out of a longer mp4 video. I got the video to cut to the right ...
1
vote
1answer
1k views

VP8 and WebM, not working in ffmpeg-php

I need a help with ffmpeg-php and Ffmpeg. Ffmpeg: ffmpeg version 1.0.git built on Oct 6 2012 01:54:50 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame ...
0
votes
1answer
4k views

Make exact mp4 (H264) format for uploading to youtube

With ffmpeg I'm converting video from mp3 and picture to upload it to youtube. After upload, conversion fails. Reasons are unknown. I believe the problem is in format. By the way If I'm uploading file ...
0
votes
0answers
337 views

Crash in audio resampler with some audio rates - FFMPEG PHP ( Solved! )

i have a problem with this command( FFMPEG PHP ): Command: ffmpeg -i 62f76f050494f0ed6a5997967c00c0c0.wmv -ss 0 -t 99 -y -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 -f flv ...
8
votes
3answers
528 views

How to convert .avi video that has 1 static image in the video (with sound) to mp4 video with ffmpeg to least possible size?

I've an .avi video (divx) that's at 25fps and it has mp3 audio at 64kbit/s. This video has just one image throughout the entire video. I'm trying to convert this video to mp4 but to make it as small ...
3
votes
2answers
14k views

Convert MKV with DTS sound to MP4 video with AAC or AC3 audio

I've got a 4.3 GB 720p movie and want to convert this MKV with DTS sound to MP4 video with AAC or AC3 audio. I sometimes got "ffmpeg: unrecognized option '-c:v'" and "aac unrecognized" and other ...
1
vote
0answers
174 views

FFmpeg cuts video duration while transcoding

When using ffmpeg on linux, my 4.3GB 2.21 second video is being chopped down to 1.56 duration. I'm trying to reduce file size, but not lose frames. steve@steve-OptiPlex-170L:~/Desktop$ ffmpeg -i ...
21
votes
1answer
11k views

What is the “sameq” or “same_quant” option in FFmpeg? Does it mean “same quality”?

Often, I've seen FFmpeg commands using the sameq option, for example ffmpeg -i input.mp4 -sameq output.avi What does this mean? Does it mean "same quality"? If not, what should I use instead?
1
vote
0answers
765 views

Cannot stream webcam using ffserver because of malloc error

I was following this tutorial RaspBerry Pi webcam and when I run the following command from root: $ ffserver -f /root/ffserver.conf & ffmpeg -v 2 -r 5 -s 640x480 -f video4linux2 -i /dev/video1` ...
2
votes
1answer
3k views

Using ffmpeg to cut up mkv video

I'm completely lost with ffmpeg I got an mkv of 4:33 duration and I'd like to cut out the end from 4:20 I tried different ways: 1) Does not cut at all ~ > ffmpeg -t 00:04:20 -acodec copy -vcodec ...
2
votes
0answers
850 views

FFmpeg blur filter not working at all

I am trying to blur out the video using FFMPEG by following there documentation, but it is not working at all, all it do moves the few frames forward (8 sec video became 10 sec video and so blank ...
2
votes
4answers
4k views

How to create a thumbnail from the middle of a video with FFmpeg

Is there a way to grab a video thumbnail in FFmpeg? I'd like to grab the middle-most frame as the video and use that as the thumbnail. Video duration is unknown. The ability to specify the ...
1
vote
1answer
1k views

Could not find codec parameters in ffmpeg in Windows

While trying to convert wmv to animated gif using ffmpeg in Windows 7, I ran into an issue. Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. ...
1
vote
0answers
70 views

Video for HTML5 — ffmpeg commands [duplicate]

Possible Duplicate: What bunch of ffmpeg scripts do I need to run “Video for everybody”? I'd like to allow my users to upload their videos (no clue what format they'll be) and ...
0
votes
2answers
3k views

Mjpeg recording with FFMPEG preserving time information

I am recording the MJPEG video from an IP camera and saving it to a file but the problem is that file's duration is way smaller than the actual recording time. Its around 9 seconds video for 2 minutes ...
2
votes
0answers
470 views

Animated GIF as an overlay in FFMPEG?

I have an animated gif that I wanted to loop in the bottom corner of a video, unfortunately when added as an overlay in ffmpeg it does not loop and only shows the first 'frame'. Is there a way of ...
1
vote
2answers
355 views

How do I encode video for Philips DCP851 with ffmpeg?

An older Philips player i have would play "xvid" files, such as those commonly created by Handbrake & similar tools. This one won't play all those files i had lying around, nor using the standard ...
5
votes
1answer
9k views

Batch convert *.avi files using ffmpeg

I am trying to convert 20+ .avi files in a batch using ffmpeg. I've got the following @echo off. for file in *.avi do ffmpeg -i "$file" -s 640x480 -vcodec msmpeg4v2 "'basename "$file" ...
3
votes
1answer
2k views

FFMPEG: Convert .rgb images to video

I want to create a video from .rgb files. These just contain the pixels, no header. I'm able to cerate a video from pngs: ffmpeg -f image2 -r 30 -i %%06d.png -vcodec huffyuv video.avi But ...
1
vote
1answer
4k views

converting to MXF using ffmpeg

I have been trying to use FFmpeg utility to convert a avi file using DNxHD to mxf format. I am using "FFmpeg" with params as following: ffmpeg -i ccvt_box.avi -vcodec dnxhd -video_size 1920x1080 -r ...
4
votes
1answer
5k views

FFmpeg (MacPorts) - libfaac missing, need new audio encoder

I am so confused. I am trying a quite simple FFMpeg command to transcode a movie file to a x264/AAC mp4 file via the command line (for Vimeo upload). (Mountain Lion/Macports) ffmpeg -i INPUT.AVI ...
1
vote
2answers
3k views

How to batch convert video files on OSX for AppleTV2 / iPhone4?

I'd like to have a solution to batch convert video files to a format suitable for the AppleTV2, iPad2, iPhone4, while at the same time preserving as much quality as possible; I want a single output ...
1
vote
0answers
568 views

ffmpeg extract I-Frames, GOP to jpeg sequence

This is kind of hard to explain, so bear with me. So I'm looking for some way to export video GOP frames to jpegs. I'd like to preserve the I-Frames, P-Frames, B-Frames, etc. So that the next frame ...
3
votes
2answers
807 views

How to extract a Vorbis stream from a WAVE file?

I would like to move the Vorbis stream into an ogg container but ffmpeg does not seem to recognize the stream. Even though MPlayer gives this output upon playback: Opening audio decoder: [acm] ...
1
vote
2answers
317 views

ffplay duration not working?

If I run command ffplay -t 3 test.aac it just plays the whole file, instead of 3 seconds. What command would be used to set duration of playback?
4
votes
1answer
670 views

How can I convert an m4v video to a widely viewable format using ffmpeg?

I have a m4v video generated by iMovie. I want to use ffmpeg to generate a widely viewable video on Windows. I cannot assume that the viewer will have VLC (or any other sophisticated viewer). It needs ...
4
votes
1answer
1k views

Resize and lower the bitrate of mp4

I wanted to execute the following command: x264 --level 30 --profile baseline --bitrate 900 --keyint 30 -o test.mp4 video01.mp4 --vf resize:720,480 But I get following output(error) raw [error]: ...
0
votes
1answer
2k views

How do set output framerate “same as source” in ffmpeg

ffmpeg -i input.3gp -someoptions output.flv will by default always use a framerate of 30 for output regardless of the framerate of the source file. I know how to set a given framerate e.g. "-r 15" ...
5
votes
2answers
8k views

Why is converting WMV to MP4 so slow?

I am trying to convert a video from WMV to MP4 with FFmpeg but it takes couple of hours. If I try to convert it to AVI it only takes about 10-15 minutes. ffmpeg version ffmpeg version ...
6
votes
1answer
14k views

How to cut at exact frames using ffmpeg?

I'm trying to use ffmpeg to cut video files at precise times. The ffmpeg help shows an option -timecode_frame_start to specify the starting frame but I am unable to get this command to work. The ...
1
vote
1answer
4k views

How to convert mp3 to flac

Can someone tell me how to convert a mp3 audio file to flac format using ffmpeg? I Googled extensively, but almost all resources point to converting flac to mp3, something like ffmpeg -i "input.flac" ...
0
votes
1answer
2k views

How to configure ffmpeg on Ubuntu to convert 3GP file to PCM WAV?

I'm using Ubuntu 10.04. I need to convert a .3gp file to PCM WAV. I'm using ffmpeg for that. When it's installed from repository by using aptitude install ffmpeg it's installing some basic version of ...
3
votes
1answer
577 views

FFmpeg metadata not showing in Windows?

If I run this command ffmpeg -i Acetone.wav Acetone.mp3 the metadata (ID3 tags) shows in ffmpeg for the output file, but not in Windows. Output #0, mp3, to 'Acetone.mp3': Metadata: TPE1 ...
8
votes
2answers
10k views

FFmpeg drops frames when encoding a png image sequence into an x264 mp4 video

I'm trying to encode an image-sequence (frame0001.png, frame0002.png, ... , frame0160.png) into an x264 video using the following command: ffmpeg -i frame%04d.png -sameq -r 24 out.mp4 After ...
3
votes
1answer
7k views

How to merge audio and video files with FFmpeg?

This is a question, similar to this one. I've tried following ffmpeg command: ffmpeg -i "video.mpg" -i "audio.mp3" -t 00:01:35.13 -vcodec copy -acodec copy result.with.sound.mpg And I've got some ...
0
votes
0answers
35 views

how do i transcode MTS files with highest quality? [duplicate]

Possible Duplicate: Encode HD video to a good format for editing I've tried trancoding into mpeg2 @25Mbps but the video looses quality. perhaps my ffmpeg command is to blame for file in ...
2
votes
1answer
446 views

WTV and DVR-MS television recordings, should I de-interlace or not?

Following on from this question (where I am converting WTV and DVR-MS television recordings into H.264/MPEG-4 AVC to cut down on space), given the output of ffmpeg -i <filename>, how can I work ...
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 ...
0
votes
0answers
2k views

avconv and ffmpeg - drawtext filter text_w evaluates as 0 in Ubuntu Precise

I'm attempting to draw text onto a video using either the avconv or ffmpeg commands. When specifying x= for where on the final video to place the text, the 'text_w' value is evaluating to 0, rather ...