Donation Goal
Donate Now Goal amount for this year: 799 USD, Received: 100 USD (13%)
Please donate to help support this website. The funds will be used to purchase owned license of LiteSpeed Web Server Enterprise (2-CPU). It provides superior performance in terms of raw speed, scalability and anti-DDoS capabilities.

Watching DVDs in Linux by installing one library

Posted By Paul\HellNoire In Category: Computer

Jun
11
2010

I was asked recently about how long it might take for me to push out the Fedora review and at present, it is still being tested, only being pushed off by the fact that I’ve been having a near constant work week at the store I work for, and until next week, when I have a few days off in a row, will I be able to finish up the review. I must say, for a distribution that in the past has never worked out the way I had hoped, it has gotten a lot better. The documentation is a lot cleaner then it was at previous as well as the system itself becoming simpler. I’ll be sure to cover more next week once the review is finished.

However, I did receive a rather interesting email yesterday, asking me how to set up DVD playback under Linux, seeing as the person wanted to watch the DVD copy of My Name Is Khan they had bought a little while ago. And while I’m aware Linux Mint has DVD playback installed right away, they are using Ubuntu 10.04, and are enjoying it, so I couldn’t tell them to go to Mint. Telling someone to go to a different OS when something works for them is an extremely foolish thing to do if you ask me. So today, I’m going to show you how you can set up Linux to work with any DVD out of the box.

The only thing you have to do really is add in a repository for Ubuntu and install the playback/codec that you need for Ubuntu or Salix. Since most people I know use Ubuntu or Linux Mint, these steps remain the same. Open up the terminal, then copy and paste the following line:

sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get –quiet update && sudo apt-get –yes –quiet –allow-unauthenticated install medibuntu-keyring && sudo apt-get update

What this does is that it adds the repository as well as the GPG key that says it can be trusted and installed from. This is only for Ubuntu and spinoffs of Ubuntu, seeing as Salix has the component we need in their default repositories. Before closing the terminal, issue this command:

sudo apt-get install libdvdcss2 w32codecs -y

which will then install the DVD playback as well as media playback of non-standard formats.

If you’re using Salix, it’s even simpler then that. Open up Gslapt, and install libdvdcss (which you’ll notice is exactly what you have to install in Ubuntu), then open up your video player of choice and slip your DVD in. It really is that simple to have DVD playback in Linux, like what you’re used to in Windows. This will also allow you to have any front end you’d like to rip your DVD as well if you’d like to do that too. My personal choice for DVD and video playback is VLC Player, but I know some people who are happy with Totem and MPlayer, so in the end, whatever you choose, now has the ability to play back your DVDs. And to the writer of the email, I have this to say: as someone who enjoyed My Name Is Khan, I hope you enjoy it just as much as I did, it was quite a tearjerker!


Related posts:
  • Installing via Terminal and Compiling Files from Source
  • Increasing or Decreasing the Maximum Volume in Linux
  • Installing Sun Java in *buntu 10.04 Long Term Support
  • Setting up your Wireless in Linux – NDISWrapper
  • Helpful Sites to Help You Run That One App You Need For Linux
    • Ahmad

      Nice Movie, I watched it, nice article, good work,, keep it up… you are awesome….

    • Chris

      I use smplayer in Ubuntu. No need to install prop codecs. Plays DVD’s and a huge array of file formats. Saves hunting for the different codecs for each file – plus it’s the best all round video player I’ve used in Linux. Instead of bookmarking where you’re up to in a movie for playback another day, it remembers each files settings, including where it was stopped. Hope my opinion helps to some degree!!

      And it’s great you’re doing these Linux articles, Ray. Keep them coming.

    • http://twitter.com/dfg James

      I would strongly suggest users try VLC. The latest version offers hardware acceleration [1.1 release] which is amazing and saves tons of CPU cycles.

    • Paul\HellNoire

      @Chris, there’s a reason for that… it installs all of the codecs it needs as well as a DVD unencypted playback as far as I know. If you watch more recent films, you might need to install this. And it’s Paul who’s doing the Linux articles ;)

      @James, I agree but only because VLC has always had the sharpest image for me in Windows or Linux.

    • tauseef

      What abt ubuntu -64 bit edition

    • Paul\HellNoire

      @tauseef, if you’re using 64 bit OS, you follow the same first command, the second command would be changed to

      sudo apt-get install libdvdcss2 w64codecs -y

      Yes it’s literally that simple.

    • tauseef18

      Thanks now i can play DVD on my ubuntu 64bit 10.4 but playing VCDs are still a problem i tried both vlc and movieplayer with

      libdvdcss2 w64codecs

    • Paul\HellNoire

      @tauseef18, I have no VCDs to test with, so I don’t know… I’ve never even encountered a VCD.

    • tauseef

      Then just tell me how to play .dat(media) files on my ubuntu 10.4 64bit.

    • Paul\HellNoire

      Again, never done it. I’ve heard some people use

      sudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg

      and then it works for them.

    • Tauseef

      Worked for me actually its a dat file inside that VCD now it works 100%.Thanks for support Paul and offcourse Raymond.Though he is not posting much these days

    Copyright © 2005-2012 - Raymond.CC Blog