Skip to content

Instantly share code, notes, and snippets.

@kuenishi
Last active March 23, 2020 18:31
Show Gist options
  • Save kuenishi/4336569 to your computer and use it in GitHub Desktop.
Save kuenishi/4336569 to your computer and use it in GitHub Desktop.
How to rip your dvd to backup

Howto

  1. install brasero (gnome automatically installs it)
  2. install libdvdcss
  3. start brasero
  4. install disk
  5. set region code
sudo apt-get install libdvdread4
less /usr/share/doc/libdvdread4/README.css

Install libdvdcss

$ svn co svn://svn.videolan.org/libdvdcss/trunk libdvdcss
$ cd libdvdcss
$ ./bootstrap
$ ./configure && make && sudo make install

Links

convert to AVI file

$ sudo mount -t iso9660 -o loop spam.iso /mnt/iso
$ ffmpeg -i /mnt/iso/video_ts/spam.vob -q:v 0 spam.avi

'''-q:v 0''' defines compression quality of avi, for example, default seems to be '''-q:v 31'''

Set region code

How to set region code:

# regionset /dev/sr0
regionset version 0.1 -- reads/sets region code on DVD drives
Current Region Code settings:
RPC Phase: II
type: SET
vendor resets available: 4
user controlled changes resets available: 4
drive plays discs from region(s): 2, mask=0xFD

Would you like to change the region setting of your drive? [y/n]:y
Enter the new region number for your drive [1..8]:1
New mask: 0xFFFFFFFE, correct? [y/n]:y
Region code set
#

MISC

There are some sort of disk which cannot be read by brasero using libdvdcss. With such disk, try HandBrake , which has cool GUI and toolkit which enables converting ISO disk or DVD to encoded movie files. In Debian/GNU Linux it is easy to build from source.:

$ ./configure
$ cd ./build
$ make
$ sudo make install

Uninstalled prerequisites will be warned by the configure script.

From http://superuser.com/questions/329349/how-do-i-convert-iso-to-mp4-without-mounting-with-ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment