Difference between revisions of "Dvdbackup"

From ArchWiki
Jump to: navigation, search
m (<tt>text</tt> -> {{Codeline|text}})
(use new templates, see Help:Style)
Line 2: Line 2:
 
<!-- {{i18n|dvdbackup}} -->
 
<!-- {{i18n|dvdbackup}} -->
 
{{Article summary start}} {{DISPLAYTITLE:dvdbackup}}
 
{{Article summary start}} {{DISPLAYTITLE:dvdbackup}}
{{Article summary text|An introduction to the {{Codeline|dvdbackup}} utility, with examples.}}
+
{{Article summary text|An introduction to the {{ic|dvdbackup}} utility, with examples.}}
 
{{Article summary heading|Related}}
 
{{Article summary heading|Related}}
 
{{Article summary wiki|DVD}}
 
{{Article summary wiki|DVD}}
Line 9: Line 9:
 
{{Article summary end}}
 
{{Article summary end}}
  
There are several ways to backup DVD videos; see [[DVD Ripping]]. Many methods are slow, and require several steps to accomplish. {{Package AUR|dvdbackup}} provides a simpler method (with some help from {{Package Official|dvdauthor}}). The {{Codeline|dvdbackup}} program is elegant because it does not demux/remux/transcode/reformat the movie. This means the backup process is done in one step.  
+
There are several ways to backup DVD videos; see [[DVD Ripping]]. Many methods are slow, and require several steps to accomplish. {{AUR|dvdbackup}} provides a simpler method (with some help from {{Pkg|dvdauthor}}). The {{ic|dvdbackup}} program is elegant because it does not demux/remux/transcode/reformat the movie. This means the backup process is done in one step.  
  
 
==Installation==
 
==Installation==
{{Package AUR|dvdbackup}} is available from the [[AUR]].
+
{{AUR|dvdbackup}} is available from the [[AUR]].
  
{{Package Official|dvdauthor}} is available in {{Codeline|[extra]}}, but is only required if backing up specific titles or title sets.
+
{{Pkg|dvdauthor}} is available in {{ic|[extra]}}, but is only required if backing up specific titles or title sets.
  
 
  # pacman -S dvdauthor
 
  # pacman -S dvdauthor
  
{{Package Official|libdvdcss}} is available in {{Codeline|[extra]}} and is required to read encrypted DVDs:
+
{{Pkg|libdvdcss}} is available in {{ic|[extra]}} and is required to read encrypted DVDs:
  
 
  # pacman -S libdvdcss
 
  # pacman -S libdvdcss
Line 26: Line 26:
 
  $ dvdbackup -i /dev/dvd -I
 
  $ dvdbackup -i /dev/dvd -I
  
After some less useful information, {{Codeline|dvdbackup}} will display something similar to the following:
+
After some less useful information, {{ic|dvdbackup}} will display something similar to the following:
{{Command
+
{{hc
|name=dvdbackup -i /dev/sr0 -I
+
|$ dvdbackup -i /dev/sr0 -I
|output=<nowiki>
+
|<nowiki>
 
[...]
 
[...]
  
Line 43: Line 43:
  
 
This indicates that the main feature is in title set 1. Next a list of title sets is displayed:
 
This indicates that the main feature is in title set 1. Next a list of title sets is displayed:
{{Command
+
{{hc
|name=dvdbackup -i /dev/sr0 -I
+
|$ dvdbackup -i /dev/sr0 -I
|output=<nowiki>
+
|<nowiki>
 
[...]
 
[...]
  
Line 65: Line 65:
  
 
==Ripping the DVD==
 
==Ripping the DVD==
{{Tip|{{Codeline|dvdbackup}} reads the name of the DVD and creates a working directory for it. If {{Codeline|dvdbackup}} decides the name of the DVD is too generic (like MOVIE, for instance), the user must specify a name, as it will refuse to run otherwise. Just use {{Codeline|-n MOVIE_NAME}} to specify.}}
+
{{Tip|{{ic|dvdbackup}} reads the name of the DVD and creates a working directory for it. If {{ic|dvdbackup}} decides the name of the DVD is too generic (like MOVIE, for instance), the user must specify a name, as it will refuse to run otherwise. Just use {{ic|-n MOVIE_NAME}} to specify.}}
{{Note|If you receive an error such as "{{Codeline|ERR:  no video format specified for VMGM}}" you must set the video format variable. An easy way to do this is to add {{codeline|<nowiki>export VIDEO_FORMAT=NTSC</nowiki>}} (for NTSC regions) to your {{filename|~/.bashrc}}. }}
+
{{Note|If you receive an error such as "{{ic|ERR:  no video format specified for VMGM}}" you must set the video format variable. An easy way to do this is to add {{ic|<nowiki>export VIDEO_FORMAT=NTSC</nowiki>}} (for NTSC regions) to your {{ic|~/.bashrc}}. }}
 
===A single title===
 
===A single title===
The {{Codeline|-t}} option allows you to extract a specific title:
+
The {{ic|-t}} option allows you to extract a specific title:
 
  $ dvdbackup -i /dev/dvd -o ~ -t 1
 
  $ dvdbackup -i /dev/dvd -o ~ -t 1
  
You will now see a number of VOB files on the hard drive (in {{Filename|~/MOVIE_NAME/VIDEO_TS}}). These files can be played in [[MPlayer]] or [[VLC]], but are insufficient to create a DVD copy! This is where {{Codeline|dvdauthor}} is useful.
+
You will now see a number of VOB files on the hard drive (in {{ic|~/MOVIE_NAME/VIDEO_TS}}). These files can be played in [[MPlayer]] or [[VLC]], but are insufficient to create a DVD copy! This is where {{ic|dvdauthor}} is useful.
  
A title set must now be created (e.g. {{Filename|VTS_01_0.IFO}} and {{Filename|VTS_01_0.BUP}}). Be aware that the following command will make a copy of the entire movie. The original can be deleted right afterwards.
+
A title set must now be created (e.g. {{ic|VTS_01_0.IFO}} and {{ic|VTS_01_0.BUP}}). Be aware that the following command will make a copy of the entire movie. The original can be deleted right afterwards.
 
  $ mkdir ~/dvd
 
  $ mkdir ~/dvd
 
  $ cd ~/MOVIE_NAME/VIDEO_TS
 
  $ cd ~/MOVIE_NAME/VIDEO_TS
 
  $ dvdauthor -t -o ~/dvd *.VOB
 
  $ dvdauthor -t -o ~/dvd *.VOB
  
{{Codeline|dvdauthor}} will create a copy of the movie. If it outputs anything like "SCR moves backwards, remultiplex input" there might be trouble. Before deleting any files, check the file sizes of the original VOB files compared to the copied ones. If all roughly the same size, you may be alright. You can use [[MPlayer]] to test the affected VOB files to see if anything is missing.
+
{{ic|dvdauthor}} will create a copy of the movie. If it outputs anything like "SCR moves backwards, remultiplex input" there might be trouble. Before deleting any files, check the file sizes of the original VOB files compared to the copied ones. If all roughly the same size, you may be alright. You can use [[MPlayer]] to test the affected VOB files to see if anything is missing.
  
Now, table of contents files must be created (e.g. {{Filename|VIDEO_TS.IFO}} and {{Filename|VIDEO_TS.BUP}}). This is much less time-consuming, and does not waste hard drive space:
+
Now, table of contents files must be created (e.g. {{ic|VIDEO_TS.IFO}} and {{ic|VIDEO_TS.BUP}}). This is much less time-consuming, and does not waste hard drive space:
 
  $ cd ~/dvd/VIDEO_TS
 
  $ cd ~/dvd/VIDEO_TS
 
  $ dvdauthor -o ~/dvd -T
 
  $ dvdauthor -o ~/dvd -T
  
 
===The main feature===
 
===The main feature===
The {{Codeline|-F}} option automatically detects the main feature (though not always correctly!) and copies the entire title set:
+
The {{ic|-F}} option automatically detects the main feature (though not always correctly!) and copies the entire title set:
 
  $ dvdbackup -i /dev/dvd -o ~ -F
 
  $ dvdbackup -i /dev/dvd -o ~ -F
  
Now, table of contents files must be created (e.g. {{Filename|VIDEO_TS.IFO}} and {{Filename|VIDEO_TS.BUP}}):
+
Now, table of contents files must be created (e.g. {{ic|VIDEO_TS.IFO}} and {{ic|VIDEO_TS.BUP}}):
 
  $ cd ~/MOVIE_NAME/VIDEO_TS
 
  $ cd ~/MOVIE_NAME/VIDEO_TS
 
  $ dvdauthor -o ~/MOVIE_NAME -T
 
  $ dvdauthor -o ~/MOVIE_NAME -T
  
 
===The whole DVD===
 
===The whole DVD===
The {{Codeline|-M}} option will backup the entire DVD structure, including menus, special features, etc. This requires approximately 7 GB of disk space for most DVDs:
+
The {{ic|-M}} option will backup the entire DVD structure, including menus, special features, etc. This requires approximately 7 GB of disk space for most DVDs:
 
  $ dvdbackup -i /dev/dvd -o ~ -M
 
  $ dvdbackup -i /dev/dvd -o ~ -M
  

Revision as of 13:48, 22 November 2011

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end

There are several ways to backup DVD videos; see DVD Ripping. Many methods are slow, and require several steps to accomplish. dvdbackupAUR provides a simpler method (with some help from dvdauthor). The dvdbackup program is elegant because it does not demux/remux/transcode/reformat the movie. This means the backup process is done in one step.

Installation

dvdbackupAUR is available from the AUR.

dvdauthor is available in [extra], but is only required if backing up specific titles or title sets.

# pacman -S dvdauthor

libdvdcss is available in [extra] and is required to read encrypted DVDs:

# pacman -S libdvdcss

Examining the DVD

First, determine which title to backup. The following command retrieves information about the DVD:

$ dvdbackup -i /dev/dvd -I

After some less useful information, dvdbackup will display something similar to the following:

$ dvdbackup -i /dev/sr0 -I
[...]

Main feature:
	Title set containing the main feature is  1
	The aspect ratio of the main feature is 16:9
	The main feature has 1 angle(s)
	The main feature has 1 audio_track(s)
	The main feature has 2 subpicture channel(s)
	The main feature has a maximum of 28 chapter(s) in on of it's titles
	The main feature has a maximum of 6 audio channel(s) in on of it's titles

This indicates that the main feature is in title set 1. Next a list of title sets is displayed:

$ dvdbackup -i /dev/sr0 -I
[...]

Title Sets:

	Title set 1
		The aspect ratio of title set 1 is 16:9
		Title set 1 has 1 angle(s)
		Title set 1 has 1 audio_track(s)
		Title set 1 has 2 subpicture channel(s)

		Titles included in title set 1 is/are
			Title 1:
				Title 1 has 28 chapter(s)
				Title 1 has 6 audio channle(s)

The main feature in this example is title 1. Sometimes a title set will include more than one title, sometimes not. Title sets can also include menus, which will no longer work if not backing up the entire DVD.

Ripping the DVD

Tip: dvdbackup reads the name of the DVD and creates a working directory for it. If dvdbackup decides the name of the DVD is too generic (like MOVIE, for instance), the user must specify a name, as it will refuse to run otherwise. Just use -n MOVIE_NAME to specify.
Note: If you receive an error such as "ERR: no video format specified for VMGM" you must set the video format variable. An easy way to do this is to add export VIDEO_FORMAT=NTSC (for NTSC regions) to your ~/.bashrc.

A single title

The -t option allows you to extract a specific title:

$ dvdbackup -i /dev/dvd -o ~ -t 1

You will now see a number of VOB files on the hard drive (in ~/MOVIE_NAME/VIDEO_TS). These files can be played in MPlayer or VLC, but are insufficient to create a DVD copy! This is where dvdauthor is useful.

A title set must now be created (e.g. VTS_01_0.IFO and VTS_01_0.BUP). Be aware that the following command will make a copy of the entire movie. The original can be deleted right afterwards.

$ mkdir ~/dvd
$ cd ~/MOVIE_NAME/VIDEO_TS
$ dvdauthor -t -o ~/dvd *.VOB

dvdauthor will create a copy of the movie. If it outputs anything like "SCR moves backwards, remultiplex input" there might be trouble. Before deleting any files, check the file sizes of the original VOB files compared to the copied ones. If all roughly the same size, you may be alright. You can use MPlayer to test the affected VOB files to see if anything is missing.

Now, table of contents files must be created (e.g. VIDEO_TS.IFO and VIDEO_TS.BUP). This is much less time-consuming, and does not waste hard drive space:

$ cd ~/dvd/VIDEO_TS
$ dvdauthor -o ~/dvd -T

The main feature

The -F option automatically detects the main feature (though not always correctly!) and copies the entire title set:

$ dvdbackup -i /dev/dvd -o ~ -F

Now, table of contents files must be created (e.g. VIDEO_TS.IFO and VIDEO_TS.BUP):

$ cd ~/MOVIE_NAME/VIDEO_TS
$ dvdauthor -o ~/MOVIE_NAME -T

The whole DVD

The -M option will backup the entire DVD structure, including menus, special features, etc. This requires approximately 7 GB of disk space for most DVDs:

$ dvdbackup -i /dev/dvd -o ~ -M

Writing to disc

See DVD Writing.

Creating an ISO

The advantage of creating the ISO file is that you can test that everything works fine with MPlayer before continuing. The disadvantage is that the ISO consumes hard drive space.

$ mkisofs -dvd-video -udf -o ~/dvd.iso ~/dvd # if a single title was extracted

or

$ mkisofs -dvd-video -udf -o ~/dvd.iso ~/MOVIE_NAME

To test the image with MPlayer, simply:

$ mplayer dvd:// -dvd-device ~/dvd.iso

If everything seems fine, burn the image:

$ growisofs -Z /dev/dvd=~/dvd.iso

Burning straight to DVD

If confident in our skills, creating and testing an image is a waste of time and hard drive space! Basically, one can merge the mkisofs with the growisofs command listed above:

$ growisofs -dvd-video -udf -Z /dev/dvd ~/dvd # if a single title was extracted

or

$ growisofs -dvd-video -udf -Z /dev/dvd ~/MOVIE_NAME