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
2answers
296 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?
3
votes
1answer
620 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" ...
4
votes
2answers
7k 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 ...
5
votes
1answer
13k 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
545 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
9k 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
426 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 ...
1
vote
2answers
4k views

Using avconv (ffmpeg) to concatenate a bunch of .bmps into a mkv/avi video

Trying to figure out how to get avconv to concatenate a bunch of .bmps together into a video file. Here's what I've got so far: avconv -f image2 -i Capture/%d.bmp -vcodec mpeg4 -r 24 -b:v 20M ...
1
vote
1answer
382 views

The fastest way to encode image+audio for Youtube from command line?

I have an mp3 and image and I want to make a simple clip to upload onto Youtube. Is there a fast solution? If video formats are so bad designed, then maybe it is possible to use a prerendered ...
1
vote
0answers
315 views

Video converted using ffmpeg does not have fast forward feature

I used the following command to convert the video codec: ffmpeg -i input.avi -c:v libx264 -c:a copy output.mp4 When I play the output.mp4 I observe than the fast forward feature is not enabled. ...
0
votes
0answers
382 views

Installing ffmpeg-devel with MacPorts fails

I did a selfupdate and updated all dependencies. When I do sudo port install ffmpeg-devel I get ---> Computing dependencies for ffmpeg-devel ---> Building ffmpeg-devel Error: ...
9
votes
2answers
16k views

Strip metadata from all formats with FFmpeg

How can I remove all metadata from all formats via FFmpeg? I can just set special metadata for each format per man ffmpeg. Any option or method to clear all metadata and strip media from all metadata ...
0
votes
2answers
1k views

AVCHD MTS h264 1080p file with choppy playback in Linux

When I'm trying play video files from my camera: Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 50.00 (50/1) Input #0, mpegts, from '00027.MTS': Duration: ...
1
vote
4answers
7k views

FFmpeg - No Such File or Directory?

I am attempting to use FFmpeg to extract audio from a mp4 and I keep running into this error: CFileffmpegvideo.mp4: No such file or directory exist. I am in command prompt (in Windows 7) and have ...
0
votes
0answers
20 views

Convert ISO to MP4 with ffmpeg cli on linux [duplicate]

Possible Duplicate: how do I convert .iso to .mp4 without mounting with ffmpeg I have numerous iso and I would like to convert them to mp4 using ffmpeg (only the main video and not menus ...
1
vote
2answers
12k views

HLS video segmenting complications. How to create a transport stream with ffmpeg

I have h264 videos, and currently we're using Apple's HTTP Video Streaming tools and mediafilesegmenter to segment these files. What I need to do is to switch to alternative segmenter based on this ...
9
votes
3answers
20k views

How can I re-encode H.264 video with minimal quality loss?

I have a lot of MPEG-TS files (.TS container but H.264 video) and playback is fine except that when you skip forward/backward or fast forward it's very sluggish and gets pixelated, etc. I've been ...
9
votes
3answers
26k views

Creating MP4 videos ready for HTTP streaming

How can I convert some.flv or some.avi or some.wmv with FFmpeg to be sure that this video will be playable and seekable in JW Player?
1
vote
1answer
5k views

Better-quality FFMPEG conversion from MTS to AVI

I got the following code from some forum. I'm a beiginner, so please bear with my questions ... I need to convert a video from MTS to AVI in very good quality. Currently I'm using the following code ...
0
votes
2answers
911 views

How to encode a fully working h264 video for flash player?

How to encode a fully working h264 video for flash player? I did some homework: It seems that I should use command like "ffmpeg -i input.mp4 -vcodec libx264 -g 1 -r 25 output.mp4" but no luck: the ...
0
votes
1answer
1k views

ffmpeg and png watermark issue

I tried to create a watermark (using a png image) on a video like this: ffmpeg -i test.wmv -b:a 300k -ar 22050 -t 10 -f flv -s 352x288 -vf "movie = watermark_logo352.png [watermark]; [in][watermark] ...
2
votes
1answer
2k views

How to convert 3g2 to mp4 without losing audio?

How do I convert .3g2 to .mp4 successfully from the command line? I'm using ffmpeg commands like: ffmpeg -i input.3g2 -acodec copy -vcodec libx264 output.mp4 ffmpeg -i input.3g2 -acodec ac3 -vcodec ...
2
votes
2answers
9k views

FFmpeg convert video w/ dropped frames, out of sync

I recorded a video using Bandicam with the MJPEG encoder to get the least amount of lag. Now, I am trying to convert that massive file to a h264 avi using ffmpeg. I know there are dropped frames in ...
38
votes
2answers
17k views

How can I get ffmpeg to convert a .mov to a .gif?

I'm trying to convert a .mov to a .gif and I'm not having success. Here's the error: ffmpeg -pix_fmt rgb24 -i yesbuddy.mov output.gif ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg ...
5
votes
3answers
9k views

Which codecs are most suitable for playback with Windows Media Player on Windows XP?

I need to encode a short video in a format that can be played with windows media player on windows xp without installing any additional codecs. For the recoding process I'm using ffmpeg. I've already ...
2
votes
3answers
1k views

Why is the first image changing so quickly when creating video from images via FFmpeg?

ffmpeg -r 0.15 -qscale 2 -i /var/www/44693/%0d.jpg /var/www/44693/output11.mp4 With this command I am creating video from images, but the first image is changing so quickly. Others are just fine. ...
1
vote
0answers
855 views

How to get ffmpeg to drop frames / change rate for live source?

I’ve got a webcam and want to dump a frame once a second to disk. A command like this works well to drop 5 frames per second to disk: ./ffmpeg -y -f video4linux2 -input_format mjpeg -r 5 -i ...
1
vote
1answer
4k views

ffmpeg: extract frames and get their exact timestamps

I'm trying to extract frames from a variable framerate video every 5 seconds and get the exact timestamps of each frame extracted. This is what I have so so far: -i inputfile -vstats_file vstats.log ...
3
votes
2answers
10k views

Conversion from WMV to MP4 file fails with FFmpeg

When converting a WMV file to an MP4 file, it says [mp4 @ 0x989c160] track 1: could not find tag, codec not currently supported in container and Could not write header for output ...
1
vote
1answer
904 views

Why does FFMPEG adds up extra bit rate to video?

I use FFMPEG (command line Input) to convert my videos to a specific output format. The problem I am facing is when I try to pass a constant bit rate(700 kbps) to FFMPEG, the result is an output ...
1
vote
1answer
829 views

Create a watermark in a separate track with FFmpeg

I have a PNG (alpha) file and a video file. I want to create a video in which the first track is the image and the second track is the video (PNG over video). The problem is that the PNG doesn't ...
4
votes
2answers
676 views

Best way to repackage ripped DVD to mpg

I have a bunch of DVDs that I've already ripped into a VIDEO_TS directory containing .IFO and .VOB files. I have a cheap primitive video player that will accept .mpg files. I've tried two different ...
2
votes
0answers
400 views

problems encoding 1080p60fps MTS files with ffmpeg to DNxHD proxy; plays too slow in NLE compositor window.

I was advised to encode my HD files with ffmpeg to DNxHD proxy with 220M bitrate rather then 45M so the image doesnt have too much artifacts. I reduced the framerate to 29.97 fps when I encoded the ...
1
vote
1answer
514 views

force vlc to use libav, and pass libav specific options

I have a stream, that I can successfully decode with ffmpeg, with this command line: ffmpeg -f image2pipe -vcodec png -r 30 -i - Now I want to to pipe it directly to vlc. I tried this one with ...
2
votes
1answer
1k views

multiple png images over a single pipe to ffmpeg (no file writes to disk!)

I have a program that generates a script for gnuplot, which in turn generates a lot of png images and send it to stdout. I want to pipe these images to ffmpeg without writing them to the disk. This is ...
9
votes
1answer
3k views

What bunch of ffmpeg scripts do I need to get HTML5-compatible “Video for everybody”?

What list of commands should I do in ffmpeg/mencoder/some_other_CLI_app to get a video in all the right formats to use Video for Everybody? i.e. Is there a subtlety that prevents there being a ...
2
votes
1answer
765 views

Maintaining Aspect Ratio Using ffmpeg

Is there any way to tell ffmpeg to preserve the aspect ratio when resizing a video by adding padding in the shorter dimension? I know that I can do it by manually adding the proper amount of padding, ...
0
votes
0answers
925 views

No audio after conversion from AVI to SWF using ffmpeg

I was able to convert the video from AVI to SWF however the sound seems to have been stripped out. I am running the following command ffmpeg -i 1.avi -b:a 3000k -vcodec flv -ab 128k -ar 44100 ...
0
votes
1answer
440 views

ffmpeg trimmed video does not support jumping to a time position

After a video is cut, the player (mplayer) cannot jump to a specific time position anymore. Clicking the timeline will usually end the playback. How can this be fixed?
0
votes
1answer
895 views

MP4 re-ecoding to guarantee concatenation without re-encoding

I have 2 mp4 videos that fail to concatenate when using: MP4Box -add 1.mp4 -cat 2.mp4 out.mp4 Is there a way to re-encode 2.mp4 so that the concat call will create a valid output? Possibly with ...
11
votes
3answers
8k views

How to concatenate two flv files?

I want to concatenate two flv files(downloaded from Youtube.com) by linux command line tools. The ffmpeg tutorial is too complicated, so I tried the mencode tutorial. But I get a empty output. I don't ...
1
vote
2answers
2k views

ffmpeg: Pipe input error

I'm facing an issue while working with ffmpeg when input and output are pipes. Though Output pipe is working fine, piping the input is causing some error. I tried to convert mp4 video to flv using ...