Skip to content

Latest commit

 

History

History

ffmpeg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

ffmpeg

Table of Contents

Fix errors

ffmpeg -err_detect ignore_err -i INPUT.avi -c copy OUTPUT.avi

Fix non-standard stored B-frames

ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi

Detect frozen parts

ffmpeg -i .\INPUT.avi -vf "freezedetect=n=-60dB:d=2" -map 0:v:0 -f null -

Remove frozen parts

ffmpeg -i INPUT.mp4 -vf mpdecimate -vsync vfr OUTPUT.mp4

Remove frozen parts without the audio

ffmpeg -i INPUT.mkv -vf mpdecimate -map 0:v OUTPUT.mp4

Concatenate video files

Use this method when your videos have the same parameters (width, height, formats/codecs) to avoid a re-encode.

First prepare a text file mylist.txt containing the list of files you want to concatenate, in the following format:

file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

Then run the following command:

ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4

Extract the audio from a video

ffmpeg -i sample.mp4 -q:a 0 -map a sample.mp3