vobcopy -i /mnt/dvd
A place to get started (application links) Linux Audio/Video FAQ
On this page I aim to help you getting a head start on processing video and encoding your own digital video disks to be played on regular standalone DVD players. Most of the tools used are shareware and available for download from the internet. Those that are not shareware, have at least a demo version available.
Here is a list of some of the basic terms:
AVI | Audio Video Interlace | A very common movie format in PCs. A variety of encoders can be used to produce AVI. You need a lot of decoders installed in your computers to play all the AVIs that are out there. |
CD-R | Compact Disk, Read many, | Write once A CD disk which is sold empty and can be written to once. |
CD-RW | Compact Disk, Read many, | Write many A CD disk which is sold empty and can be written several times. |
DivX | - A very effective | movie format. Video is encoded with MPEG4 and audio usually with MPEG1 Layer III. |
CBR | Constant Bit Rate | The amount of bits per second is constant. For example a VCD video stream is constant 1150 kbits per second. This means it is easy to calculate how long piece of video you can put on a single 650 megabyte (equals to 5200 megabits) CD-R. |
VBR | Variable Bit Rate | The amount of bits per second depends on how many are needed. Easily saves space on your media and can improve quality. Encoding is heavier task than with CBR. |
MP3 | MPEG1 Layer III | An effective way of encoding audio. Supports many bit rates. |
VCD | Video Compact Disk | A regular CD disk with audio and video content. Video is encoded with MPEG1 and has a constant bit rate of 1150 kbps. Video on PAL VCD has a resolution of 352 x 288 and frame rate of 25 fps. Video on NTSC VCD has a resolution of 352 x 240, and the frame rate can be 29.97 fps or 23.976 fps. Audio encoding is MPEG1 Layer II. Audio bit rate on both PAL and NTSC VCD is 224 kbps. Practically all standalone DVD players play VCDs. |
SVCD | Super Video Compact Disk | A regular CD disk with audio and video content. Video is encoded on MPEG2 and has a variable bit rate with a maximum of 2600 kbps. Video on PAL SVCD has a resolution of 480 x 576 and frame rate of 25 fps. Video on NTSC SVCD has a resolution of 480 x 480, and the frame rate can be 29.97 fps or 23.976 fps. Audio encoding is either MPEG1 Layer II or MPEG2. Audio on both PAL and NTSC SVCD has a selectable bit rate from 32 to 384 kbps. There can be two separate audio tracks. An SVCD disk can also contain a maximum of four selectable subtitles. Some standalone DVD players play SVCDs. |
DVD | Digital Versatile Disk | A large capacity disk which looks like a CD. DVDs are mostly used for storing and viewing movies. Bit rate on DVD movies has a maximum of 9.8 Mbps. Video is encoded with MPEG2. PAL picture has a resolution of 720 x 576 at 25 fps. NTSC picture has a resolution of 720 x 480 at 29.97 fps or 23.976 fps. Audio can be Dolby AC3, DTS or PCM multichannel. DVDs may have two layers on one side, which are regognizable from the golden colour. DVDs can also use both of their sides for storing data. Depending on the total number of layers used, the capacity of one disk is 4.7 GB, 9 GB, 13.7 GB or 18 GB. |
avidemux2: easy virtualdub-like interface, many filters, codecs, and formats are supported.
dvd::rip: A GUI frontend to transcode, built-in DVD ripper, supports many different codecs and output formats.
acidrip: a DVD encodeing frontend based on mplayer/mencoder.
drip: A DVD to DIVX conversion application, supports MSMPEG4, OpenDivx, XviD for video, MP3 audio, has problems with some NTSC DVDs.
mencoder: The encoding application paired with mplayer, supports a vast amount of input formats, processing filters, and output codecs, although output container formats are currently limited to AVI and MPEG output format. See here for a tutorial on the command line interface.
transcode: a suite of CLI utilities for transcoding video and audio based on a modular structure. Supports many codecs and containers. See the wiki for command line help.
ffmpeg: a complete recording, converting and streaming solution, based on libavcodec/libavformat. Supports most of the codecs supported by mplayer as well as a few more container options.
Also see A place to get started (application links) http://forum.doom9.org/showthread.php?s=&threadid=89543
avidemux2 is an advanced native linux video editing and encoding tool with a GUI interface very similar to virtualdub's. It supports many video codecs and output formats. Unlike virtualdub for windows it is more difficult for codecs to be supported in avidemux, however since it is not VFW based it is free to be much more versatile as far as output formats and advanced video codecs. avidemux supports more codecs and formats with every release and is a great application to get started with encoding video under linux.
Some people have successfully gotten virtualdub working under wine; however, keep in mind that virtually all of virtualdub's tools (aside from proprietary codecs) can be used in native linux apps.
There are several simple dvd-ripping tools available. vobcopy can be used. First you'll want to mount your dvd (assuming the mount point is /mnt/dvd and is set up in your /etc/fstab): $ mount /mnt/dvd
Then you can rip the main title using vobcopy:
vobcopy -i /mnt/dvd
This will rip the main title only, similar to IFO-mode in DVD Decrypter. if you want to rip the entire disc preserving structure, use
vobcopy -i /mnt/dvd -m
You can also use dvdbackup from the dvd-create project to rip dvds in a similar fashion.
StreamDVD is a native linux application for transcoding DVDs on the fly. Its advantages are that it does not require the dvd to be ripped, demultiplexed, transcoded, and remultiplexed, rather it reads directly from the DVD and writes a valid DVD vob to standard out that can be piped to dvdauthor. It also has a good quality accurate transcoding engine. Its disadvantages are that it does not handle full discs or menus, but does single titles only. StreamDVD's usage is quite easy (as quoted from the documentation):
When using dvdauthor to build the dvd structure, you can generate a new dvd with only one step. You can pass the complete streamdvd commandline (followed by a '|') to the -f switch in dvdauthor. i.e.: lets say your dvd drive is accessable at /dev/dvd, the saving directory is /movies/movie1 and you want to backup title 1, all chapters with 1st video and 1st audio track: dvdauthor -t -o /movies/movie1 -f 'streamdvd -i /dev/dvd -t 1 -s 0xe0,0x80 |'
After that, build the missing ifo files with: dvdauthor -T -o /movies/movie1 Note that this also requires dvdauthor to be installed, available in many distributions.
At this time streamDVD does not internally support chapters or subtitles. However you can use spumux from the dvdauthor project to mux subtitles, but this will require a full copy of the DVD to your hard drive and more time. As far as chapters go if you extract the chapter points they can be specified in the dvdauthor step, but must be determined beforehand.
You can also encode with streamdvd via the lxdvdrip script.
Additionally, DVDShrink works fairly well under wine, see the section on wine and windows programs emulation for more information.
mkvtoolnix, http://bunkus.org/videotools/mkvtoolnix/, the matroska toolkit builds natively under linux (both GUI and CLI interfaces), providing an easy way to create matroska files from many different codecs. See the mkvtoolnix homepage above for links to binaries and sources.
Playback of matroska files is supported in mplayer, VLC, and other players.
See the matroska FAQ http://forum.doom9.org/showthread.php?threadid=54306 for general matroska information.
Date: Wed, 11 Sep 2002 14:33:10 +0100 Newsgroups: comp.os.linux.misc
> > I am looking for a tool to merge several mpeg movies into one. Any
> cat movie1.mpg movie2.mpg movie3.mpg >movie4.mpg
While that will generally get you a playable mpeg, it munges the headers, so that your player will have the wrong information about frames, file length, etc. They can usually play ok anyway but…
A better solution is here…
Jonathan
Newsgroups: comp.os.linux.misc Date: 27 Nov 2003 02:57:33 GMT
> I'm looking for a utility, whether command line or GUI, that can correctly > split MPEG1 and/or MPEG2 files such that each part is a usuable MPEG file.
Works for me.
Jonathan
![]() |
The listings here are purely search engine results. |
documented on: 2004.05.30