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

0
votes
0answers
17 views

unable to run ffmpeg on nginx server [on hold]

i was trying to run the ffmpeg command on the ngnix server running on Webmin/virtualmin. echo exec("/usr/local/bin/ffmpeg -i test.mp3 -codec:a libmp3lame -b:a 128k out.mp3"); And $ffmpegpath= ...
15
votes
4answers
29k views

How to merge audio and video file in ffmpeg

I want to merge an audio file (.wav or .au format) with a video file (.mp4 format). Please suggest me how to achieve this. I want to merge these file to new .mp4 video file. An ffmpeg command would ...
7
votes
2answers
10k views

Convert video with vp9 codec using ffmpeg

I am trying to convert input.mp4 video to output.mkv using vp9 codec. I have install development version of ffmpeg via: brew install ffmpeg --devel. ffmpeg -i input.mp4 -vcodec vp9 output.mkv But I ...
1
vote
0answers
9 views

Configure ffmpeg and ffplay to PAL signal

I have a PAL camera and a stk1160 based video grabber, which is correctly recognised as a /dev/videoN under linux. I am able to watch the feed with vlc after setting up the video standard as a PAL: ...
0
votes
1answer
23 views

Extracting the index of key frames from a video using ffmpeg

I'm using ffmpeg for extracting key frames from a video. This is the command: ffmpeg -i test2.mp4 -vf select='eq(pict_type\,I)' -vsync 2 -s 160x90 -f image2 thumbnails-%02d.jpeg How can I get the ...
0
votes
0answers
4 views

Adding audio to video without re encoding

I am looking to add audio to a video without having to re encode the two pieces. I have looked at a few questions on stack overflow followed the answers and i still cant seemed to get it to work, if ...
1
vote
0answers
23 views

ffmpeg issue creating video on Linux

I have the following ffmepg command that works perfectly on my local server running windows but when I try on my Linux server I get the following issue: The video.mp4 is getting created but it stops ...
0
votes
1answer
2k views

How to extract all key frames from a video clip?

I'm trying to extract key frames from a video clip. I tried the following command, but it extracts all frames. ffmpeg -vf select="eq(pict_type\,PICT_TYPE_I)" -i 2.flv -vsync 2 -s 73x41 -r 30 -f ...
7
votes
2answers
4k views

Drop every even or odd frames using FFmpeg?

Is there an accurate way to take raw video and extract from it a new video that contains only odd frames or even frames (by choice)? For example: I have "blah.yuv" with 400 frames (0-399). I want to ...
2
votes
1answer
184 views

Why does FFmpeg segment_times create webm files with incorrect duration and start times?

I have a MOV file that I want to split into several smaller files (at certain timestamps in a comma-separated list). I'm simultaneously compressing the video into WEBM files. The command I'm using ...
0
votes
0answers
18 views

Flash player seek not working when ffmpeg encoded with gop(-g) = 1

I am trying to deliver video content with frame-by-frame viewing via the SMP Flash player. For encoding, I am using FFMPEG with the x264 video codec for files with .mp4 containers. I am using the ...
0
votes
0answers
12 views

Seeking via http protocol m3u8 file and preloading

I have m3u8 + ts files on server. ffmpeg -i http://example.org/dir/index.m3u8 -c:v copy -f flv - this command, helps to read the full array of ts files. I have two main problems. ffmpeg receives ...
0
votes
1answer
27 views

ffmpeg: video is not creating for uneven pixel ratio images

I am using ffmpeg to create a video using images, its creating video for uniform images (ie all the images should be same pixel ratio). It doesn't work for images that vary in frame size: it is ...
2
votes
1answer
42 views

Hardcoding FFMPEG subtitles on MP4 / MKV

I am using FFMPEG to hard code subs into a video. Having read many posts on the best approach, and whether to use mkv or mp4, but am still none the wiser. The code below uses an mp4 file. The ...
0
votes
0answers
11 views

ffmpeg Adding water mark to my Videos [duplicate]

I have a problem here, here is the code i use to make video clips with my audio files and an Image, my only problem is that i want to add a water mark to bottom-center of clips ( a png file 1056x90 ) ...
0
votes
0answers
10 views

Seeking FFPLAY command for LIVE Decklink audio input to AVectorScope filters live on screen

My first superuser question. Using FFPlay or FFMPEG I'd like to be able to have visual monitoring of live audio (level meters, vectorscope) real-time on screen from a BlackMagicDesigns Decklink ...
1
vote
1answer
15 views

How to add external library to Homebrew ffmpeg install?

I successfully installed ffmpeg through Homebrew. I want to add additional libraries/codecs. FFmpeg can be hooked up with a number of external libraries to add support for more formats. None of ...
0
votes
1answer
14 views

Extract image from an RTSP gives me errors

I am using FFMPEG in a DOS Prompt. -i rtsp://admin:admin@192.168.0.17:554/video_0 -q:v 15 -s 360x240 -vf \"select='eq(pict_type,PICT_TYPE_I)'\" -vsync vfr -f mjpeg -i - I am getting the error: ...
1
vote
1answer
65 views

Proper DVD rip for serving via UPnP

I am a happy user of minidlna (version 1.0.24) on an old Mac Mini G4. It does work quite well in my environment. Since minidlna does not allow transcoding, I would like to rip a set of DVDs (mostly ...
0
votes
0answers
9 views

ffmpeg start recording at certain time

I'm searching a ffmpeg option that let me start recording streaming source at a certain time: I start my php script with crontab, inside my php I run ffmpeg for X minutes. Ffmpeg takes some seconds to ...
0
votes
0answers
9 views

Having issues burning subtitles with ffmpeg

I followed this wiki on how to burn the srt file into the mp4 file: ffmpeg -i video.avi -vf subtitles=subtitle.srt out.avi It's been running overnight and the end seems far. Is it normal? How can I ...
1
vote
1answer
12 views

Erroneous volume level shifts using ffmpeg to convert AC3 in M2TS to WAV

I using ffmpeg to extract audio from non-commercial bluray m2ts video files, for subsequent loudness analysis in AudioLeak or Dolby Media Meter. The m2ts sometimes have AC3 audio and sometimes have ...
21
votes
6answers
19k 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 ...
1
vote
2answers
3k views

Problems with frame rate on video conversion using ffmpeg with libx264

I have problems with transcoding some videos. I ran the most simple ffmpeg command and it takes very long time and the output file is about 10 times bigger. If I provide the frame rate parameter -r it ...
0
votes
1answer
225 views

Downmix drops low frequency channel

I have noticed a problem with FFmpeg downmixing. If I run a command such as ffmpeg -i infile.flac -ac 2 outfile.flac It will have identical result as ffmpeg -i infile.flac \ -map_channel 0.0.0 \ ...
1
vote
1answer
84 views

FFMPEG extract audio with exact frame length of video

For a digital cinema package I need to extract the audio track (.wav, 48000 khz, 16-bit) from Quicktime movies (in this case with Prores or Photo-JPEG codec). The catch is that the duration of the ...
3
votes
2answers
6k views

ffmpeg: Could not find codec parameters for stream 0 (Video: h264) unspecified size

I try to convert a video from .raw to .mp4. For this reason I did download, build and install both x264 and ffmpeg. However, command: ffmpeg -f h264 -i output.raw -vcodec copy output.mp4 fails with ...
2
votes
2answers
1k views

Can I make ffmpeg stop if integrity check encounters an error?

Is there a way to stop ffmpeg from processing if an error was encountered? I'm using ffmpeg to check video integrity by using: ffmpeg -v error -i file.avi -f null - 2>error.log However, I'd ...
3
votes
0answers
2k views

create video from jpg images using ffmpeg

I want to make short timelapse video using ffmpeg under ubuntu 12.04 LTS. I have a folder containing all images with names DSC_0000.jpg DSC_0001.jpg and so on. I found this question ffmpeg: create a ...
0
votes
1answer
52 views

how to join ts files together into mp4 with ffmpeg?

I download a lot of streams since the internet speed is too slow to watch high definition. When I download a stream I find the .m3u8 file which points to the TS files. Then I use the following ...
0
votes
0answers
20 views

How to sync splitted mkv + external srt with ffmpeg?

I want to convert MKV audio from DTS to MP3 and split the file at the same time. The problem is: I need an external .srt but when I split it, the second file is desynced from video. Example: ffmpeg ...
0
votes
0answers
36 views

ffmpeg through shell script is not running

I have to run a ffmpeg command . I am running the below command in command prompt and works fine. ffmpeg -v verbose -i rtsp://99.192.203.99:8091/test.sdp -i rtsp://99.192.203.99:8091/test.sdp ...
0
votes
2answers
41 views

How to combine WebM and Opus to generate MP4?

I am using following command but it is giving wrong output. ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4 Output: ffmpeg version 1.2.6-7:1.2.6-1~trusty1 ...
0
votes
1answer
469 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.
0
votes
1answer
28 views

Avoid ffmpeg re encode using complex filter

I have a list of ts files that will be concatenated to being trim later and encode it in mp4. All of it is working ok... however the problem I have right now is the file is re-encoded... and that is ...
0
votes
1answer
29 views

Convert from avi to uncompressed tiff using ffmpeg

In Use ffmpeg for JPEG to TIFF conversion there is an answer how to convert to TIFF. So, I followed that process written on that answer: ffmpeg -i input.avi -pix_fmt rgb24 output.tiff ...
8
votes
3answers
473 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 ...
4
votes
1answer
1k views

How to replace an audio stream in a video file with multiple audio streams?

I want to replace the second audio stream (0:2) in a video file that has two audio streams and give it a label if possible. How would I go about this? All the ffmpeg commands I found won't let me keep ...
9
votes
3answers
24k 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
19 views

run 2 different versions of ffmpeg form same server

I'm trying to run a second version of ffmpeg on a unix server without update or remove the old version. In the server it's installed version 1.0.1, can I compile latest version of ffmpeg (current ...
0
votes
1answer
27 views

Skipping a frame without re-encoding H.264 video

I have an mp4/h.264 video which only contains I-Frames. I want to skip one of those I-frame without re-encoding the entire video. I tried this: ffmpeg -i "file.mp4" -vf select='not(eq(n\,10))' ...
0
votes
1answer
21 views

How can I avoid a black background when fading in an overlay with ffmpeg?

I'm using ffmpeg to fade in an overlay from a non-transparent image (e.g. a JPEG or PNG without alpha channel): $ ffmpeg -i big_buck_bunny_480p_surround-fix.avi -loop 1 -i logo.png \ -filter_complex ...
3
votes
2answers
5k views

ffmpeg: How to place multiple overlays and fade out the topmost properly

I'm trying to place several overlays on top of each other and fade out the topmost after some frames. Therefore I'm using 2 .png files which should be placed on the final video in the following order: ...
0
votes
0answers
32 views

Crossfading Video AND Audio with ffmpeg

This Super User answer crossfade between 2 videos using ffmpeg has got me so far, but now that I have tried many solutions and seen every SO link out there, it's time to ask you all for help. I am ...
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
3answers
1k views

reduce background noise and optimize the speech from an audio clip using ffmpeg

I extract audio clips from a video file for speech recognition. These videos come from mobile/other handmade devices and hence contain a lot of noise. I want to reduce background noise of the audio so ...
1
vote
2answers
6k views

Double deinterlace with full motion - ffmpeg + yadif 50i-50p 60i-60p

I'm trying to figure out how to use yadif / yadif-2x with ffmpeg to convert 50i source material into 50p output that preserves the motion of all fifty fields per second. Right now, I am using the ...
1
vote
2answers
1k views

Is it possible to autocrop black borders of a video with ffmpeg?

I think it has a "blackness" video filter, which can determine if a picture sequence is black. Maybe it also has a filter to determine crop values automatically to remove black borders form edges of a ...
0
votes
0answers
19 views

Extract frames from video and set timestamp on images

I want to extract frames every 10 seconds from a video and geotag these frames using a GPX track. On my Windows 8 computer I have tools to extract the frames (FFMPEG), set image timestamps (ExifTool) ...
1
vote
2answers
826 views

FFMPEG does not have fps filter. How to fix it?

I am trying to user fps filter to take thumbnails but it gives error: No such filter: 'fps' I checked the list of filters using ffmpeg -filters and fps was not there. How to install it or fix ...