Difference between revisions of "User:Veleno77"

From ArchWiki
Jump to: navigation, search
m (because of Help:Style#User pages, this is what should be usually done when developing an article in one's own user page)
Line 1: Line 1:
[[Category:Audio/Video]]</nowiki>'''Categories disabled'''
Example of a main section result fo merge
[[it:Optical Disc Drive]]
{{Article summary start}}
== Burning == <!ex CD burning>
{{Article summary text|This document outlines various methods of burning, playing and ripping CD/DVDs.}}
{{Article summary heading|Related Playing}}
{{Article summary wiki|Codecs}}
{{Article summary wiki|MPlayer}}
{{Article summary heading|Related Ripping}}
{{Article summary wiki|dvdbackup}}
{{Article summary wiki|MEncoder}}
{{Article summary wiki|ScriptForDvdBackup}}
{{Article summary end}}
= Optical Disc Drive =
The burning process of optical disc drives consists of creating an image (ISO 9660,TOC/CUE/BIN) and write it to disk. For this purpose, there are several tools that can create images and burn them.
From [[wikipedia:Optical disc drive|wikipedia]]
=== Install burning utilities === <! ex Install programs for ISO 9660 and burning of CD, DVD, or BD>
:''In computing, an optical disc drive (ODD) is a disk drive that uses laser light or electromagnetic waves within or near the visible light spectrum as part of the process of reading or writing data to or from optical discs. Some drives can only read from discs, but recent drives are commonly both readers and recorders, also called burners or writers. Compact discs, DVDs, and Blu-ray discs are common types of optical media which can be read and recorded by such drives. Optical drive is the generic name; drives are usually described as "CD" "DVD", or "Blu-ray", followed by "drive", "writer", etc.''
You need at least one program for creation of image filesystems and one program that is able to burn data onto your desired media type.
== CD-burning ==
Available programs for image creation are:
=== Install CD-burning utilities ===
From http://www.cdrkit.org/:
* {{ic|genisoimage}} from package {{Pkg|cdrkit}}
* {{ic|isomaster}} from package {{Pkg|isomaster}} (with gtk2 GUI)
* {{ic|mkisofs}} from package {{Pkg|cdrtools}}
* {{ic|xorriso}} and {{ic|xorrisofs}} from package {{Pkg|libisoburn}}
* {{ic|cdrao}} from {{Pkg|cdrdao}} for TOC/BIN/CUE image
:''{{ic|cdrkit}} is a suite of programs for recording CDs and DVDs, blanking CD-RW media, creating ISO-9660 filesystem images, extracting audio CD data, and more. The programs included in the {{ic|cdrkit}} package were originally derived from several sources, most notably {{ic|mkisofs}} by Eric Youngdale and others, {{ic|cdda2wav}} by Heiko Eissfeldt, and {{ic|cdrecord}} by Jörg Schilling. However, {{ic|cdrkit}} is not affiliated with any of these authors; it is now an independent project.
The traditional choice is {{ic|genisoimage}} for ISO 9660 and {{ic|cdrao}} for TOC/BIN/CUE
The {{Pkg|cdrkit}} package is available in the [[official repositories]].
Available programs for burning are:
If you intend to use {{Pkg|cdrdao}} (for writing {{ic|cue}}/{{ic|bin}} files to CD), install that package instead.
* {{ic|cdrdao}} from package {{Pkg|cdrdao}} (CD only, .cue files only)
* {{ic|cdrecord}} from package {{Pkg|cdrtools}}
* {{ic|cdrskin}} from package {{Pkg|libburn}}
* {{ic|growisofs}} from package {{Pkg|dvd+rw-tools}} (DVD and BD only)
* {{ic|wodim}} from package {{Pkg|cdrkit}} (CD only, DVD deprecated)
* {{ic|xorriso}} from package {{Pkg|libisoburn}} (no audio CD)
* {{ic|xorrecord}} from package {{Pkg|libisoburn}} (no audio CD)
The traditional choices are {{ic|wodim}} for CD and {{ic|growisofs}} for DVD and Blu-ray Disk. For growisofs and BD-R see the bug workaround below.
* If you face any issues with {{ic|cdrkit}}, it is recommended to install {{Pkg|cdrtools}} from the community repository ({{ic|cdrkit}} is a fork of {{ic|cdrtools}}). {{ic|cdrtools}} is being actively developed and supports CD, DVD and Blu-ray burning along with complete CDRWIN {{ic|cue}}/{{ic|bin}} support. {{ic|cdrtools}} does not depend on {{ic|cdrdao}}. For more information, see [http://cdrecord.berlios.de/private/linux-dist.html this page] from the cdrtools site
For writing {{ic|cue}}/{{ic|bin}} files to CD, install the {{Pkg|cdrdao}} package.
* Make sure that you build a package using [[makepkg]] and install with pacman. Pacman wrappers may resolve to cdrkit instead
=== Modifying the CD-RW ===
The free GUI programs for CD, DVD, and BD burning depend on at least one of the above packages.
For the remainder of this section the name of your recording device is assumed to be {{ic|/dev/cdrw}}. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, {{ic|wodim}} will give you an error message.
The programs {{ic|genisoimage}}, {{ic|mkisofs}}, and {{ic|xorrisofs}} all three support the genisoimage options which are shown in this document.
If wodim gives you an error message similar to {{ic|Cannot open SCSI driver!}}, use the following command:
The programs {{ic|cdrecord}}, {{ic|cdrskin}}, and {{ic|wodim}} all three support the shown wodim options. Program {{ic|xorrecord}} supports those which do not deal with audio CD.
$ modprobe sr_mod
You can try to let wodim locate your burning device with this command:
$ wodim -checkdrive
The installed files of packages {{Pkg|cdrkit}} and {{Pkg|cdrtools}} are in conflict.
If you want to install cdrtools, make sure that you build a package using [[makepkg]] and install with pacman. Pacman wrappers may resolve to cdrkit instead.
=== Erasing CD-RW ===
CD-RW media usually need to be erased before you can write new data on it. To blank CD-RW medium use this command:
$ wodim -v dev=/dev/cdrw -blank=fast
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word ''fast'' with one of the following:
;all: blank the entire disk
;disc: blank the entire disk
;disk: blank the entire disk
;fast: minimally blank the entire disk (PMA, TOC, pregap)
;minimal: minimally blank the entire disk (PMA, TOC, pregap)
;track: blank a track
;unreserve: unreserve a track
;trtail: blank a track tail
;unclose: unclose last session
;session: blank last session
=== Burning an ISO image ===
To burn an ISO image run:
$ cdrecord -v dev=/dev/sr0 isoimage.iso
=== Verify the burnt ISO image ===
You can verify the integrity of the burnt CD to make sure it contains no errors. Always eject the CD and reinsert it before verifying.
First calculate the md5sum of the original ISO image:
{{hc|$ md5sum isoimage.iso|
e5643e18e05f5646046bb2e4236986d8 isoimage.iso
If the CD was burnt in DAO (Disc At Once) mode by passing the -dao option to cdrecord you can calculate the md5sum of the burnt CD as follows:
{{hc|$ md5sum /dev/sr0|
e5643e18e05f5646046bb2e4236986d8 /dev/sr0
If the CD was burnt in TAO (Track At Once) mode it can be verified with dd and md5sum. You need to know the number of sectors to check. You can calculate this by dividing the size of the ISO file by 2048, but for your convenience this is included in the output of cdrecord:
Track 01: Total bytes read/written: 90095616/90095616 (43992 sectors).
Then check if this matches the md5sum of the burnt image, replacing "count" with the number of sectors:
{{hc|<nowiki>$ dd if=/dev/sr0 bs=2048 count=43992 | md5sum</nowiki>|
43992+0 records in
43992+0 records out
90095616 bytes (90 MB) copied, 0.359539 s, 251 MB/s
e5643e18e05f5646046bb2e4236986d8  -
=== Burning an audio CD ===
Create your audio tracks and store them as uncompressed, 16-bit stereo WAV files. To convert MP3 to WAV, ensure {{Pkg|lame}} is installed, {{ic|cd}} to the directoy with your MP3 files, and run:
$ for i in *.mp3; do lame --decode "$i" "$(basename "$i" .mp3)".wav; done
In case you get an error when trying to burn WAV files converted with lame try decoding with {{Pkg|mpg123}}:
$ for i in *.mp3; do mpg123 --rate 44100 --stereo --buffer 3072 --resync -w $(basename $i .mp3).wav $i; done
Name the audio files in a manner that will cause them to be listed in the desired track order when listed alphabetically, such as {{ic|01.wav}}, {{ic|02.wav}}, {{ic|03.wav}}, etc.
Use the following command to simulate burning the wav files as an audio CD:
$ wodim -dummy -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav
In case you detect errors or empty tracks like:
Track 01: audio    0 MB (00:00.00) no preemp pad
try another decoder (e.g. mpg123) or try using cdrecord from the {{Pkg|cdrtools}} package.
Note that {{Pkg|cdrkit}} also contains a cdrecord command but it is just a softlink to wodim.
If anything worked you can remove the dummy flag to really burn the CD
To test the new audio CD, use [[MPlayer]]:
$ mplayer cdda://
=== Burning a bin/cue ===
To burn a bin/cue image run:
$ cdrdao write --device /dev/cdrw image.cue
=== Making an ISO image from an existing CD ===
To copy an existing CD just type:
$ readom -v dev=/dev/cdrw f=isoimage.iso
{{Note|If you get "Error trying to open /dev/cdrw exclusively (Device or resource busy)...", unmount the CD with
# umount /dev/cdrw
Replace /dev/cdrw with /dev/cdrom if it's a CDRom.}}
You do not want to use dd or cat as they provide no error checking, but for reference here are those commands:
$ dd if=/dev/cdrw of=/home/user/isoimage.iso
or with cat:
$ cat /dev/cdrw > isoimage.iso
Or use the {{ic|readcd}} program (which is now a symlink to readom), also in the {{ic|cdrkit}} package:
$ readcd -v dev=/dev/cdrw -f isoimage.iso
If the original CD was bootable it will be a bootable image.
==== TOC/CUE/BIN for mixed-mode disks ====
ISO images only store a single data track. If you want to create an image of a mixed-mode disk (data track with multiple audio tracks) then you need to make a TOC/BIN pair:
$ cdrdao read-cd --read-raw --datafile IMAGE.bin --driver generic-mmc:0x20000 --device /dev/cdrom IMAGE.toc
Some software only likes CUE/BIN pair, you can make a CUE sheet with {{ic|toc2cue}} (part of {{ic|cdrdao}}):
$ toc2cue IMAGE.toc IMAGE.cue
=== Making an ISO image from existing files on hard disk ===
To make an iso image just copy the needed files to one folder, then do:
$ mkisofs -V volume_name -J -r -o isoimage.iso ~/folder
=== Mounting an ISO image ===
To test if the ISO image is proper, you can mount it (as root):
# mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom
You have to first load the loop module:
# modprobe loop
See also [[Mounting images as user]] for doing this without root privileges.
=== Converting to an ISO image ===
To convert an {{ic|img}}/{{ic|ccd}} image, you can use {{Pkg|ccd2iso}}:
$ ccd2iso ~/image.img ~/image.iso
== DVD Burning ==
Writing (or "burning") DVDs requires a different approach than burning CDs. DVDs offer much higher capacities, and the standard CD writing tools will not suffice.
This HOWTO covers a narrow scope for now: writing data onto DVDs using the command line.
===Required packages===
# You still need the standard CD writing tools known as {{Pkg|cdrtools}} (which can be replaced by {{Pkg|cdrkit}}, if desired).
# You also need the new DVD writing tools known as {{Pkg|dvd+rw-tools}} found in the [[Official Repositories|official repositories]].
{{Note|Do not install the package known as {{Pkg|dvdrtools}}. It conflicts with {{Pkg|cdrtools}}, and {{Pkg|dvd+rw-tools}} is the superior DVD writing package.}}
{{Note|1={{Pkg|cdrtools}} provides all the functionality of {{Pkg|dvd+rw-tools}}, as growisofs depends on mkisofs. Also the development of dvd+rw-tools seems to be stalled for the past 5 years (the last release was in [http://fy.chalmers.se/~appro/linux/DVD+RW/tools/?M=D 2008])}}
{{Tip|If you wish to use a graphical front-end, install {{Pkg|k3b}} or {{Pkg|brasero}}, and you need to read no further.}}
This HOWTO will use the command {{ic|growisofs}} from the {{Pkg|dvd+rw-tools}} package. If you have ever written CDs from the command line before, you will know the process of first creating an iso9660 file ({{ic|mkisofs}}), and then burning it to CD ({{ic|cdrecord}}). {{ic|growisofs}} merges these steps, so you do not need extra storage space for the ISO file anymore. Another advantage is that multisession writing has been simplified.
Essentially, writing a '''new''' DVD follows this procedure:
$ growisofs -Z /dev/sr0 -r -J ''/path/to/files''
where {{ic|/dev/sr0}} is your DVD writer device.
To '''continue''' a DVD (write an additional session), you use:
$ growisofs -M /dev/sr0 -r -J ''/path/to/files''
To burn an ISO '''image''' to disc, use:
$ growisofs -dvd-compat -Z /dev/sr0=''/path/to/iso''
To create a video DVD, use the following:
$ growisofs -Z /dev/sr0 -dvd-video ''/path/to/video''
; {{ic|-Z}}: start at the beginning of the DVD using the following device
; {{ic|-M}}: start after the last session on the disc using the following device
; {{ic|-r}}: [[Wikipedia:Rock Ridge|Rock Ridge]] support with sane permission settings (recommended, extended Unix info)
; {{ic|-J}}: [[Wikipedia:Joliet (file system)|Joliet]] support (recommended, extended info for Windows NT and Windows 95)
{{Note|{{ic|-r}} will choose different permissions than the real ones; to use the exact permissions use {{ic|-R}} instead. See the man page of {{ic|mkisofs}} for more information.}}
{{Tip|1=If you want to copy an existing DVD, one way that works is to make an ISO using {{ic|readcd}}:
$ readcd -v dev=/dev/sr0 -f image.iso
as per [[CD Burning Tips]], then use the {{ic|growisofs}} example above to burn the ISO to a new blank disc.}}
Although the above might suffice for you, some users require extra settings to successfully write DVDs.
A simple DVD writing template:
$ growisofs -Z /dev/cdrw -v -l -dry-run -iso-level 3 -R -J -speed=2 -joliet-long -graft-points /files/=/path/to/files/
; {{ic|-Z}}: as seen above, this starts a new DVD; to continue a multisession DVD, use {{ic|-M}}
; {{ic|-v}}: increase verbosity level (more output)
; {{ic|-l}}: breaks DOS compatibility but allows for longer filenames
; {{ic|-dry-run}}: simulate writing (remove this flag if you are sure that everything is set up correctly)
; {{ic|-iso-level 3}}: defines how strict you want to adhere to the iso9660 standard ({{ic|-iso-level 1}} is very strict while {{ic|-iso-level 4}} is very loose)
; {{ic|-R}}: see above
; {{ic|-J}}: see above
; {{ic|1=-speed=2}}: start burning at 2X speed
; {{ic|-joliet-long}}: allows longer Joliet file names
The final part needs more explanation:
-graft-points /files/=/path/to/files/
This specifies that files will be stored in the subdirectory {{ic|/files}} rather than the DVD root. See the {{ic|mkisofs}} manual for details.
{{Note|{{ic|growisofs}} is basically just a front-end to {{ic|mkisofs}}. That means that any option for {{ic|mkisofs}} also works with {{ic|growisofs}}. See the {{ic|mkisofs}} man page for details.}}
===Re-writable DVDs===
The process for burning re-writable discs is almost the same as for normal DVDs. However, keep in mind that virgin DVD+RW media needs to be initially formatted ("blanked") prior to usage. Blanking can be done using the program {{ic|dvd+rw-format}} like this:
$ dvd+rw-format /dev/cdrw
where {{ic|/dev/cdrw}} is your DVD writer device.
== DVD Playing ==
[[Wikipedia:DVD|DVD]], also known as Digital Versatile Disc or Digital Video Disc, is an optical disc storage media format used for video and data storage.
If you wish to play encrypted DVDs, you must install the libdvd* packages:
* {{Pkg|libdvdread}}
* {{Pkg|libdvdcss}}
* {{Pkg|libdvdnav}}
Additionally, you must install player software. Popular DVD players are [[MPlayer]], [[Wikipedia:Xine|xine]] and [[Wikipedia:VLC|VLC]].
{{Tip|Users may need to belong to the {{ic|optical}} [[Users and Groups|group]] to be able to access the DVD drive. To add {{ic|USERNAME}} to the {{ic|optical}} group, run the following:
# gpasswd -a USERNAME optical
Do not forget to log the user out and back in for the changes to take effect. You can see your user's current groups with {{ic|groups}} command.}}
===DVD players===
See also: [[List_of_Applications#Video_Players]]
[[MPlayer]] is efficient and supports a wide variety of media formats (i.e. almost everything). To play a DVD with MPlayer:
$ mplayer dvd://N
...where N is the desired chapter number. Start at 1 and work up if unsure.
Mplayer checks {{ic|/dev/dvd}} by default. Tell it to use {{ic|/dev/sr0}} with the {{ic|dvd-device}} option at the command line, or the {{ic|dvd-device}} variable in {{ic|~/.mplayer/config}}.
To play a DVD image file:
$ mplayer -dvd-device movie.iso dvd://N
To enable the DVD menu use (NOTE: you use arrow keys to navigate and the {{Keypress|Enter}} key to choose):
$ mplayer dvdnav://
To enable mouse support in DVD menus use:
$ mplayer -mouse-movements dvdnav://
To find the audio language, start MPlayer with the {{ic|-v}} switch to output audio IDs. An audio track is selected with {{ic|-aid <audio_id>}}. Set a default audio language by editing {{ic|~/.mplayer/config}} and adding the line {{ic|1=alang=en}} for English.
With MPlayer, the DVD could be set to a low volume. To increase the maximum volume to 400%, use {{ic|1=softvol=yes}} and {{ic|1=softvol-max=400}}. The startup volume defaults to 100% of software volume and the global mixer levels will remain untouched. Using the 9 and 0 keys, volume can be adjusted between 0 and 400 percent.
[http://www.mplayerhq.hu/ MPlayer home page]
==== VLC ====
{{Pkg|vlc}} is a portable, capable, open source media player written in Qt ([http://www.videolan.org/vlc VLC home page]).
===== Default in GNOME =====
Copy the system desktop file to the local one (local .desktop files supersede the global ones):
cp /usr/share/applications/vlc.desktop ~/.local/share/applications/
Define its mime types (known playback file type abilities) by doing:
<pre>sed -i 's|^Mimetype.*$|MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;application/ogg;application/x-ogg;application/x-matroska;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;video/mp4;video/mp4v-es;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;|' ~/.local/share/applications/vlc.desktop</pre>
Then in '''System Settings > Details >> Default Applications ''' and on the '''Video''' drop-down menu, select '''Open VLC media player'''.}}
A lightweight media player supporting DVD menus.
[http://www.xine-project.org/ xine home page]
== Burning CD/DVD with a GUI ==
{{Wikipedia|Comparison of disc authoring software|Wikipedia - Comparison of disc authoring software}}
There are several applications available to burn CD/DVDs in a graphical environment.
* {{App|[[Wikipedia:AcetoneISO|AcetoneISO]]|All in one ISO tool (supports BIN, MDF, NRG, IMG, DAA, DMG, CDI, B5I, BWI, PDI and ISO)|http://sourceforge.net/projects/acetoneiso|{{Pkg|acetoneiso2}}}}
* {{App|BashBurn|Lightweight terminal based menu frontend for CD/DVD burning tools|http://bashburn.dose.se/|{{Pkg|bashburn}}}}
* {{App|[[Wikipedia:Brasero (software)|Brasero]]|Disc burning application for the GNOME desktop that is designed to be as simple as possible. Part of {{Grp|gnome-extra}}|http://projects.gnome.org/brasero/|{{Pkg|brasero}}}}
* {{App|cdw|Ncurses frontend to cdrecord, mkisofs, growisofs, dvd+rw-mediainfo, dvd+rw-format, xorriso|http://cdw.sourceforge.net/|{{AUR|cdw}}}}
* {{App|[[Wikipedia:GnomeBaker|GnomeBaker]]|Full featured CD/DVD burning application for the GNOME desktop|http://gnomebaker.sourceforge.net/|{{AUR|gnomebaker}}}}
* {{App|Graveman|GTK-based CD/DVD burning application. It requires configuration to point to correct devices|http://graveman.tuxfamily.org/|{{AUR|graveman}}}}
* {{App|[[Wikipedia:K3b|K3b]]|Feature-rich and easy to handle CD burning application based on Kdelibs|http://www.k3b.org/|{{Pkg|k3b}}}}
* {{App|Silicon empire|Qt-based set of tools to manage and organize your optical discs like CDs, DVDs and Blu-rays|http://getsilicon.org/|{{AUR|silicon-empire}}}}
* {{App|[[Wikipedia:X-CD-Roast|X-CD-Roast]]|Lightweight cdrtools front-end for CD and DVD writing|http://www.xcdroast.org/|{{AUR|xcdroast}}}}
* {{App|Xfburn|Simple frontend to the libburnia libraries with support for CD/DVD(-RW), ISO images and BurnFree|http://goodies.xfce.org/projects/applications/xfburn|{{Pkg|xfburn}}}}
=== Nero Linux ===
Nero Linux is a commercial burning suite from makers of Nero for Windows - Nero AG. The biggest advantage of Nero linux is its interface which similar to window version. Hence, users migrating from windows might find it easy to operate. The Linux version now includes Nero Express, a wizard which takes users through the process of burning CDs and DVDs step-by-step, which users will be familiar with from the Windows version. Also new in version 4 is Blu-ray Disc defect management, integration of Isolinux for creating bootable media and support for Musepack and AIFF audio formats...
Nero Linux 4 retails at £17.99 with a free trial version also available.
* [http://www.nero.com/enu/linux4.html Nero Linux 4]
* {{AUR|nerolinux}} [[AUR]] package
==== Features ====
* Easy, wizard-style user interface for guided burning with Nero Linux Express 4
* Full Blu-ray Burning Support
* Supports Burning of Audio CD (CD-DA), ISO 9660 (Joliet support), CD-Text, ISOLINUX Bootable, Multi-session Discs, DVD-Video and miniDVD, DVD double layer support.
* Advanced burning with Nero Burning ROM and command line client
{{note|For Nero Linux you need to load {{ic|sg}} module at boot time. Put a namesake file in {{ic|/etc/modules-load.d}}:
Some updates ago the sg module wasn't auto loaded any more and Nero needs it.}}
== DVD ripping ==
Ripping is the process of copying audio or video content to a hard disk, typically from removable media or media streams.[http://en.wikipedia.org/wiki/Ripping]
Often, the process of ripping a DVD can be broken down into two subtasks:
# '''Data extraction''' - Copying the audio and/or video data to a hard disk
# [[Wikipedia:Transcode|Transcoding]] - Converting the extracted data into a suitable format
Some utilities perform both tasks, whilst others focus on one aspect or the other.
=== dvdbackup ===
[[dvdbackup]] is used simply for data extraction, and does not transcode. This tool is useful for creating ''exact'' copies of encrypted DVDs in conjunction with {{Pkg|libdvdcss}} or for decrypting video for other utilities unable to read encrypted DVDs.
=== dvd::rip ===
dvd::rip is a front-end to {{Pkg|transcode}}, used to extract and transcode on-the-fly.
The following packages should be installed:
* {{Pkg|dvdrip}}: GTK front-end for {{Pkg|transcode}}, which performs the ripping and encoding
* {{Pkg|libdv}}: Software codec for DV video
* {{Pkg|xvidcore}}: If you want to encode your ripped files as XviD, an open source MPEG-4 video codec (free alternative to DivX)
* {{AUR|divx4linux}}: If you want to encode your ripped files as DivX (available in the [[AUR]])
The dvd::rip preferences are mostly well-documented/self-explanatory. If you need help with something, see http://www.exit1.org/dvdrip/doc/gui-gui_pref.cipp.
Ripping a DVD is often a simple matter of selecting the preferred codec(s), selecting the desired titles, then clicking the "Rip" button.
=== FFmpeg ===
[[FFmpeg]] is capable to do a direct rip in any format (audio/video) from a DVD-Video .iso image, just select the input as the *.iso image and proceed with the desired options. It also allows to downmixing, shrinking, spliting, selecting streams among other features.
=== HandBrake ===
HandBrake is a multithreaded video transcoder, which offers both a graphical and command-line interface with many preset configurations. The package is available in the [[official repositories]]: {{Pkg|handbrake}}.
=== MEncoder ===
[[MEncoder]] is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.  Wrapper programs like {{AUR|h264enc}} and {{AUR|undvd}} can provide an assistive interface.
=== Hybrid ===
Hybrid is a multi platform (Linux/Mac OS X/Windows) Qt based frontend for a bunch of other tools which can convert nearly every input to x264/Xvid/VP8 + ac3/ogg/mp3/aac/flac inside an mp4/m2ts/mkv/webm/mov/avi container, a Blu-ray or an AVCHD structure.
A package is available in the [[AUR]]: {{AUR|hybrid-encoder}}.
For detailed information visit the [http://www.selur.de/project homepage].
=== DVD-VR ===
From [[wikipedia:DVD-VR|Wikipedia - DVD-VR]]:
:''The DVD-VR standard defines a logical format for video recording on DVD-R, DVD-RW, and DVD-RAM style media, including the dual layer versions of these media. As opposed to media recorded with the DVD+VR recording standard, the resulting media are not DVD-Video compliant, and will not play back in some DVD-Video players. Most DVD video recorders in the market that support DVD-R, DVD-RW, or DVD-RAM media will allow recording to these media in DVD-VR mode, as well as in a DVD-Video compliant mode. It is possible to use the DVD-VR format with DVD+R and DVD+RW media, but no examples are known other than some PC based recording utilities.''
.VRO files extracted from a DVD-VR can be easily converted and splitted in regular .VOB files using the [http://www.pixelbeat.org/programs/dvd-vr/ DVD-VR] program.
Install {{AUR|dvd-vr}} from the [[AUR]].
== Troubleshooting ==
=== K3b locale error ===
When running K3B, if the following message appears:
System locale charset is ANSI_X3.4-1968
Your system's locale charset (i.e. the charset used to encode file names) is
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.
Most likely the locale is not set at all. An invalid setting will result in
problems when creating data projects.Solution: To properly set the locale
charset make sure the LC_* environment variables are set. Normally the distribution
setup tools take care of this.
It means that your locale is not set well.
To fix it,
* Remove {{ic|/etc/locale.gen}}
* Re-install {{Pkg|glibc}}
* Edit {{ic|/etc/locale.gen}}, uncommenting all lines lines that corresponds to your language AND the {{ic|en_US}} options, for compatibility:
en_US.UTF-8 UTF-8
en_US ISO-8859-1
* Re-generate the profiles with {{ic|locale-gen}}:
{{hc|# locale-gen|
Generating locales...
en_US.UTF-8... done
en_US.ISO-8859-1... done
pt_BR.UTF-8... done
pt_BR.ISO-8859-1... done
Generation complete.
More info [https://bbs.archlinux.org/viewtopic.php?pid=251512%29; here].
=== Brasero fails to find blank discs ===
Brasero uses {{Pkg|gvfs}} to manage CD/DVD burning devices.
=== Brasero fails to normalize audio CD ===
If you try to burn it may stop at the first step called Normalization.
As a workaround you can disable the normalization plugin using the ''Edit > Plugins'' menu
=== VLC: Error "... could not open the disc /dev/dvd" ===
If you get the error, "'''vlc dvdread could not open the disc "/dev/dvd"'''" it may be because there is no device node {{ic|/dev/dvd}} on your system.  Udev no longer creates {{ic|/dev/dvd}} and instead uses {{ic|/dev/sr0}}.  To fix this edit the VLC configuration file ({{ic|~/.config/vlc/vlcrc}}):
{{bc|1=# DVD device (string)                                                         
===DVD drive is noisy===
If playing DVD videos causes the system to be very loud, it may be because the disk is spinning faster than it needs to. To temporarily change the speed of the drive, as root, run:
# eject -x 12 /dev/dvd
# hdparm -E12 /dev/dvd
Any speed that is supported by the drive can be used, or 0 for the maximum speed.
[http://hektor.umcs.lublin.pl/~mikosmul/computing/tips/cd-rom-speed.html Setting CD-ROM and DVD-ROM drive speed]
===Playback does not work with new computer (new DVD-Drive)===
If playback does not work and you have a new computer (new DVD-Drive) the reason might be that the [[Wikipedia:DVD region code|region code]] is not set. You can read and set the region code with {{AUR|regionset}} from the [[Arch User Repository]].
=== None of the above programs are able to rip/encode a DVD to my hard disk! ===
Make sure the region of your DVD-reader is set correctly, otherwise you'll get loads of unexplainable CSS-related errors. Use {{AUR|regionset}} to do so.
== See also ==
* RIAA and actual laws allow backup of physically obtained media under these conditions [https://www.riaa.com/physicalpiracy.php?content_selector=piracy_online_the_law RIAA - the law].
* [[Convert any Movie to DVD Video]]

Revision as of 14:19, 27 July 2013

Example of a main section result fo merge

== Burning == <!ex CD burning>

The burning process of optical disc drives consists of creating an image (ISO 9660,TOC/CUE/BIN) and write it to disk. For this purpose, there are several tools that can create images and burn them.

=== Install burning utilities === <! ex Install programs for ISO 9660 and burning of CD, DVD, or BD>

You need at least one program for creation of image filesystems and one program that is able to burn data onto your desired media type.

Available programs for image creation are:

  • genisoimage from package cdrkit
  • isomaster from package isomaster (with gtk2 GUI)
  • mkisofs from package cdrtools
  • xorriso and xorrisofs from package libisoburn
  • cdrao from cdrdao for TOC/BIN/CUE image

The traditional choice is genisoimage for ISO 9660 and cdrao for TOC/BIN/CUE

Available programs for burning are:

  • cdrdao from package cdrdao (CD only, .cue files only)
  • cdrecord from package cdrtools
  • cdrskin from package libburn
  • growisofs from package dvd+rw-tools (DVD and BD only)
  • wodim from package cdrkit (CD only, DVD deprecated)
  • xorriso from package libisoburn (no audio CD)
  • xorrecord from package libisoburn (no audio CD)

The traditional choices are wodim for CD and growisofs for DVD and Blu-ray Disk. For growisofs and BD-R see the bug workaround below. For writing cue/bin files to CD, install the cdrdao package.

The free GUI programs for CD, DVD, and BD burning depend on at least one of the above packages.

The programs genisoimage, mkisofs, and xorrisofs all three support the genisoimage options which are shown in this document.

The programs cdrecord, cdrskin, and wodim all three support the shown wodim options. Program xorrecord supports those which do not deal with audio CD.


The installed files of packages cdrkit and cdrtools are in conflict. If you want to install cdrtools, make sure that you build a package using makepkg and install with pacman. Pacman wrappers may resolve to cdrkit instead.