Template:K Raring/CD DVD
Current revision as of 18:03, 5 July 2014
CDs and DVDs
K3b (CD/DVD burner)
K3b (KDE Burn Baby Burn) is the default KDE CD and DVD burning utility included in Kubuntu. This includes the ability to burn VideoDVD's. K3b is included by default in most Kubuntu installations. If not, install:
sudo apt-get install k3b
Install MP3 support for K3b
Due to licensing requirements, mp3 capabilities for K3b must be installed separately. (Note: this package is automatically installed as part of kubuntu-restricted-extras). Install the libk3b3-mp3 package:
sudo apt-get install libk3b6-extracodecs
If it still does not work then:
sudo apt-get install lame
Normalize audio levels
Volume normalization for an audio CD requires a separate external plugin. Install:
sudo apt-get install normalize-audio
Then select normalization:
- K3b -> Project -> Properties -> Advanced -> Settings:Normalize volume levels (ticked)
- Recent versions of k3b have a bug that doesn't properly recognise normalize-audio. See these tips (or these tips) for a workaround.
Burn a DVD using K3b
- Video files in containers such as AVI, MP4, WMV, or FLV should be written to disk as data files using the "New Data Project" option.
- If you have folders named VIDEO_TS and AUDIO_TS (as is used with the VOB format found on many commercial DVDs), burn them to DVD using the "New Video DVD Project" option:
- K3b -> New Project -> New Video DVD Project
If the size of the VIDEO_TS and AUDIO_TS folders is greater than the capacity of the disk to which you wish to burn them, you can use k9copy to shrink the data.
Rip an audio CD using K3b
- K3b can be used to rip an audio CD (.cda) to another audio format (such as .mp3):
- K3b -> More actions... -> Rip audio CD -> Start Ripping -> Settings: Filetype: Mp3 (Lame) -> Start Ripping
- The default bitrate for MP3 ripping is 128 Kb. To change to a different bitrate for ripping, edit the k3b settings:
- K3b -> More actions... -> Rip audio CD -> Start Ripping -> Settings: Filetype: Mp3 (Lame) -> Wrench icon
- Configured encoders: Mp3 (lame) -> Edit... -> Command
- Change the default command string from:
lame -r --bitwidth 16 --little-endian -s 44.1 -h --tt %t --ta %a --tl %m --ty %y --tc %c --tn %n - %f
lame -r --bitwidth 16 --little-endian -s 44.1 -b 192 --tt %t --ta %a --tl %m --ty %y --tc %c --tn %n - %f
- where 192 is the desired constant bitrate.
Cdrecord error 254
This problem usually occurs when a large amount of data (around 3.5 GB or larger) is being written to a DVD-R. The wodim 1.11 (there seem to be no problems with older versions of wodim such as v1.9) and genisoimage packages from the cdrkit (or one of their dependencies) used by Debian-based distributions (including (K)Ubuntu) may be dysfunctional and may generate a message similar to "cdrecord error 254" error while burning using K3B. Alternately, any file(s) written above the 3.5 GB limit may be improperly written to DVD. This problem effectively limits DVD-R burning to less than 3.5 GB.
- Solution: Do not use the cdrecord (which includes wodim) for writing DVD disks that contain more than 3.5 Gb data. Instead, use growisofs:
- K3b -> Burn -> Writing app: growisofs -> Writing mode: DAO
- This has successfully allowed me to burn DVDs with more than 3.5 Gb data.
Note: If the "growisofs" option is not visible, then change the K3b settings to allow Advanced GUI settings:
- K3b -> Settings -> Configure K3b... -> Advanced -> Show advanced GUI elements (ticked)
- Another (difficult) suggested solution entails installing a current copy of cdrtools manually. One location for obtaining cdrtools .deb packages is this Launchpad PPA repository. Download and install the cdrecord .deb package for your OS type (i386 or amd64). mkisofs and cdda2wav should be installed as well, as indicated here. Note: The solution here has not been verified, and the problem may lie in a different module than cdrkit, such as libdvdread. Take these suggestions with a grain of salt. See this explanation, and this Ubuntu forums thread and this one.
- Alternatively, obtain and use the older version of k3b/cdrecord/wodim (v1.9), such as used in Lucid Lynx. This is not an easy solution to implement other than by installing a standalone Lucid Lynx OS in its own small partition.
Cdrecord has no permission to open the device error
If you receive the "cdrecord has no permission to open the device" error while burning using K3B, open a terminal and type:
sudo chmod 777 /dev/scd0
- Note: replace /dev/scd0 with your own device, e.g. /dev/sr0.
- Note: chmod 777 is the universal option for granting full permission to a folder. The 777 mask indicates that read, write, and execute permission is given to all users.
K9copy (DVD Ripper)
K9copy is the free open source DVD backup, copying, compression, and authoring utility that requires libdvdcss. You can easily create MPEG-2. MPEG-4, or DVD videos with this utility. For other info, see either this or this guide.
sudo apt-get install k9copy
- See this section for tips on using k9copy with mencoder and NTFS DVDs.
- Tips: At times you may not be able to copy your DVD directly from DVD to DVD. This may because you have a small imperfection in the DVD, or because the DVD was initially created with a non-standard burning method. There are two methods that can help solve this problem:
- Copy the VIDEO_TS and AUDIO_TS folders from your original DVD directly to your hard drive. Then use k3b (or Gnomebaker) or k9copy to burn a DVD directly using these hard drive folders.
- Alternatively, use k3b (or Gnomebaker) to copy an .iso image from the original DVD to your hard drive. Then use k9copy to extract from the hard drive .iso image and then burn a DVD directly from it.
Handbrake is a GPL-licensed open source tool for converting DVD to MPEG-4 (iPod format) that is an alternative to k9copy. (It can handle many DVDs that k9copy cannot.) Note that Handbrake supports X264/H.264 and MP4 video encoding but no longer supports the XVID video codec. It uses the .MP4/.M4V or .MKV containers, but no longer supports the .AVI container. However, it uses a streaming algorithm that (while slower than other methods) is compatible with a large variety of encryption techniques. (Following "ripping" from a DVD, the resulting .MP4 or .MKV file can be converted to other formats, such as .AVI with XVID, using these suggestions.) Installation is from the developmental PPA archive.
sudo add-apt-repository ppa:stebbins/handbrake-releases sudo apt-get update sudo apt-get install handbrake-gtk handbrake-cli
If you do not intend to use the command-line interface, you can skip handbrake-cli.
- Alternatively, to your package manager you can add the custom repository:
deb http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu raring main
then install the package handbrake-gtk (and handbrake-cli if desired).
dvd::rip is a DVD backup/copy program, written in GTK-based perl, that uses the transcode and ffmpeg video/audio processing and conversion tools. See the website for installation and official documentation. For other info, see this dvd::rip tutorial. Install:
sudo apt-get install dvdrip rar
Acidrip is a DVD backup/copy program, written in GTK-based perl, that uses the Mplayer and Mencoder video/audio processing and conversion tools (and therefore yields the best quality DVD rips to an .AVI file with XVID video, for example). See the website for installation and official documentation. Install:
sudo apt-get install acidrip
DVD Fab (DVD Ripper)
DVD Fab is a favoured DVD backup tool in the Windows community for today's DVD encryption methods. It must be run in Wine (since it is a Windows application). It comes as a fully featured 30-day trial, but see these instructions for fine-tuning the trial period.
DVD Playback Capability
To play encrypted DVDs, the libdvdcss2 package is essential. libdvdcss2 is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. More information about this package can be found at VideoLAN.
- Add the VideoLAN repository key:
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -
- Install the repository and package manually from the command-line:
sudo add-apt-repository "deb http://download.videolan.org/pub/debian/stable/ /" sudo apt-get update sudo apt-get install libdvdcss2
- Alternatively add the VideoLAN repository using your package manager:
deb http://download.videolan.org/pub/debian/stable/ /
- then install the libdvdcss2 package using the package manager.
- You can install libdvdcss2 as a 64-bit .deb package (without installing VideoLAN repositories):
wget -c http://download.videolan.org/pub/debian/stable/libdvdcss2_1.2.13-0_amd64.deb sudo dpkg -i libdvdcss2_1.2.13-0_amd64.deb
- or a 32-bit .deb package:
wget -c http://download.videolan.org/pub/debian/stable/libdvdcss2_1.2.13-0_i386.deb sudo dpkg -i libdvdcss2_1.2.13-0_i386.deb
- As of September 2013, Medibuntu is no longer maintained. Here are legacy Medibuntu instructions which will work for only a limited period more.
- You can install libdvdcss2 as a 64-bit .deb package (without installing Medibuntu repositories):
wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.12-0.0medibuntu1_amd64.deb sudo dpkg -i libdvdcss2_1.2.12-0.0medibuntu1_amd64.deb
- or a 32-bit .deb package:
wget -c http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.12-0.0medibuntu1_i386.deb sudo dpkg -i libdvdcss2_1.2.12-0.0medibuntu1_i386.deb
- You can also install 32 bit or 64 bit Windows multimedia codecs (if you haven't already done so using kubuntu-restricted-extras):
sudo apt-get install w32codecs
sudo apt-get install w64codecs
- Instead of downloading directly from Medibuntu, you could also use the script included with the libdvdread3 package to download and install libdvdcss2:
sudo apt-get install libdvdread3 sudo /usr/share/doc/libdvdread3/install-css.sh
sudo apt-get install libudf0
Other tools are useful:
sudo apt-get install udftools libudf-dev