Skip to content

Instantly share code, notes, and snippets.

@Jakz
Last active February 29, 2020 15:22
Show Gist options
  • Save Jakz/8ea18eb9a0febe8102da39f9654b78dc to your computer and use it in GitHub Desktop.
Save Jakz/8ea18eb9a0febe8102da39f9654b78dc to your computer and use it in GitHub Desktop.
ffmpeg cheat sheet

Concatenate multiple VOB into same

ffmpeg -i "concat:/Path/File1.VOB|/Path/File2.VOB" -c copy file_output.vob

Convert VOB video to x256

ffmpeg -i file_input.vob -vf yadif -c:v libx265 -preset slow -crf 20 -c:a aac -b:a 256k file_output.mkv

Cropping a video

ffmpeg -i in_file.mkv -filter:v "crop=out_w:out_h:x:y" out_file.mkv

Extracting audio from video

ffmpeg -i input.vob -vn -c:a aac -b:a 256k output.m4a

Convert to x265 10bit

ffmpeg -i input.mkv -c:v libx265 -preset medium -crf 24 -pix_fmt yuv420p10le -c:a copy output.mkv

Check if x265 supports 10 bit (check for p10le)

ffmpeg -h encoder=libx265 | grep pixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment