Linux DVD Playback

Discussion in 'all things UNIX' started by CogitoTesting, Dec 22, 2009.

Thread Status:
Not open for further replies.
  1. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    Has anyone been successful in playing DVD on Linux. I'm testing right now: Ubuntu, Kubuntu, and LinuxMint and I have done everything that I could to play a DVD that I bought to no avail. I went to the ubuntu forums to search for help with no apparent success. Maybe I'm going to be luckier at Wilders.

    PLEASE HELP. :'(


    Thanks.
     
  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,215
    Did that a few times successfully, no sweat.

    First thing - try playing the movie in VLC.
    If VLC does not play, there's a good chance it's a bad DVD.

    Now, try playing the movie from the command line, let's see if there are any errors.

    Cheers,
    Mrk
     
  3. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    How did you achieve that? Could you provide a step by step intruction on how to do that. I was told that linux cannot play DVD without for example lidvdcss2, libdvdnav, libdvdread4 etc... My DVD is not Bad I bought at Wal-Mart new.

    More help plaese.
     
  4. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,065
    Hello,
    With ubuntu and linuxmint i installed the resticted extras package and then installed libdvdcss with via commandline following the simple instuctions on the website that is linked to once you install restricted extras using ubuntu software centre.

    then i installed vlc media player and it worked. works on both my laptop and desktop.
     
  5. Judge Dee

    Judge Dee Guest

    Hi CogitoTesting,

    Go here.
    Go down and click where it says "Click here to install the ubuntu-restricted-extras package".
    Then go down to where it it gives you the terminal command to install libdvdread4.
    (sudo /usr/share/doc/libdvdread4/install-css.sh).
    It worked for me on Karmic.

    edit: sorry lodore. I was typing while you posted.
     
  6. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    Thanks guys for all your help. Now the common denominator from your posts is the restrictive package and I will download it soon. Now, should I install libdvdread4 or libdvdcss or both?

    For more information about my system: I'm trying a virtualbox Kubuntu (guest) on a Windows 7 ultimate 64 Bit Host.

    Thanks.
     
  7. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    I thought VLC plays DVD's out of the box as it comes with the required codecs.

    Open VLC from Applications->Sound & Video->VLC media player. To play a DVD, click File->Open Disk.
    Make sure the disk type is set to DVD (menus), click OK, and the movie should begin to play. o_O

    With restricted extras package you will also get other stuff like sun java (out of date) version and the microsoft true type core fonts ..
     
  8. Judge Dee

    Judge Dee Guest

    Vlc would not play encrypted dvds in my Ubuntu Karmic. I had to follow the steps in my post.
     
  9. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343

    If using Ubuntu 64 bit, open your terminal and type the following:

    Code:
    sudo apt-get remove gnash gnash-common libflashsupport mozilla-plugin-gnash swfdec-mozilla && sudo apt-get install alsa-oss faac faad flashplugin-nonfree gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse ia32-libs ia32-sun-java6-bin icedtea6-plugin libmp3lame0 non-free-codecs openjdk-6-jre unrar
    Let all that install. Then type the following:

    Code:
    sudo apt-get remove kaffeine-mozilla mozilla-helix-player mozilla-mplayer mozilla-plugin-vlc totem-mozilla xine-plugin && sudo apt-get install gnome-mplayer gecko-mediaplayer
    Then once that is done, type:

    Code:
    sudo apt-get install libdvdcss2 libdvdread4 libdvdnav4 vlc
    All done. These commands should give you access to just about all multimedia functionality that Ubuntu offers.

    Source here.
     
  10. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    Hi guys

    Thanks for all the help. However, this is what I'm getting now when trying to play a DVD with VLC after I followed all of the above instructions:

    Playback failure:
    DVDRead could not read 2/4 blocks at 0x01.

    Thanks.
     
  11. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    Sounds like a bad DVD. Either that or you don't have the libraries installed. Are you sure you have libdvdcss installed? Type the following in your terminal:

    Code:
    dpkg -l | grep libdvd
    You should see 3 packages listed: libdvdcss2, libdvdread, and libdvdnav.
     
  12. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    After following your advice this is what I'm getting now:

    Playback failure:
    VLC cannot set the DVD's title. It possibly cannot decrypt the entire disc.
    Your input can't be opened:
    VLC is unable to open the MRL 'dvd:///media/cdrom0/VIDEO_TS'. Check the log for details.
    Playback failure:
    VLC cannot set the DVD's title. It possibly cannot decrypt the entire disc.
    Your input can't be opened:
    VLC is unable to open the MRL 'dvd:///media/cdrom0/VIDEO_TS'. Check the log for details.
    Your input can't be opened:
    VLC is unable to open the MRL 'dvdsimple:///media/cdrom0/VIDEO_TS'. Check the log for details.

    The DVD that I'm playing is certainly not bad. It is a brand new DVD and it plays well on Windows 7 ultimate 64 bit.

    Thanks.
     
  13. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    Again, I ask you to run this command:

    Code:
    dpkg -l | grep libdvd
    Post the output here.
     
  14. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    I did and I also installed these three packages: 3 packages listed: libdvdcss2, libdvdread, and libdvdnav.

    Thanks.
     
  15. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    Hi guys

    I'm still having no luck with ubuntu dvd playback. Here is my latest log:

    user@user-desktop:~$ sudo ln -s /media/cdrom0 /dev/dvd
    ln: creating symbolic link `/dev/dvd': File exists
    user@user-desktop:~$ vlc
    VLC media player 1.0.2 Goldeneye
    [0x81a2700] main interface error: no interface module matched "globalhotkeys,none"
    [0x81a2700] main interface error: no suitable interface module
    [0x81a2140] main libvlc error: interface "globalhotkeys,none" initialization failed
    [0x81a2140] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    libdvdnav: Using dvdnav version 4.1.3
    libdvdread: Using libdvdcss version 1.2.10 for DVD access
    libdvdnav: DVD Title: KEEPINGUPAPPEARANCES_D2
    libdvdnav: DVD Serial Number:
    libdvdnav: DVD Title (Alternative): KEEPINGUPAPPEARANCES_D2
    libdvdnav: Unable to find map file '/home/user/.dvdnav/KEEPINGUPAPPEARANCES_D2.map'
    libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
    libdvdnav: ifoRead_TITLE_VOBU_ADMAP vtsi failed
    [0x8531080] dvdnav demux error: cannot set title (can't decrypt DVD?)
    libdvdread: Using libdvdcss version 1.2.10 for DVD access
    libdvdread: Invalid title IFO (VTS_01_0.IFO).
    [0x8531080] dvdread demux error: fatal error in vts ifo
    [0x8531080] dvdread demux error: DvdReadSetArea(0,0,1) failed (can't decrypt DVD?)
    [0x853a0e0] main access error: no access module matched "dvd"
    [0x84d4f50] main input error: open of `dvd:///dev/sr0' failed: no access module matched "dvd"
    libdvdnav: Using dvdnav version 4.1.3
    libdvdread: Using libdvdcss version 1.2.10 for DVD access
    libdvdread: Attempting to use device /dev/sr0 mounted on /media/cdrom0 for CSS authentication
    libdvdnav: Can't read name block. Probably not a DVD-ROM device.
    libdvdnav: Unable to find map file '/home/user/.dvdnav/.map'
    libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
    libdvdnav: ifoRead_TITLE_VOBU_ADMAP vtsi failed
    [0x8652578] dvdnav demux error: cannot set title (can't decrypt DVD?)
    libdvdread: Using libdvdcss version 1.2.10 for DVD access
    libdvdread: Attempting to use device /dev/sr0 mounted on /media/cdrom0 for CSS authentication
    libdvdread: Invalid title IFO (VTS_01_0.IFO).
    [0x8652578] dvdread demux error: fatal error in vts ifo
    [0x8652578] dvdread demux error: DvdReadSetArea(0,0,1) failed (can't decrypt DVD?)
    [0x85559d8] main access error: no access module matched "dvd"
    [0x86afe38] main input error: open of `dvd:///cdrom/VIDEO_TS' failed: no access module matched "dvd"


    Thanks.
     
    Last edited: Dec 23, 2009
  16. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    I'm beginning to think that playing is probably a fantasy for me. I'm pretty well versed in Windows; however, when its come to Linux I'm just a beginner. I was trying to move to Linux but if it is that hard to even play a legal DVD then I do not think that moving to Linux is a worthwhile endeavor.

    I was about to fiddle with MythTV but I changed my mind. Nonetheless, if God could do a miracle for me I would like that. Is there a micracle angel somewhere from Canonical that can work a miracle for me and force Ubuntu to play DVD... PLEASE. :oops: :'( :oops: :'(

    Thanks.
     
  17. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    Have you tried other DVD's?

    Why are you linking /media/cdrom to /dev/dvd?

    Have you tried another player besides VLC?
     
  18. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    Ye I had and I have tried all the players that can work on ubuntu like xine, dragon, Mplayer etc... Moreover, I have tried to play all my DVD collection on Ubuntu to no avail. But all of them works on Windows and my standalone DVD player. Now I'm out of ideas, period.

    Linux is hard, not too people friendly, there is a bunch of code this, code that and a lot of grief and headache :D. I think I'm staying with Windows for now.

    I have also used these two guides for extra ideas: 1) www.ubuntuguide.org 2) www.kubuntuguide.org

    Thanks.
     
  19. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    You didn't answer my second question, but that's alright. Windows seems more your speed. ;)
     
  20. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    At the Ubuntu forums there was a person who was recommending to link from /media/cdrom0 to /dev/dvd since vlc assumes this is the path of my DVD. Nothing was working for me so I decided to give a try. But it did not work.

    Thanks.
     
  21. GlobalForce

    GlobalForce Regular Poster

    Joined:
    Jun 30, 2004
    Posts:
    3,581
    Location:
    Garden State, USA
    And if you run live "outside" your VirtualBox host - same condition?
     
  22. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    You just read my mind. This is exactly what I was thinking. I was trying to use wubi, but I do not think it is compatible with Windows 7. My only choice now is to do a real dual-boot.

    Thanks.
     
  23. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    All of this for nothing. I wasn't even aware you were using Wubi. No wonder it isn't working! You need to do a real install.
     
  24. CogitoTesting

    CogitoTesting Registered Member

    Joined:
    Jul 4, 2009
    Posts:
    901
    Location:
    Sea of Tranquility, Luna
    To all

    I have the distinct pleasure :D to let you know guys that I have done it finally. Yes I have found a way to play DVD on Ubuntu. To tell you the truth I think that VirtualBox was the problem, maybe a bug or something; even though I was using the latest release. I think somehow an angel from Canonical put the idea in my mind and I did something different.

    Well then I used VMware and my system worked flawlessly. Here are the steps:

    1) I ejected my DVD from my drive.

    2) Using synaptic I downloaded and installed ubuntu-restricted-extras.

    3) Using synaptic I downloaded and installed libdvdread4.

    4) Closed synaptic package manager.

    5) Using terminal I executed: sudo /usr/share/doc/libdvdread4/install-css.sh

    6) Closed terminal

    7) Put the DVD in the drive and selected my DVD player et voila.

    That was it.

    I would like to, sincerely, thank everyone on this thread who has helped me, in finding a solution to my Ubuntu DVD playback dilemma :D. I owe you one guys you are all the best. :thumb:
     
  25. Judge Dee

    Judge Dee Guest

    Good job! :thumb: Glad to hear it's working. :)
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.