User Tools

Site Tools


rip or trim a video, Archive, Author and burn a Movie

By Peter Tesar

These command line examples will show how to:
rip a video file or mirror the entire movie to the hard drive
trim the beginning and/or end of a video file
archive the entire movie into an ISO file
build a DVD directory (from scratch) before burning
burn the ISO file or DVD directory

Be respectful of copyrighted material.

In the examples below, the symbolic link ‘/dev/dvd’, references the optical drive. See the notes below for more on the optical drive.

H> Rip a video file, archive or mirror the DVD

A movie DVD may have many titles, video files. Vobcopy (without options) will try to determine which video file might be the main one (the one with the most chapters).
$ tcprobe -i /dev/dvd -T 1 - list video and audio information
$ vobcopy -i /dev/dvd -I - info: list the titles & the number of chapters in each
$ vobcopy (no options) - rip title with the most chapters
$ vobcopy -n 1 - rip only title 1
$ vobcopy -m - mirror the entire DVD into a directory (disk label)

Note: the mirror option works only with a disk less than 4.4GB\\

$ tccat -i /dev/dvd -T 2,-1 > movie.vob - rip title 2, all chapters “-1”
$ tccat -i /dev/dvd -T 1,3-9 > movie.vob - rip title 1, chapters 3 through 9
$ dd if=/dev/dvd of=movie.iso bs=2M - archive to an ISO file

H> Extract a Portion of a Video File

In this example, extract a time duration of 8 minutes from the start offset of 30 seconds. Both time in seconds, or the hh:mm:ss formats can be used:
$ ffmpeg -i in-file.vob -ss 30 -t 00:08:00 -y out-file.vob

H> Build/Author a Movie Before Burning

To create a movie DVD, a number of steps are required. First, the video file must be converted to the mpeg format. Then author the files in a directory and then create An ISO file of that directory. Finally, burn the ISO file.

In this example, we use the NTSC video type and the 4:3 aspect ratio is the default. All of the movie files are placed in the ‘dvd’ directory.

Step 1) Convert the video file to the MPEG format:
$ ffmpeg -i my-movie.vob -target ntsc-dvd my-movie.mpg
Step 2) Create DVD structure in the ‘dvd’ directory:
$ dvdauthor --title --video=ntsc -o dvd -f my-movie.mpg
Step 3) Create DVD titles:
$ dvdauthor -o dvd -T (cap)
Step 4) Turn the DVD into an ISO image, to archive or burn:
$ mkisofs -dvd-video -o movie.iso dvd/

Use VLC to test the ISO file:
$ vlc movie.iso
Note: to kill vlc, open a second console and type:
$ killall vlc

H>Burn the ‘dvd’ directory or ISO file

$ wodim movie.iso - no options for small files
$ wodim -sao -overburn movie.iso - very large files may need these options
$ growisofs -dvd-compat -Z /dev/dvd=movie.iso - use the iso file
$ growisofs -dvd-compat -Z /dev/dvd dvd/ - use the ‘dvd’ directory

in the ‘dd’ statement, the in-file points to the optical drive.

The optical drive might be referenced by the symbolic link, pointing to /dev/sr0.
Check it by typing:
$ file /dev/dvd

If the disk has been mounted, the mount point might be in the /media directory as a sub-directory with the name of the disk or ‘CDROM’ (all caps.

For your optical drive, use ‘sudo testdisk’ or ‘wodim --devices’.

!!End of article
how_to/rip_or_trim_a_video_archive_author_and_burn_a_movie_dvd.txt · Last modified: 2017/11/11 22:47 (external edit)