In this tutorial, I will show you a simple way to RIP DVD into a single file using FFmpeg command line tool in Linux.

Install FFmpeg in Ubuntu/Debian/Linux Mint

sudo apt-get install ffmpeg

Now copy contents of your DVD to local folder and cd into that folder(eg: video_ts)

1. RIP DVD into a single file

Now enter below command to start riping process in optimum quality, If you want to control the size (eg: limit size to 700MB) of the ripped file, then use the third command

cat VTS_0*_*VOB | ffmpeg -i - -vcodec h264 -acodec mp2 rip.mp4

2. RIP DVD with deinterlace option

If you want enable deinterlace option run below commnad

cat VTS_0*_*VOB | ffmpeg -i - -vf yadif -vcodec h264 -acodec mp2 rip.mp4

3. RIP DVD with quality option

Use below command to reduce size and quality of output file, Here the ‘-crf’ option sets the quality of the ripped file. The range of the CRF scale is 0–51, where 0 is lossless , 23 is the default, and 51 is the worst quality possible.

cat VTS_0*_*VOB | ffmpeg -i - -c:v libx264 -crf 23 rip.mp4

Above command will read all video files in a folder and pipe the stream to FFmpeg command, after the successful completion of the command you can find the ripped file with name rip.mp4

Categories: Tutorials

shyam jos

My name is Shyam Jos, I am a passionate Linux system administrator from Kochi, India. I am a strong advocate of using Linux and Open-Source software.


SAMsan · September 23, 2019 at 1:40 PM

Great great greta! And so fast!

Xavier DELESTRE · December 13, 2020 at 3:05 AM

thanks for sharing bro.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.