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
1answer
935 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 ...
11
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
423 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 ...
4
votes
1answer
883 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
904 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
553 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
603 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
331 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 ...
22
votes
6answers
21k 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
776 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
894 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
13k 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
174 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 ...
6
votes
2answers
11k 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 ...
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
827 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 ...
3
votes
1answer
2k 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
520 views

How to transform all the images from the current directory to a video in FFmpeg? [duplicate]

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 and 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 ...
43
votes
2answers
67k 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
174 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
711 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
732 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
966 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 ...
28
votes
4answers
24k 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 ...
27
votes
1answer
27k 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
20k 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
21k 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 ...