LinuxMCE Forums

General => Users => Topic started by: nicola on August 06, 2007, 09:39:20 AM

Title: Playing DVD
Post by: nicola on August 06, 2007, 09:39:20 AM
I'm using linuxmce RC1 and I have problem playing DVD.
The DVD starts playing and stop immediatly. Any hints?
Title: Re: Playing DVD
Post by: totallymaxed on August 06, 2007, 01:10:07 PM
Quote from: nicola on August 06, 2007, 09:39:20 AM
I'm using linuxmce RC1 and I have problem playing DVD.
The DVD starts playing and stop immediatly. Any hints?

Hi Nicola,

It sounds like you need to configure libdvdread3 which is the lib that allows lmce to playback DVD discs. try the following at your lmce machine;

Open a console window and type;

sudo /usr/share/doc/libdvdread3/install-css.sh <Return>

This should start the config script for libdvdread3 and then you should be able to go back into the LMCE Orbiter and play DVD's successfully. If you get an error when running the above command that says it can't find the script then try the following;

sudo apt-get install libdvdread3 <Return>
(the above line will install libdvdread3 for you... now try the line below again and it should work ok this time)

sudo /usr/share/doc/libdvdread3/install-css.sh <Return>

Hope the above gets your DVD playback working for you.

Regards

Andrew


Title: Re: Playing DVD
Post by: nicola on August 06, 2007, 02:26:52 PM
Thanks for the answer but i just find that it's not a problem of library.
I have to insert a music CD and then autoplay of DVD magically works until the next reboot.
;)
Title: Re: Playing DVD
Post by: nite_man on August 06, 2007, 04:00:19 PM
Quote from: nicola on August 06, 2007, 02:26:52 PM
Thanks for the answer but i just find that it's not a problem of library.
I have to insert a music CD and then autoplay of DVD magically works until the next reboot.
;)

Have a look into logs: DCERouter.log or pluto.log. It may give the answer why your DVD isn't played.
Title: Re: Playing DVD
Post by: nicola on August 07, 2007, 11:59:52 AM
I take a look to the log, but I don't understand what do i have to look for?
Title: Re: Playing DVD
Post by: Zaerc on August 07, 2007, 06:03:37 PM
Just guessing here, but maybe a necessary kernel module isn't loaded automagicly when the DVD is inserted, but then it is loaded when a CD is inserted.
Title: Re: Playing DVD
Post by: nite_man on August 08, 2007, 01:08:56 PM
Quote from: nicola on August 07, 2007, 11:59:52 AM
I take a look to the log, but I don't understand what do i have to look for?

Some errors or warnings can be seen in the logs when you insert DVD. DCERouter is a brain of the system. So, you may see where the command 'Play DVD' is redirected. Maybe Zaerc is right. The library to play CD/DVD is not loaded properly. But without checking of logs it's very difficult to solve that.
Title: Re: Playing DVD
Post by: kir on August 08, 2007, 01:41:00 PM
nicola, do you have this issue happening constantly or it just happened only once? when it breaks again? I don't remember any fixes between 1.1 RC1 and 0704 release for it, but I suggest you to move to the latest version if possible :)
Title: Re: Playing DVD
Post by: nicola on August 08, 2007, 10:43:27 PM
I'm currently using the official release and  I still have the issue;
it happens every time I reboot the computer and I insert a DVD before a music CD, then when the music CD is inserted once it works perfectly.
I noticed, as Zaerc suggested, that the ide_cd modules is not loaded when first inserting a DVD.
Title: Re: Playing DVD
Post by: kir on August 09, 2007, 02:32:43 PM
Can you please do the following to get and post logs?
:
1) edit /etc/pluto.conf  to enable more logging:  change line LogLevels to include 5 and 10
2) ensure that no DVD is inserted
3) start LinuxMCE and switch to KDE Desktop
4) open Konsole and do:
ls /var/log/pluto/*Disk*
to figure out the log of Disk_Drive application (one of its taks is watching of disk availability in drive). suppose the log name is
/var/log/pluto/26_Disk_Drive.log

5) run in Konsole:
tail -f /var/log/pluto/26_Disk_Drive.log | grep '^05\|^10'
this will filter only interesting logs

6) switch back to Orbiter
7) insert DVD and give it few seconds to ensure it doesn't do autoplay
8 ) switch back to KDE desktop  and pls post here output from the Konsole grepped log (from step 5) - so we can see what exactly happens
Title: Re: Playing DVD
Post by: nicola on August 12, 2007, 10:58:43 AM
Sorry for the delay here is the log:
10      08/12/07 10:46:29.050           Disk_Drive_Functions::cdrom_checkdrive status 4 inserted 0 flag: -1 duration 1186908                                                         389/1186908389 <0xb762b6d0>
10      08/12/07 10:46:29.050           Displaying on OSD: 20 VFD: 0 Disc detected in drive. <0xb762b6d0>
10      08/12/07 10:46:29.050           InternalSendCommand confirmation id 406 conf 1 resp (nil) <0xb762b6d0>
10      08/12/07 10:46:29.050           Socket::SendMessage type 1 id 406 from 26 to -2000 <0xb762b6d0>
10      08/12/07 10:46:29.056           InternalSendCommand confirmation done id 406 conf 1 resp (nil) (1) OK type 1 id 406                                                          to -2000 <0xb762b6d0>
10      08/12/07 10:46:29.056           Got a disc. Sleep a sec, then reopen. One hack to allow the disk to spin I think. <0                                                         xb762b6d0>
10      08/12/07 10:46:30.065           Can't read disc TOC. The disc is either a blank, or has a broken TOC. <0xb762b6d0>
10      08/12/07 10:46:30.066           Disk_Drive_Functions::UpdateDiscLocation device 26 type b disc -1 / (nil) <0xb762b6d                                                         0>
10      08/12/07 10:46:30.081           Socket::SendMessage type 2 id 3 from 26 to -1001 <0xb762b6d0>
10      08/12/07 10:46:30.082           InternalSendCommand queue  id 314 conf -1 resp (nil) <0xb762b6d0>
10      08/12/07 10:46:30.083           Disk_Drive_Functions::StartNbdServer --start    --quiet --exec  /bin/nbd-server --ok                                                         nodo    --pidfile       /var/run/nbd-server.18026.pid   --      18026   /dev/cdrom      -r <0xb762b6d0>
10      08/12/07 10:46:30.085           Socket::SendMessage type 1 id 314 from 26 to 27 <0xb6628b90>
10      08/12/07 10:46:33.099           Disk_Drive_Functions::cdrom_checkdrive status 4 inserted 1 flag: 4 duration 11869083                                                         93/1186908393 <0xb762b6d0>

The DVD I'm using is Matrix and I can see it once I do the manipulation i described in the earlier posts.
Title: Re: Playing DVD
Post by: kir on August 13, 2007, 05:44:10 PM
Hmm... Weird. Does this happen only with this DVD or with some other DVDs too? Is this DVD special in any sense (e.g. encrypted)?
Title: Re: Playing DVD
Post by: Zaerc on August 13, 2007, 05:57:31 PM
I wouldn't be surprised at all if this was a side effect of some kind of crappy copy "protection" sceme.
Title: Re: Playing DVD
Post by: nicola on August 13, 2007, 08:11:35 PM
It happens with all DVD and yes they are Zone protected for the Europe.
Title: Re: Playing DVD
Post by: Zaerc on August 13, 2007, 08:17:10 PM
I doubt this would be it, but I don't have any other ideas, next time could you try doing modprobe ide_cd before inserting the first DVDs?
Title: Re: Playing DVD
Post by: kir on August 13, 2007, 08:29:26 PM
What I also thinking about is if the Region is already properly set for this DVD drive? Nicola, were you using this drive with windows and was it already playing DVDs, or this is some new 'just purchased' DVD drive?
Title: Re: Playing DVD
Post by: nicola on August 14, 2007, 10:09:51 PM
The player, which is also a recorder, is on a linux only computer, it has been never used under windows and with other programs like totem works perfectly.
Title: Re: Playing DVD
Post by: kir on August 14, 2007, 10:19:50 PM
OK, can you please repeat tests with 1st time inserting DVD (no need to play, just insert and confirm it still fails) also doing
tail -f /var/log/syslog
tail -f /var/log/messages
on console to see if there will be any messages there right after insertion of DVD
Title: Re: Playing DVD
Post by: sppudzz160 on August 26, 2007, 06:38:45 AM
I am having this exact same issue. Did any find a fix yet. Other funny thing is that if i rip a cd to the HD i cannot access it. Nothing happens when i press the video menu.

Thanks
Title: Re: Playing DVD
Post by: nite_man on August 26, 2007, 04:46:56 PM
Quote from: sppudzz160 on August 26, 2007, 06:38:45 AM
I am having this exact same issue. Did any find a fix yet. Other funny thing is that if i rip a cd to the HD i cannot access it. Nothing happens when i press the video menu.

Thanks

Check availability and permissions of files in the /home/public/data/videos/. Be sure that you copied DVD in to public area not in private directory of some user in your system.