Page 1 of 2

Watching DVD's in Fedora 7 now Ubuntu 7.10

Posted: Mon Oct 08, 2007 11:28 pm
by lex-ington
I am running into problems playing DVD"s on my 3rd system.

I used Fedora 7 since I am now familiar with the Yum repo's and such, and the Totem player that comes with Fedora supposed to take care of DVD playback (supposedly), but to no avail.

I have installed all the parts of gstreamer . . I have installed VLC and its libdvdcss file . . . .I installed Xine and its plug-ins . . . . . . nothing.

Could it be that my board is based on the AMD 690G chipset? Is there anyone with an idea on how to fix this problem?

Thanks.

I also have my Leadtek Winsfast TV Expert2000 installed . . . if that makes a difference.

Posted: Mon Oct 08, 2007 11:33 pm
by bitvector
When you say "...nothing" what exactly is the problem? Do you get any error message?

libdvdcss is the part you need for encrypted DVDs.

If the DVD drive is brand new, you may need to set the region code before it will play anything. Use the regionset util. I ran into this problem with a brand new laptop: I knew I had everything set up right, but it wouldn't play the DVD until I set the region code for the first time.

Posted: Mon Oct 08, 2007 11:51 pm
by lex-ington
Xine is saying the DVD region is set to 1 - which is Canada.

Totem says I don't have the rights to play the media, and Xine says the same thing pretty much . . . it also says "Error reading NAV packet".

VLC just won't show anything.

Posted: Tue Oct 09, 2007 12:02 am
by bitvector
lex-ington wrote:
Totem says I don't have the rights to play the media, and Xine says the same thing pretty much . . . it also says "Error reading NAV packet".

To me that sounds like a libdvdcss problem. When you hit the DVD button to load the disc, what output do you get (on console -- run Xine from a terminal to see)?

mine shows something like this:
libdvdread: Using libdvdcss version 1.2.9 for DVD access

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000124

Posted: Tue Oct 09, 2007 8:30 am
by lex-ington
would it have something to do with the tv-tuner card I have in there?

Is it an automatic listing in the terminal window?

Posted: Tue Oct 09, 2007 9:28 am
by lex-ington
O.K. - I just ran the Xine-check command in the terminal window and got this:

[root@localhost ~]# xine-check
Please be patient, this script may take a while to run...
[OUCH!!] You're running me with root permissions?
         You should definitely run xine as normal user, not root. Running it as
         root will expose you to some severe security issues.
         This script should run as the same user that you would use to run
         xine. If you run me as root (as you currently are), I cannot check
         if your real-life user has sufficient permissions...
         Unless you want to recheck something with root permissions, you should
         abort me now (press Ctrl-C) and run me from your usual account.
         press <enter> to continue...

[ good ] you're using Linux, doing specific tests
[ good ] looks like you have a /proc filesystem mounted.
[ good ] You seem to have a reasonable kernel version (2.6.22.9-91.fc7)
[ good ] intel compatible processor, checking MTRR support
[ good ] you have MTRR support and there are some ranges set.
[ good ] found the player at /usr/bin/xine
[ good ] /usr/bin/xine is in your PATH
[ good ] found /usr/bin/xine-config in your PATH
[ good ] plugin directory /usr/lib64/xine/plugins/1.1.7 exists.
[ good ] found unknown plugin: xineplug_flac.so
[ good ] found unknown plugin: xineplug_wavpack.so
[ good ] found input plugins
[ good ] found demux plugins
[ good ] found decoder plugins
[ good ] found video_out plugins
[ good ] found audio_out plugins
[ good ] skin directory /usr/share/xine/skins exists.
[ good ] found logo in /usr/share/xine/skins
[ good ] I even found some skins.
[ good ] /dev/cdrom points to /dev/scd0
[ good ] /dev/dvd points to /dev/scd0
[ hint ] Your DVD drive seems not to be attached via ATAPI.
         This might be due to the use of an ide-scsi emulation.
         If you really have a SCSI DVD drive, your SCSI controller is likely
         to do perfect DMA, so there's no reason to worry about this.
         However, if you're using ide-scsi, there is a chance that DMA is
         disabled for the DVD drive. Moreover, I don't know how to enable
         DMA in that case, so you probably have to live with some performance
         loss. (FIXME: check for /proc/ide, provide solution)
         press <enter> to continue...

[ good ] found xvinfo: X-Video Extension version 2.2
[ hint ] Your X server doesn't support YV12 overlays.
         That means xine will have to do color space transformation and scaling
         in software, which is quite CPU intensive. Maybe upgrading your
         X server will help here.
         If you have an ATI card, you'll find accelerated X servers on
         http://www.linuxvideo.org/gatos/
         press <enter> to continue...

[ hint ] Your X server doesn't support YV12 overlays.
         That means xine will have to do color space transformation and scaling
         in software, which is quite CPU intensive. Maybe upgrading your
         X server will help here.
         If you have an ATI card, you'll find accelerated X servers on
         http://www.linuxvideo.org/gatos/
         press <enter> to continue...

[ hint ] Your X server doesn't have any XVideo support...
         XVideo is an X server extension introduced by XFree86 4.x. This
         extension provides access to hardware accelerated color space
         conversion and scaling, which gives a great performance boost.
         If you have a fast (>1GHz) machine, you may be able to watch all
         kinds of video, anyway. You will waste lots of CPU cycles, though...
         press <enter> to continue...

[root@localhost ~]#


how bad is it?

Posted: Tue Oct 09, 2007 9:50 am
by notfred
Looks like you need to try the ATI binary driver to get things like XVideo support. I wouldn't even try to play any video until I had XVideo support working.

Posted: Tue Oct 09, 2007 9:54 am
by mattsteg
You also really should run as someone other than root.

Posted: Tue Oct 09, 2007 9:57 am
by notfred
Actually, that's a point, if you've logged in as a normal user and are now running as root, it might not be able to access some of the video card stuff which may be giving you spurious errors.

Posted: Tue Oct 09, 2007 10:05 am
by lex-ington
I always login as root actually. . . . I haven't setup a secondary user.

Posted: Tue Oct 09, 2007 11:34 am
by mattsteg
lex-ington wrote:
I always login as root actually. . . . I haven't setup a secondary user.
That's unwise in general. root's really best left for system administration and for sometimes for testing stuff that isn't working for other users. There's no need to open yourself up like that on a regular basis.

Posted: Tue Oct 09, 2007 1:42 pm
by nightmorph
--

Posted: Tue Oct 09, 2007 1:42 pm
by lex-ington
I created a secondary user and am now running out of that. I pulled the tv-tuner card and had Yum install the ATi drivers properly. I also had Yum install the mplayer program as well. . . . . .all to no avail. :cry:

I now have an error from xine saying the source can't be read.

Here is the wording from the xine-check again:
/dev/cdrom points to /dev/scd0
[ good ] /dev/dvd points to /dev/scd0
[ hint ] Your DVD drive seems not to be attached via ATAPI.
         This might be due to the use of an ide-scsi emulation.
         If you really have a SCSI DVD drive, your SCSI controller is likely
         to do perfect DMA, so there's no reason to worry about this.
         However, if you're using ide-scsi, there is a chance that DMA is
         disabled for the DVD drive. Moreover, I don't know how to enable
         DMA in that case, so you probably have to live with some performance
         loss. (FIXME: check for /proc/ide, provide solution)
         press <enter> to continue...


what can go wrong now . . . :evil:

and this is what I get when I type in "vlc":

[HTPC@localhost ~]$ vlc
VLC media player 0.8.6c Janus
libdvdnav: Using dvdnav version 0.2.1cvs from http://dvd.sf.net
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: BACKYARDIGANS_VOLCANO
libdvdnav: DVD Serial Number: 363F5146
libdvdnav: DVD Title (Alternative): BACKYARDIGANS_VOLCANO
libdvdnav: Unable to find map file '/home/HTPC/.dvdnav/BACKYARDIGANS_VOLCANO.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
libdvdnav: Suspected RCE Region Protection!!!
libdvdnav: Suspected RCE Region Protection!!!
[00000311] main playlist: nothing to play




any ides is much appreciated!!!

Posted: Tue Oct 09, 2007 2:20 pm
by bitvector
lex-ington wrote:
any ides is much appreciated!!!


Like I said earlier, it sounds like a libdvdcss problem. The "libdvdread: Encrypted DVD support unavailable." output shows that libdvdcss is not being found.

Posted: Tue Oct 09, 2007 2:32 pm
by lex-ington
bitvector wrote:
lex-ington wrote:
any ides is much appreciated!!!


Like I said earlier, it sounds like a libdvdcss problem. The "libdvdread: Encrypted DVD support unavailable." output shows that libdvdcss is not being found.


I installed the libdvdcss through the Yum extender doing a specific search for libdvdcss. I picked all that applied and installed. This is the errors I get now:

[HTPC@localhost ~]$ vlc
VLC media player 0.8.6c Janus
libdvdnav: Using dvdnav version 0.2.1cvs from http://dvd.sf.net
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdnav: DVD Title: BACKYARDIGANS_VOLCANO
libdvdnav: DVD Serial Number: 363F5146
libdvdnav: DVD Title (Alternative): BACKYARDIGANS_VOLCANO
libdvdnav: Unable to find map file '/home/HTPC/.dvdnav/BACKYARDIGANS_VOLCANO.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000012c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000247
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000002b7
libdvdread: Elapsed time 1
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00000328
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00000565
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x000005fa
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_03_1.VOB (0x000005fa)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x001f010b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x001f0661
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x001f0d99
libdvdread: Elapsed time 9
libdvdread: Found 5 VTS's
libdvdread: Elapsed time 10
libdvdnav: Suspected RCE Region Protection!!!
libdvdnav: ifoRead_TITLE_VOBU_ADMAP vtsi failed
[00000322] dvdnav demuxer error: cannot set title (can't decrypt DVD?)
libdvdread: Invalid title IFO (VTS_03_0.IFO).
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_03_1.VOB (0x000005fa)!!
[00000322] dvdread demuxer error: read failed for block 0
[00000311] main playlist: nothing to play
libdvdread: Invalid title IFO (VTS_03_0.IFO).
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_03_1.VOB (0x000005fa)!!
[00000338] dvdread demuxer error: read failed for block 0
[00000311] main playlist: nothing to play

(.:5044): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(.:5044): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(.:5044): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(.:5044): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(.:5044): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(.:5044): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
[00000311] main playlist: stopping playback
[HTPC@localhost ~]$


Posted: Tue Oct 09, 2007 2:51 pm
by mattsteg
Have you tried other titles?

Posted: Tue Oct 09, 2007 2:58 pm
by Vrock
I thought it was illegal to play DVDs on Linux?

Posted: Tue Oct 09, 2007 3:00 pm
by king_kilr
Vrock wrote:
I thought it was illegal to play DVDs on Linux?

What's illegal(as per the DMCA) is to break the CSS encryption(which is necessary to play them), lex-ington is in Canada so it's immaterial(unless they have some law that I'm not aware of).

Posted: Tue Oct 09, 2007 3:04 pm
by nightmorph
--

Posted: Tue Oct 09, 2007 3:09 pm
by Nitrodist
Vrock wrote:
I thought it was illegal to play DVDs on Linux?


Only with DeCSS. By that I mean the method that DeCSS uses.

Comparison with DeCSS

libdvdcss is not to be confused with DeCSS. While DeCSS uses a cracked DVD player key to perform authentication, libdvdcss uses a generated list of possible player keys. If none of them work (for instance, when the DVD drive enforces region coding) a brute force algorithm is tried so the region code of a DVD is ignored. Unlike DeCSS, libdvdcss has never been fought over in a courtroom, in part because Section 1201(f) of the Digital Millennium Copyright Act authorizes such circumvention for purposes of software interoperability.

Posted: Tue Oct 09, 2007 3:10 pm
by Vrock
Ah I see, thanks.

Posted: Tue Oct 09, 2007 4:12 pm
by lex-ington
mattsteg wrote:
Have you tried other titles?


now why didn't I think of that :-?

But if it is disc specific, how would I solve that - cause this machine HAS to play children's DVD's too.

Posted: Tue Oct 09, 2007 4:16 pm
by mattsteg
lex-ington wrote:
mattsteg wrote:
Have you tried other titles?


now why didn't I think of that :-?

But if it is disc specific, how would I solve that - cause this machine HAS to play children's DVD's too.
Well, you could probably survive if one disc out of everything doesn't work. Also, is the disc known-good? I've gotten a faulty DVD or 2 before (and moved the earth trying fruitlessly to get one to work on a linux machine before realizing "oh crap, it's just a bad disc")

Posted: Tue Oct 09, 2007 7:13 pm
by lex-ington
I have tried 3 more DVD's thus far and they all work fine using VLC. . . . gatta fix the sound level though . . . . its very low . . . .

Xine stutters alot.

Posted: Tue Oct 09, 2007 7:22 pm
by bitvector
The stuttering is probably since you don't have the XVideo extension supported with whatever X drivers you are using. So it has to resort to drawing the pixels to the screen like a picture rather than using hardware overlays.

You should probably try giving the fglrx drivers from the livna repos a spin. If you can get the Xv extension working, you'll really save a ton of wasted CPU power when watching video.

Posted: Tue Oct 09, 2007 7:37 pm
by lex-ington
bitvector wrote:
The stuttering is probably since you don't have the XVideo extension supported with whatever X drivers you are using. So it has to resort to drawing the pixels to the screen like a picture rather than using hardware overlays.

You should probably try giving the fglrx drivers from the livna repos a spin. If you can get the Xv extension working, you'll really save a ton of wasted CPU power when watching video.


But . . . . I did that . . . . at least that's where the fglrx drivers came from . . .I think.

I have the livna repositories setup in the Yum Extender to display everything. Guess I have to go and look it over again.. :-?

Edit: Yum is saying that I have the kmod-fglrx and the amd proprietary drivers (version 8.40.4) are installed.???

Posted: Tue Oct 09, 2007 7:44 pm
by bitvector
lex-ington wrote:
But . . . . I did that . . . . at least that's where the fglrx drivers came from . . .I think.

Sorry, I was going by your earlier xine-check output which says "Your X server doesn't have any XVideo support... " If that output is no longer current (after driver changes), then disregard.

I have to ask, though... after you installed the fglrx drivers, did you edit your xorg.conf to actually use the fglrx driver (instead of ati or radeon or vesa)?

Posted: Tue Oct 09, 2007 8:04 pm
by lex-ington
bitvector wrote:
lex-ington wrote:
But . . . . I did that . . . . at least that's where the fglrx drivers came from . . .I think.

Sorry, I was going by your earlier xine-check output which says "Your X server doesn't have any XVideo support... " If that output is no longer current (after driver changes), then disregard.

I have to ask, though... after you installed the fglrx drivers, did you edit your xorg.conf to actually use the fglrx driver (instead of ati or radeon or vesa)?


I didn't know I had to do that. I am googling how to do that right now. Hopefully I understand what they're talking about.

Posted: Tue Oct 09, 2007 8:22 pm
by bitvector
Edit /etc/X11/xorg.conf

Find a section in there:
Section "Device"
...
        Driver          "<whatever>"
...

It'll probably be set to "vesa" or "radeon" or "ati" currently. Just edit that file and change it to "fglrx" so it will use the accelerated driver. Then restart X.

Posted: Tue Oct 09, 2007 8:40 pm
by lex-ington
I found it . . .(I love accessing techreport from two computers at the same time) . . . . here it is:

# Xorg configuration created by system-config-display

Section "ServerLayout"
   Identifier     "single head configuration"
   Screen      0  "Screen0" 0 0
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option       "XkbModel" "pc105"
   Option       "XkbLayout" "us"
EndSection

Section "Device"
   Identifier  "Videocard0"
   Driver      "vesa"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Videocard0"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
      Modes    "1280x1024" "1280x960" "1280x800" "1280x720" "1152x864" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection


Do I change the device and the driver?