Difference between revisions of "DVD Playing"

From ArchWiki
Jump to: navigation, search
(add template -merge with CD Burning pages - "Too many pages to explain how best to use a cd/dvd device. Merge them into a single page for quick reference.")
(One intermediate revision by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Optical_Disc_Drive#DVD_playing]]
[[fr:Lecture DVD]]
[[de:DVD abspielen]]
{{Article summary start}}
{{Article summary text|An introduction to playing DVD-Video.}}
{{Article summary heading|Series}}
{{Article summary wiki|DVD Playing}}
{{Article summary wiki|DVD Ripping}}
{{Article summary wiki|DVD Burning}}
{{Article summary heading|Related}}
{{Article summary wiki|Codecs}}
{{Article summary wiki|MPlayer}}
{{Article summary end}}
{{Merge|CD Burning|Too many pages to explain how best to use a  cd/dvd device. Merge them into a single page for quick reference.|Talk:CD_Burning#Merge_multiple_pages_CD.2FDVD}}
[[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'''.}}
==== 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)                                                         
A lightweight media player supporting DVD menus.
[http://www.xine-project.org/ xine home page]
===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]].

Revision as of 18:07, 22 July 2013