ffmpeg
is a free software project aimed at producing tools (libraries and programs) for handling multimedia data.
Questions tagged [ffmpeg]
660 questions
43
votes
4 answers
Strange errors when using ffmpeg in a loop
I have a bash script looping through the results of a find and performing an ffmpeg encoding of some FLV files. Whilst the script is running the ffmpeg output seems to be interupted and is outputting some strange looking errors like the one below.…

Mark Williams
- 773
11
votes
4 answers
ffmpeg: 'Protocol not found' for normal file name
Every then and now ffmpeg tells me
myfile.avi: Protocol not found
Did you mean file:myfile.avi
if executing ffmpeg -i myfile.avi -vcodec copy -acodec copy -pix_fmt yuv420p myfile.mp4.
Using ffmpeg -i file:myfile.avi -vcodec copy -acodec copy…

Jaleks
- 2,579
8
votes
1 answer
burning webvtt subtitles to mp4 video
I'm looking for a way that burning subtitles to mp4 videos with ffmpeg.
I used the following command to convert and burn subtitle but its not worked !
ffmpeg -i subtitle.vtt subtitle.srt
ffmpeg -i video.mp4 -i subtitle.vtt -c copy -c:s mov_text…

unbl0ck3r
- 213
8
votes
1 answer
How to use a wildcard in FFMPEG?
Lets say I want every .mp4 file in a folder as an input file.
How does one do that? It only reads it literal.

user96155
- 81
- 1
- 1
- 2
6
votes
2 answers
How to hardcode subtitles from stream with ffmpeg?
I am trying to hardcode subtitles into a new video. The original video contains a subtitle stream, i.e, in total there vide, audio and subtitles (among other streams):
...
Stream #0:0(eng): Video: h264 (High 10), yuv420p10le(progressive), 1280x720,…

Alex
- 5,700
5
votes
1 answer
How to save a single desktop snapshot in jpg with ffmpeg?
The syntax for a desktop movie is
ffmpeg -f x11grab -r 100 -s 1200x500 -i :0.0 \
-vcodec libx264 -threads 3 output.mp4
I want to take a single snapshot instead of a video and save it in jgep.
Which ffmpeg command allow me to do so?

j1088099.mvrht.com.
- 3,013
4
votes
0 answers
How can I prevent ffmpeg intermmittent faulure with `AVC: nal size` error?
I am trying to open the NASA HDTV video stream from ustream.tv directly in vlc. The problem that I have is that it only works sometimes. The command I am using is below:
ffmpeg -i…

starfry
- 7,442
4
votes
1 answer
How to get lilbmp3lame encoding to work with ffmpeg?
When I am converting an FLV to an AVI one, I always get:
Unknown encoder 'libmp3lame'
But I've installed it with Ubuntu Software Center.
I am using this command:
ffmpeg -i video.flv -acodec libmp3lame -vcodec msmpeg4 -ab 192kb -b 1000kb -s 640x480…

oneat
- 1,022
4
votes
1 answer
No way to record a live stream to WebM using ffmpeg?
I'm streaming from an mp4 source and so far I've managed to save clips as ogg (video: libtheora, audio: flac), but I'd like to save them in the WebM format. Unfortunately, WebM demands libvorbis for audio and when I try to do that:
$ ffmpeg -t 60…

Felix
- 453
4
votes
0 answers
ffmpeg: Specifying audio stream as filter input
I am trying to use ffmpeg to make two videos play next to each other simultaneously with both videos' audio combined. This is the command I'm currently running:
$ ffmpeg -i video0.mp4 -i video1.mp4 \
-filter_complex "[0:v][1:v]vstack[video];…

A. Munny
- 41
4
votes
1 answer
ffmpeg connection to tcp://localhost failed
I've spent days going over google and serverfault ffmpeg questions, and I can't figure out why I get this error:
[tcp @ 0x357230] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
It will work with 127.0.0.1, but I…

ChrisAdmin
- 171
- 1
- 1
- 6
4
votes
2 answers
How to set default subtitle with ffmpeg
I created a mp4 file from video, audio and .srt file.
ffmpeg -i video.mp4 -i audio.m4a -i sub.srt -map 0:0 -metadata:s:v:0:0 language=eng -map 1:0 -metadata:s:a:0:0 language=eng -map 2:0 -metadata:s:s:0:0 language=eng -c copy -scodec mov_text…

ironsand
- 5,205
4
votes
1 answer
FFMPEG video to FLV conversion optimization
Would anyone have any tips on optimizing video to FLV conversion using ffmpeg so I would get a medium quality video which is not very large?
I have a video site where users can upload videos which will be converted to FLV and displayed. Those videos…

Souljacker
- 141
3
votes
1 answer
How to transcode audio of video with ffmpeg?
I am trying to transcode an audio of video. I have a live stream(video-h264, audio-mp2). I need to convert an audio to aac codec and stream it. I don't want to waste a lot of resource for video processing. How can I do it with ffmpeg? (I have…

Gani Rakhmatov
- 437
3
votes
1 answer
ffmpeg hangs when trying to record video on higher resolutions
I'm trying to record some videos using a USB camera, but I'm having some issues when using ffmpeg.
If I run ffmpeg -f video4linux2 -t 00:00:10 -i /dev/video0 out.mpg, the program tries to record at 640x480 resolution and ffmpeg hangs.
However, if I…

Guilherme Costa
- 324