Difference between revisions of "Multimedia and DVDs in Ubuntu"

From FreekiWiki
Jump to navigation Jump to search
 
(93 intermediate revisions by 14 users not shown)
Line 1: Line 1:
So, you've bought a DVD-ROM from the Thrift Store, and you want to play DVDs on your [[Freekbox 3]].  You'll need to install a few programs and mess around with some files.  This page will lead you through it.
+
This page in Spanish: [[Multimedia and DVDs in Ubuntu (Español)]]
  
==1. Physically Install your DVD-ROM==
+
'''Since downloading some of the following libraries may violate some Digital Millenium Copyright laws, this wiki page is for educational purposes only. Anyone who follows these directions for their computer  does so at their own risk.'''
  
==2. Install some Programs==
 
  
* Install kaffeine and some DVD navigation tools.  Open a terminal and become root, then run a couple of commands:
 
apt-get update
 
apt-get install kaffeine libdvdplay0 libdvdnav4 libdvdread3
 
  
* [[Install Mplayer]]
+
==Instructions for  Ubuntu 12.04 ==
 +
NOTE:  Please make sure that sure to check the "multiverse" box under Menu -> Ubuntu Software Center -> Edit -> Software  Sources  before you begin.
 +
This is what it should look like (in Ubuntu 12.04) (though yours is probably gray in color).
  
* Install the libdvdcss2 library.
+
[[Image:Software-sources.png]]
This one's about as complex as installing mPlayer.
 
  
Open a terminal and become root.
+
In order to make Multimedia and DVDs work in Ubuntu, you need to add some additional software.  This software is not installed by default because of licensing and legal issues.  
  
Add the following line to /etc/apt/sources.list where <dist> is the version of debian you are running (stable, testing, unstable):
+
*Make sure you are connected to the Internet
deb <nowiki>http://download.videolan.org/pub/videolan/debian</nowiki> <dist> main
+
*Install the following packages, either from the Ubuntu Software Center or from the command line:
deb-src <nowiki>http://download.videolan.org/pub/videolan/debian</nowiki> <dist> main
+
**xubuntu-restricted-extras
 +
**libdvdread4 (if you want DVD playback)
 +
**vlc (optional)
 +
===GUI===
 +
Open the Ubuntu Software Center form the main menu and type the name of the applications in the search box that appears on the right hand side under 'All Software'
  
Then type the following command:
+
===Command  Line Installation===
apt-get install libdvdcss2
+
To install from the command line, open a terminal (Applications>Accessories>Terminal) and type or paste the following:
  
==3. Make the DVD-ROM Accessible==
+
sudo apt-get install vlc ubuntu-restricted-extras libdvdread4
If you don't have a terminal open already, open one up and become root.  Then type:
 
chmod a+r /dev/hdd
 
This is assuming that your DVD-ROM is plugged in to the IDE ribbon cable end that would make it hdd.
 
  
==4. Configure Kaffeine==
+
You will need to give it your password. Don't worry is nothing shows up on the screen when you are typing your password it is supposed to be this way.
Once you've opened Kaffeine, go to the 'Settings' menu and select 'xine Engine Parameters'.   
+
 
 +
 
 +
===Enabling DVD Playback===
 +
There is a final stage before DVD playback is enabled. type
 +
 
 +
Open a terminal (Menu -> Accessories-> Terminal Emulator)
 +
 
 +
sudo /usr/share/doc/libdvdread4/install-css.sh
 +
 
 +
followed by the Enter key.
 +
 
 +
This procedure adds a second media player (vlc) which will appear in Applications>Sound and Video as well as java, quicktime and some other media helpers and plugins. 
 +
 
 +
To make VLC the default player for DVD's (recommended) open a terminal and type:
 +
 
 +
thunar-volman --configure
 +
 
 +
then go to '''Multimedia''' tab and change  the ''Video CDS/DVDs'' command box to read
 +
 
 +
vlc dvd://%d
 +
 
 +
if you want it to open in full screen use
 +
 
 +
vlc -f dvd://%d 
 +
 
 +
The install will ask you to agree to some licences license as well as clicking or entering ok on a couple of informational screens. You can use tab and the arrow keys to navigate. The chose options will be  highlighted in red. Click Enter to proceed.  The installation may appear to stall part way through.  Be patient.
 +
 
 +
==Instructions for  Ubuntu 10.04 ==
 +
NOTE:  Please make sure that sure to check the "multiverse" box under system ---> administration ----> software sources before you begin.
 +
This is what it should look like (in Ubuntu 10.04)
 +
[[Image:Software-sources.png]]
 +
 
 +
In order to make Multimedia and DVDs work in Ubuntu, you need to add some additional software.  This software is not installed by default because of licensing and legal issues.
 +
 
 +
*Make sure you are connected to the internet
 +
*Install the following packages, either from the Ubuntu Software Center or from the command line:
 +
**ubuntu-restricted-extras
 +
**libdvdread4 (if you want DVD playback)
 +
**vlc (optional)
 +
 
 +
To install from the command line, open a terminal (Applications>Accessories>Terminal) and type or paste the following:
 +
 
 +
sudo apt-get install vlc ubuntu-restricted-extras libdvdread4
 +
 
 +
You will need to give it your password. Don't worry is nothing shows up on the screen when you are typing your password it is supposed to be this way.
 +
 
 +
When this has finished type or paste
 +
 
 +
sudo /usr/share/doc/libdvdread4/install-css.sh
 +
 
 +
This procedure adds a second media player (vlc) which will appear in Applications>Sound and Video as well as java, quicktime and some other media helpers and plugins. 
 +
 
 +
To make VLC the default player for DVD's (recommended) go to Places -> Home Folder. Click on Edit then Preferences. Then click on the Media Tab. Change the Dropdwn menu next to DVD Player to 'Open VLC media player'. It will then start automatically when you insert a DVD.
 +
 
 +
The install will ask you to agree to some licences license as well as clicking or entering ok on a couple of informational screens. You can use tab and the arrow keys to navigate. The chose options will be  highlighted in red. Click Enter to proceed.  The installation may appear to stall part way through.  Be patient.  Flash is only installed with 10.04.
 +
 
 +
== Problems ==
 +
*vlc has no installation candidate
 +
::Make sure that the multiverse box is checked in System>Administration>Software Sources
 +
*"lock file"
 +
::If you get a message saying that another package manager is running, first make sure you have closed Synaptic and are not running apt-get in another terminal window.  If you still get the error, run the following command and try again:
 +
sudo rm /var/lib/dpkg/lock
 +
 
 +
*Occasionally Adobe updates their version of flash without changing the name of the file.  In this case the flashplugin-nonfree package will download the flash installer, but not install it.  (Test by going to youtube.com) The installer can be found in /var/cache/flashplugin-nonfree, or follow the tar.gz method at [[install flashplayer|this page]].
 +
*Occasionally rebooting is necessary before things actually work
 +
*Installing Java will not work if you do not agree to the license terms, so if java does not work you should try reinstalling and making sure of the license agreement.  Test it by going to http://java.sun.com/applets/other/BouncingHeads.
 +
*Run "VLC" in Terminal to return error messages if something is not working correctly.  If VLC launches correctly, you're good to go.
 +
 
 +
==Legal Issues==
 +
The legal status of libdvdcss2 is questionable, since it has never been brought to court, but some people believe it could be.  Check out [http://ubuntucat.wordpress.com/2007/05/28/the-legality-or-illegality-of-w32codecs-and-libdvdcss2/ this link] for a discussion, or the Wikipedia article on [[wikipedia:libdvdcss|libdvdcss]]  
 +
 
 +
==Other links==
 +
*[https://help.ubuntu.com/community/RestrictedFormats RestrictedFormats - Community Ubuntu Documentation]
 +
 
 +
==Package Contents ([x]ubuntu-restricted-extras) ==
 +
 
 +
* adobe-flashplugin [i386]
 +
* Adobe Flash Player plugin installer
 +
* web browser plugin based on OpenJDK and IcedTea to execute Java applets
 +
* ffmpeg codec library
 +
* The KDE CD/DVD burning application library - extra decoders
 +
* An MP3 encoding library
 +
* MP3 Plugin for MusicBrainz tagging library
 +
* MPEG-related plugins for libxine1
 +
* Installer for Microsoft TrueType core fonts
 +
* Unarchiver for .rar files (non-free version)
  
Select 'media' along the left-side menu, and scroll down to the field marked "dvd device: device used for DVD playback".
 
  
Type /dev/hdd into that field.
 
  
  
 
[[Category:Tech support]]
 
[[Category:Tech support]]
 +
[[Category:Build]]

Latest revision as of 15:18, 5 March 2013

This page in Spanish: Multimedia and DVDs in Ubuntu (Español)

Since downloading some of the following libraries may violate some Digital Millenium Copyright laws, this wiki page is for educational purposes only. Anyone who follows these directions for their computer does so at their own risk.


Instructions for Ubuntu 12.04

NOTE: Please make sure that sure to check the "multiverse" box under Menu -> Ubuntu Software Center -> Edit -> Software Sources before you begin. This is what it should look like (in Ubuntu 12.04) (though yours is probably gray in color).

Software-sources.png

In order to make Multimedia and DVDs work in Ubuntu, you need to add some additional software. This software is not installed by default because of licensing and legal issues.

  • Make sure you are connected to the Internet
  • Install the following packages, either from the Ubuntu Software Center or from the command line:
    • xubuntu-restricted-extras
    • libdvdread4 (if you want DVD playback)
    • vlc (optional)

GUI

Open the Ubuntu Software Center form the main menu and type the name of the applications in the search box that appears on the right hand side under 'All Software'

Command Line Installation

To install from the command line, open a terminal (Applications>Accessories>Terminal) and type or paste the following:

sudo apt-get install vlc ubuntu-restricted-extras libdvdread4

You will need to give it your password. Don't worry is nothing shows up on the screen when you are typing your password it is supposed to be this way.


Enabling DVD Playback

There is a final stage before DVD playback is enabled. type

Open a terminal (Menu -> Accessories-> Terminal Emulator)

sudo /usr/share/doc/libdvdread4/install-css.sh

followed by the Enter key.

This procedure adds a second media player (vlc) which will appear in Applications>Sound and Video as well as java, quicktime and some other media helpers and plugins.

To make VLC the default player for DVD's (recommended) open a terminal and type:

thunar-volman --configure

then go to Multimedia tab and change the Video CDS/DVDs command box to read

vlc dvd://%d

if you want it to open in full screen use

vlc -f dvd://%d  

The install will ask you to agree to some licences license as well as clicking or entering ok on a couple of informational screens. You can use tab and the arrow keys to navigate. The chose options will be highlighted in red. Click Enter to proceed. The installation may appear to stall part way through. Be patient.

Instructions for Ubuntu 10.04

NOTE: Please make sure that sure to check the "multiverse" box under system ---> administration ----> software sources before you begin. This is what it should look like (in Ubuntu 10.04) Software-sources.png

In order to make Multimedia and DVDs work in Ubuntu, you need to add some additional software. This software is not installed by default because of licensing and legal issues.

  • Make sure you are connected to the internet
  • Install the following packages, either from the Ubuntu Software Center or from the command line:
    • ubuntu-restricted-extras
    • libdvdread4 (if you want DVD playback)
    • vlc (optional)

To install from the command line, open a terminal (Applications>Accessories>Terminal) and type or paste the following:

sudo apt-get install vlc ubuntu-restricted-extras libdvdread4

You will need to give it your password. Don't worry is nothing shows up on the screen when you are typing your password it is supposed to be this way.

When this has finished type or paste

sudo /usr/share/doc/libdvdread4/install-css.sh

This procedure adds a second media player (vlc) which will appear in Applications>Sound and Video as well as java, quicktime and some other media helpers and plugins.

To make VLC the default player for DVD's (recommended) go to Places -> Home Folder. Click on Edit then Preferences. Then click on the Media Tab. Change the Dropdwn menu next to DVD Player to 'Open VLC media player'. It will then start automatically when you insert a DVD.

The install will ask you to agree to some licences license as well as clicking or entering ok on a couple of informational screens. You can use tab and the arrow keys to navigate. The chose options will be highlighted in red. Click Enter to proceed. The installation may appear to stall part way through. Be patient. Flash is only installed with 10.04.

Problems

  • vlc has no installation candidate
Make sure that the multiverse box is checked in System>Administration>Software Sources
  • "lock file"
If you get a message saying that another package manager is running, first make sure you have closed Synaptic and are not running apt-get in another terminal window. If you still get the error, run the following command and try again:
sudo rm /var/lib/dpkg/lock
  • Occasionally Adobe updates their version of flash without changing the name of the file. In this case the flashplugin-nonfree package will download the flash installer, but not install it. (Test by going to youtube.com) The installer can be found in /var/cache/flashplugin-nonfree, or follow the tar.gz method at this page.
  • Occasionally rebooting is necessary before things actually work
  • Installing Java will not work if you do not agree to the license terms, so if java does not work you should try reinstalling and making sure of the license agreement. Test it by going to http://java.sun.com/applets/other/BouncingHeads.
  • Run "VLC" in Terminal to return error messages if something is not working correctly. If VLC launches correctly, you're good to go.

Legal Issues

The legal status of libdvdcss2 is questionable, since it has never been brought to court, but some people believe it could be. Check out this link for a discussion, or the Wikipedia article on libdvdcss

Other links

Package Contents ([x]ubuntu-restricted-extras)

  • adobe-flashplugin [i386]
  • Adobe Flash Player plugin installer
  • web browser plugin based on OpenJDK and IcedTea to execute Java applets
  • ffmpeg codec library
  • The KDE CD/DVD burning application library - extra decoders
  • An MP3 encoding library
  • MP3 Plugin for MusicBrainz tagging library
  • MPEG-related plugins for libxine1
  • Installer for Microsoft TrueType core fonts
  • Unarchiver for .rar files (non-free version)