Table of Contents
- Fix errors
- Fix non-standard stored B-frames
- Detect frozen parts
- Remove frozen parts
- Remove frozen parts without the audio
- Concatenate video files
- Extract the audio from a video
ffmpeg -err_detect ignore_err -i INPUT.avi -c copy OUTPUT.avi
ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi
ffmpeg -i .\INPUT.avi -vf "freezedetect=n=-60dB:d=2" -map 0:v:0 -f null -
ffmpeg -i INPUT.mp4 -vf mpdecimate -vsync vfr OUTPUT.mp4
ffmpeg -i INPUT.mkv -vf mpdecimate -map 0:v OUTPUT.mp4
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
ffmpeg -i sample.mp4 -q:a 0 -map a sample.mp3