LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to run/play dvd movie in Linux Mint 8? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-play-dvd-movie-in-linux-mint-8-a-790147/)

Hari_Linoob 02-19-2010 04:44 AM

How to run/play dvd movie in Linux Mint 8?
 
Hi community!

This is my second day of using Linux Mint and I have bunch of questions. Let's start with this one. I tried to play dvd movie yesterday night. I put disc in drive. And nothing happened. Like it's not in there. So I tried to double click (I'm old Windows user trying to learn new stuff) on cd/dvd disc in computer. It's unresponsive. I try right click run with application some kind of movie player. It says 'Could not open location. You might not have permission to open the file'.
So I installed VLC and did the same thing but same message appears.
So I look at google for the answer and didn't find much. And I was tired and went to sleep.

Today I wake up, turn on my laptop and surprise, surprise! There is some icon on my desktop saying 'Name of the show' (that was the dvd I was trying to open). So I double click it and there are all episodes. And I can now browse it and play any episode I want. So I say, 'hey, there must be something if I eject this dvd, and put it in again, I would have same problem as last night'. And I have. And problem is back. Now I cant play anything again. Please help.

Hari

jiobo 02-19-2010 01:45 PM

You would need to mount the DVD or CD so that you can read it. When the DVD or CD is in the drive when you boot up, then it is mounted by the init process. You can change this behaviour if you would like to.

Read the man pages for mount under iso9660. A quick way:

Code:

mount -t iso9660 /dev/dvd /media/dvd
If you have the directories /media/dvd. You can add options to the mount for read permissions and write permission for different users.

Code:

man mount

schneidz 02-19-2010 02:14 PM

^ i dont think you have to mount a dvd in order to watch it.

i never used linux mint but i always heard that media codecs are installed by default because they are based in ireland which is a non interpol country.
in a terminal, can you please show us what movie players you have installed:
Code:

which mplayer gmplayer vlc xine gxine totem
mplayer dvd://1 # would play the first chapter of a dvd using mplayer
xine dvd://1 # would play the first chapter of a dvd using xine

can someone post how to check if libdvdread libdvdnav libdvdcss is installed.

i use fedora and when i put in a dvd a pop-up asks me what i want to use to play it.

reed9 02-19-2010 02:20 PM

Quote:

Originally Posted by jiobo (Post 3869700)
You would need to mount the DVD or CD so that you can read it. When the DVD or CD is in the drive when you boot up, then it is mounted by the init process. You can change this behaviour if you would like to.

Read the man pages for mount under iso9660. A quick way:

Code:

mount -t iso9660 /dev/dvd /media/dvd
If you have the directories /media/dvd. You can add options to the mount for read permissions and write permission for different users.

Code:

man mount

That might be a workaround, but there is something else going on. Linux Mint defaults to HAL/D-BUS either automounting removable media or creating the dekstop/file manager icon, which should mount it when clicked on. The basic process should be kernel detects the media, sends message to HAL, HAL dynamically creates a mount point under /media, sends message to D-BUS aware apps, like the Nautilus File Manager, Nautilus creates a desktop icon and file manager icon. That's changing some with the new devicekit-disks and gnome-device-manager as HAL is out as of Ubuntu 10.04/Mint 9.

Why this isn't working properly I don't know. Or why it would not mount and then later finally mount itself. Insert a disc and check the output of
Code:

dmesg

reed9 02-19-2010 02:21 PM

Quote:

can someone post how to check if libdvdread libdvdnav libdvdcss is installed.
Code:

dpkg -l | grep libdvd

schneidz 02-19-2010 02:28 PM

if you got xine installed, are you able to put the dvd in and start xine and click on the dvd button ?

jiobo 02-19-2010 03:22 PM

Quote:

Originally Posted by schneidz
i dont think you have to mount a dvd in order to watch it.

Yes, you need to mount the dvd device. Either Linux will automount it, or you need to mount it! No way around that one.

EDIT: in the default install of Linux Mint 8, it should automount the DVD and ask if you want to play it. And, it will play movie DVDs with libdvdcss. It defaults to Totem 2.28.1 using GStreamer 0.10.25. You don't need Linux Mint to play movie DVDs, you need a Linux distribution with libdvdcss installed.

For those who run Linux Mint 8, there seemed to be a problem with it switching sound output devices from "Internal Audio Analog Stereo" to "HDA ATI HDMI Digital Stereo (HDMI)" in that movies would play in fast forward mode without sound when doing so with Totem. You could tell Linux Mint about this so they can fix it.

Hari_Linoob 02-20-2010 07:48 AM

Thank you all for replies.

Problem seem to be vanished. Now every time I put CD/DVD in DVD drive, Mint automatically mounts it and creates a desktop icon of the disk. I really don't know what happened the other day nor do I know how's it working now. Thanks all one more time.

Hari

Hari_Linoob 02-24-2010 06:23 PM

Hi again

Now it wouldn't mount automatically again. When I write in terminal:
Code:

mount -t iso9660 /dev/dvd /media/dvd
I get message:
Code:

mount: only root can do that
Where did I go wrong?

I have all libraries I think...

Code:

$ dpkg -l | grep libdvd
ii  libdvdcss2                            1.2.10-0.3medibuntu1                      Simple foundation for reading DVDs - runtime
ii  libdvdnav4                            4.1.3-3                                    DVD navigation library
ii  libdvdread4                          4.1.3-5ubuntu2                            library for reading DVDs


Hari

schneidz 02-25-2010 10:05 AM

Code:

sudo mount -t iso9660 /dev/dvd /media/dvd

Hari_Linoob 02-26-2010 08:25 AM

Code:

mount: mount point /media/dvd does not exist
I tried:
Code:

mkdir /media/dvd
sudo mount -t iso9660 /dev/dvd /media/dvd

I get:
Code:

mount: no medium found on /dev/sr0

schneidz 02-26-2010 09:12 AM

fyi: /dev/sr0 is the device node of your first scsi cd-rom device.
what the mount command does is make its file-tree available inside the directory /media/dvd

i think there is a program called udev which dynamically mounts removable media like usb harddrives, cd's/ dvd's ...
but for some reason it aint actin' rite ?

have you tried with more than 1 dvd; maybe its dirty or something ?

Hari_Linoob 02-26-2010 09:21 AM

yea i tried several: dvd movie, cd music and dvd with divx on it.
all act the same: if i reboot with disc that is inside dvd drive, it automatically mounts on boot.
if however i eject them and then put them back in dvd drive, they can't be mounted automatically nor manually using terminal unless i reboot with disk inside.

my cd music is playing right now, so it isn't dirt.;)

do i have udev on helena by default, or i must install it manually?

schneidz 02-26-2010 10:26 AM

i would assume so but i guess installing it again wouldnt break anytjing,
also it could be something wrong with something called hal

according to man hald
Quote:

Please also attach the output of lshal(1) in the bug report if possible (it's not possible if the hald daemon crashed). If the nature of the bug has to do with hotplugging, attach two outputs of lshal(1) - one before the device hotplug event and one after.
do this if you want to install:
sudo apt-get install udev hal hald


All times are GMT -5. The time now is 07:22 AM.