Skip to content

Instantly share code, notes, and snippets.

@ihatem
Created June 3, 2019 19:59
Show Gist options
  • Save ihatem/0642d8781cdea4f4de51a83f3f127c5f to your computer and use it in GitHub Desktop.
Save ihatem/0642d8781cdea4f4de51a83f3f127c5f to your computer and use it in GitHub Desktop.
VIDEO_TS to Ripped MKV

VIDEO_TS to Ripped MKV

  • The ffmpeg command is in ffmpeg package, from rpmfusion free. It's not in Fedora proper because of patent issues, I believe.
  • -i concat:VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB marks that input file is a direct join of the three VOB files listed, the backslash is to escape the "|" so that it's seen by ffmpeg instead of bash.
  • -map 0:v tells that ALL video streams are to be copied/transcoded.
  • -map 0:a tells that ALL audio streams are to be copied/transcoded.
  • -c:v libx264 tells that for video streams we'll use libx264 codec (i. e. we'll transcode to h264).
  • -crf 18 tells that we want to use Constant Rate Factor, value 18 (which might be a bit of overkill, but I don't want to sacrifice quality for space and I don't have the time tune it).
  • -vf yadif use YADIF deinterlacing, because I don't wanna keep interlacing in the video – I'll be playing it on a computer, after all.
  • -c:a flac tells we'll be using FLAC for audio streams. It's free and lossless. Again, it might be overkill, but I like to keep the original sound without using nonfree codec like AAC or AC3.

source : https://mso-chronicles.blogspot.com/2014/08/ripping-dvd-with-ffmpeg.html

ffmpeg -i concat:VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB -map 0:v -map 0:a -c:v libx264 -crf 18 -vf yadif -c:a flac aikido.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment