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
2answers
4k views

Working FFMPEG settings for converting to WebM format?

Can anyone give me working settings for converting video to WebM with ffmpeg? I am on Windows 7 with the FFmpeg git-67f5650 64-bit Static (Latest) build from http://ffmpeg.zeranoe.com/builds/ I've ...
4
votes
1answer
5k views

Use DivX settings to encode to mp4 with ffmpeg

I'm used to use VirtualDub to encode a video to AVI container with DivX-codec (and MP3 for audio). Now I'm planning to use ffmpeg to encode videos to MP4 container with h264-codec. What I've figured ...
1
vote
0answers
490 views

Convert interleaved video into separate left/right videos

I'm trying to make two files from video recorded on 3d camera and can't find how can I separate one video onto two. ffprobe video.m2ts gives me Input #0, mpegts, from 'video.m2ts': Duration: ...
3
votes
1answer
3k views

Dump/load metadata with FFmpeg (WMA to MP3)

I need to convert WMA metadata into MP3 ID3 tags. FFmpeg should be able to dump them into a file and load them back to another using implemented mappers. I cannot find syntax of usage though: ...
20
votes
4answers
29k views

Cut part from video file from start position to end position with FFmpeg

I have a video file of 30 minutes, but I want to extract a video from 00:09:23 to 00:25:33. I can define the startposition with -ss, but I couldn't find one for the end position. Any help please?
1
vote
1answer
473 views

Lower mp4 file size

I have couple of (over 100) mp4 video files, which are approximately 15 MB each. I think they are unnecessarily high quality videos, I want to lower the sizes of each, by reducing the quality. I know ...
1
vote
1answer
881 views

Aspect ratio of video sliced with FFmpeg unintentionally changes

I am trying to extract a small part from a larger video without changing the codecs, resolution or something else. Therefore, I use FFmpeg with the following settings. ffmpeg -vcodec copy -acodec ...
6
votes
1answer
3k views

Resources To Use FFMPEG Effectively [closed]

Lately i've posted a lot of questions about how to use ffmpeg. It's pretty clear to me that I am missing some sort background in video encoding and was wondering if any of my fellow superusers had ...
1
vote
1answer
3k views

FFMPEG converting from m4v to mp4 does not stop processing

I'm using ffmpeg to convert various types of video files into mp4s. The command I use works for most video files I've encountered, however when it encounters an m4v it never stops processing the ...
1
vote
2answers
423 views

ffmpeg hangs while transcoding .dv to .mov

I'm transcoding a bunch of files from .dv format to .mov I already transcoded a bunch of them, but now ffmpeg keeps hanging. It transcodes in one case up to 2 min 06 sec (out of 2 min 44 sec) and ...
0
votes
1answer
88 views

Undefined reference to _aacplusEncOpen

Following is the copy of my config.log file-> http://pastebin.com/embed_js.php?i=UyTBTTZv Following is copy of configure file-> http://pastebin.com/embed_js.php?i=2c15zppN Additionally: As of now ...
3
votes
1answer
10k views

Command encoding h264 baseline profile, level 1, with FFmpeg and libx264

Can anyone suggest a command to encode video to h264 baseline profile (level 1)? Here is a link for reference: http://blog.mediacoderhq.com/h264-profiles-and-levels/ I used this command but FFmpeg ...
0
votes
1answer
2k views

Error using ffmpeg to convert mkv to avi on Windows 7

I am using ffmpeg on a Windows 7 machine. I am trying to convert mkv files to either mp4 or avi. Here is the command I used: ffmpeg -i "C:\Path\To\Input.mkv" "C:\Path\To\Output.avi" Here is the ...
1
vote
1answer
705 views

Reencoding MXF (OP-1a) XDCAM HD422 MPEG into something useful

I am a bit desperate at this point. I have a video file in the MXF container format. MediaInfo identifies it as MXF (OP-1a) XDCAM HD422 and says the Video Stream is plain MPEG. I want to edit the ...
4
votes
2answers
2k views

Streaming Desktop using FFMPEG in windows

How to stream Desktop using FFMPEG in windows?? I have tried ffmpeg -list_devices true -f dshow -i dummy and after that this to stream ffmpeg -f dshow -i video="Chicony USB 2.0 Camera" -r 30 ...
9
votes
1answer
18k views

FFmpeg command to convert MP3 to AAC

I can issue this command: ffmpeg -i input.mp3 -acodec alac -ab 128k -ar 48000 -ac 2 -y output.m4a to create a m4a file. But when I issue this command ffmpeg -i input.mp3 -acodec alac -ab 128k ...
0
votes
2answers
1k views

Converting hundreds of pictures of naming style “frame_0000.jpg”, “frame_0001.jpg” into an avi?

I have all of these images as jpegs and I want to stream them into an AVI. I am trying to use ffmpeg with the command noted here but I get an error "No such file or directory". My exact command is ...
1
vote
1answer
2k views

ffmpeg for medium quality

I tried using the -sameq, and it works and got a good quality for the video, but I noticed the file size had increased greater than the original video. So how can I adjust for the medium quality? I ...
0
votes
2answers
380 views

ffmpeg image2 avi quality

I'm converting a set of images to avi, but the quality is very poor. How can I change the quality of a video? This is my current command: ffmpeg -i music.wav -f image2 -r 11 -i %%d.png video.avi ...
1
vote
1answer
1k views

ffmpeg not using full CPU power

I have a Dell Precision 490 workstation, running Ubuntu 11.10, with two dual core Xeon 5160 CPUs (so 2 physical CPUs, with 2 cores each), which I am using to encode TV recordings (MPEG2) to H264 using ...
2
votes
1answer
456 views

ffmpeg or mencoder - Convert a video using another one as a reference format-wise

I have two videos from different sources. I want to convert one of them so that its format, codec, framerate are the same as the other one. Is there a one-liner for it (where I can give the ...
0
votes
0answers
473 views

Join Audio and 2 Images Output as Video using FFmpeg and Video should be acceptable by youtube

I know this question is similar to the question here Join Audio and Image -> Output as Video using FFmpeg, But my requirement is bit more. I want to join to 2 image files with an audio file to ...
1
vote
0answers
207 views

High quality video frame grab under Linux

There is a software (I suppose there are more) under Windows, which claims to take high quality frameshots from videos, called Moment I suppose it works in a way that it takes a set of consecutive ...
2
votes
1answer
918 views

ffmpeg encoded video - seeking is “quantised” in VLC

I'm running the following command to convert an mp4 video into the VP8/Webm format: ffmpeg -y -i lists.mp4 -f webm -vcodec libvpx -vb 600k -r 20 -acodec libvorbis -ab 64k -ac 1 lists.webm When I ...
10
votes
2answers
7k views

How to get length of video file from console?

Suppose we have video file some_video. How to get length of it from a shell script (with mplayer/transcode/gstreamer/vlc/ffmpeg/whatever)? VIDEO_LENGTH_IN_SECONDS=`ffmpeg .... -i some_video ... | ...
3
votes
1answer
2k views

Extracting and re-combining audio from a video

I'm fed up with Vegas, Premiere, Pinnacle, SoundForge and all of the other editors I've tried. I'm trying to modify the audio of an AVI file, but all of the editors I've tried insist on re-encoding ...
1
vote
1answer
421 views

ffmpeg: video file played OK on Ubuntu, but no sound on XP

I created a video clip using ffmpeg (vcodec: mpeg2video, acodec: AC3 5.1). The file can be played normally on Ubuntu, but when I play it on an XP machine, there is no sound. I can play AC3 files and ...
0
votes
2answers
1k views

How to convert .mov videos to iPhone playable mp4 videos

I am trying to convert .mov videos to mp4(should be playable in iPhone) using ffmpeg.I am using Linux CLI. I have tried the following command: -i source.MOV -s qvga -b 384k -vcodec libx264 -r 23.976 ...
6
votes
2answers
4k views

DTS to AC3 conversion for LG TV using mediatomb DLNA server

I want to convert a MKV video file containing DTS audio to a stream with AC3 audio. I want to pass this resulting stream to mediatomb's transcoding feature. Mediatomb will transfer the stream via DLNA ...
4
votes
1answer
3k views

ffmpeg: images to 29.97fps mpeg2, audio not sync

I have spent a lot of time on this issue. Hope someone can help. I want to convert 3147 images + ac3 audio file into an mpeg2 video at 29.97fps (about 1m45s). My command: ~/ffmpeg/ffmpeg/ffmpeg ...
3
votes
1answer
868 views

How can I use ffmpeg to accurately export images from a video file?

My goal; export a series of images from a video file using ffmpeg. I guess my issue is related to frames per second and bit-rate. I tried the following command: ffmpeg -i myVideo.mp4 -r 1 ...
2
votes
1answer
380 views

Time of splitting and encoding video with ffmpeg increases exponentially

I'm trying to split a video by subtitles and encode into .mp4(h.264/aac) using ffmpeg, but it takes so much time! First pieces of video are splited and encoded really fast, but for each iteration time ...
3
votes
1answer
872 views

How can I avoid a few seconds of blank video when using -vcodec copy?

I'm processing user-uploaded videos on a CentOS web server with ffmpeg. I need to convert each video to a standard size and format, then extract a 30-second sample clip from each video. I want to use ...
1
vote
1answer
544 views

Small pieces of video split by ffmpeg are not playing or playing with artifacts

I'm trying to cut a video file into small parts (0.5-5s) and encode these parts to h.264/aac with ffmpeg. I'm using this command: ffmpeg -i 1.avi -ss 00:05:00 -t 00:00:01,50 -vcodec libx264 -threads ...
2
votes
2answers
596 views

“theora_encode_init failed” when converting FLV to OGG Theora video using FFmpeg

How can I use FFmpeg to convert a flash video (.flv) to an OGG Theora video to display in HTML 5? When I tried using ffmpeg -i dayinthelife.wmv -vcodec libtheora -acodec libvorbis -b 750k ...
1
vote
1answer
328 views

ffmpeg kills my audio stream

i am converting a bunch of avi videos to mkv, using simply ffmpeg -i "foo.avi" "foo.mkv". Now i have the problem, that in my output-mkv-file exists one video stream (fine) but only the first audio ...
1
vote
1answer
4k views

FFMPEG able to convert m4a -> mp3, but unable to convert mp3 -> mp3?

FYI: Fedora 8 running on Amazon EC2... Having a difficult time with FFmpeg doing a (what should be pretty simple) conversion. I can get FFmpeg to encode an mp3 file from an m4a file using the ...
21
votes
6answers
20k views

FFMPEG convert flv to mp4 without losing quality [duplicate]

Currently I'm converting .flv flash files to .webm and .mp4 files to be used with an HTML5 video player. _ I use this ffmpeg command for WEBM: ffmpeg -i filename.flv -vcodec libvpx -acodec libvorbis ...
2
votes
0answers
3k views

Stream video with FFMPEG, “Output file does not contain any stream”

I would like to stream an H.264 encoded elementary stream wrapped in RTP headers to a port using FFMPEG. I have tried the following command lines to no avail... ffmpeg -i 1080p_1.h264 -f rtp -vcodec ...
2
votes
0answers
1k views

how to create or extract a silent mp3 from a video file using ffmpeg or mencoder?

I am looking to create an mp3 of silence that is the same duration as the input video file using either ffmpeg or mencoder. Using ffmpeg I have tried this: ffmpeg -y -i in.avi -ab 8k -ac 1 -vol 0 ...
4
votes
1answer
745 views

How can I find out how big my encoded file will be?

I am converting a video using the following command: ffmpeg -i "input.avi" -vcodec mpeg4 -r 15 -sameq "output.avi" However I'm only interested in the file size of output.avi. Is there a command I ...
8
votes
3answers
12k views

How to use ffmpeg to add metadata to an AAC file without reencoding?

I'm using ffmpeg to extract just the audio stream from a video file: ffmpeg -i video.mp4 -vn -acodec copy audio.aac This produces a clean audio file but without any metadata. To add metadata, ...
0
votes
1answer
876 views

Record mjpeg with ffmpeg

I want to record a mjpeg stream via ffmpeg, but as the framerate of the mjpeg is very unreliable the result video is at first to fast and the speed changes. The source i used to test is: ...
0
votes
1answer
2k views

Encoding MKV to DVD with ffmpeg

I'm trying to convert the file type of a movie file so I could burn it on a DVD disc. Here's the command and output: $ ffmpeg -i "/path/to/movie.mkv" -target dvd "movie.mkv" FFmpeg version ...
14
votes
3answers
12k views

How to create an uncompressed AVI from a series of 1000's of PNG images using FFMPEG

How can I create an uncompressed AVI from a series of 1000's of PNG images using FFMPEG? I used this command to convert an input.avi file to a series of PNG frames: ffmpeg -y -i input.avi -an ...
0
votes
1answer
171 views

`Ffmpeg` aptitude install seems to break packages.

I tried to install ffmpeg because I thought/think it is needed for compiling OpenCV. However, when trying to do that I think I screwed up. How can I undo what I did? $ sudo aptitude install ffmpeg ...
1
vote
0answers
837 views

Decent profile for transcoding to webm and mp4 files with ffmpeg [duplicate]

Possible Duplicate: What bunch of ffmpeg scripts do I need to run “Video for everybody”? I am in the process of converting large, high quality, mxf container files (using mpeg-1 ...
5
votes
2answers
10k views

Converting images to video using FFMPEG on Windows

I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG. I've ...
1
vote
1answer
11k views

FFMPEG - How to demux LIVE multi-program transport stream?

Assume that I have a fifo of bytes that is essentially coming from a capture card. Basically, this is NOT A FILE ON DISK. The data in this fifo is a multi-program MPEG-TS. There are three ...
1
vote
0answers
317 views

How to display and capture webcam stream at the same time?

This command works perfectly for saving a webcam stream to a file: ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi How would I simultaneously ...