LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help with Xine playing DVD's (https://www.linuxquestions.org/questions/linux-software-2/need-help-with-xine-playing-dvd%27s-244873/)

wswartz 10-19-2004 08:52 PM

Need help with Xine playing DVD's
 
I'm trying to play DVD's on my laptop using Xine. I'm testing with three different commercial DVD's; one works great (menus and all), one plays the FBI warning then stops with an error, a third doesn't work at all (hit play, get an error!). Here is the error those latter DVD's give me:

"The source can't be read. Maybe you don't have enough rights for this, or source doesn't contain data (e.g. not disc in drive). (Error reading NAV packet.)"

...clicking on the "More..." button reveals a few more messages. Most of these seem benign, but a series of messages say:

"audio_decoder: error, unknown buffer type: 04000000" (the number tends to change)

Based upon other suggestions from this forum and others regarding similar problems, I've taken the following steps:

- Tried xine-check from the command line. Everything returns "good". I've included the output at the bottom if it is of interest.
- I've loaded the DVD libraries:
libdvdcss
libdvdnav
libdvdplay
libdvdread
(I've even loaded the development packages like libdvdcss-devel, etc)
- I tried Mplayer: It has the same results (plays one of my DVD's but not the others)
- I tried Ogle. It plays only the audio of my first DVD and just shuts itself down when trying to play the other two.
- I checked the permissions on my dvd device:
/dev/hdc: brw-r--r--
/dev/dvd (which is linked to /dev/hdc): lrwxrwxrwx
/dev/cdrom (which is also linked to /dev/hdc): lrwxrwxrwx

Any thoughts as to why I would be having these issues?
Thanks, BS
------------------------------------

Output of xine-check:
Please be patient, this script may take a while to run...
[ 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.4.22-1.2188.nptl)
[ 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/lib/xine/plugins/1.0.0 exists.
[ good ] found unknown plugin: xineplug_flac.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/hdc
[ good ] /dev/dvd points to /dev/hdc
[ good ] DMA is enabled for your DVD drive
[ good ] found xvinfo: X-Video Extension version 2.2
[ good ] your Xv extension supports YV12 overlays (improves MPEG performance)
[ good ] your Xv extension supports YUY2 overlays
[ good ] Xv ports: YUY2 UYVY YV12 I420

linux_terror 10-19-2004 10:20 PM

What do the permissions of the .vob files look like? Could it be that they are too stringent? Don't know if you have but try playing them as root.

linux_terror

Lenard Spencer 10-19-2004 11:23 PM

I use Totem, and I have the libdvdread and libdvdcss libraries installed, and I occasionally have problems, especially when I'm trying to do too much in a session. One little trick I have done to make it straighten up and fly right is open a term window, su root, ldconfig, exit, THEN start Totem and it works fine. Still trying to figure out how and why my installations are losing track of their shared libraries. (I use both Slackware 10.0 and Mandrake 10.x and they both occasionally do it to me.) :scratch:

Hope this helps.

wswartz 10-20-2004 09:20 PM

So I tried your suggestions. I ran Xine as root and got the same results (1 out of 3 dvd's work). The permissions on the dvd's show read for everything.

I also tried loading and running Totem with the same results. The error I get with Totem is:

An error occured
The movie 'Error reading NAV packet.' could not be read..

(strange - I've never heard of a movie called 'Error reading NAV packet' and I'm not sure I'd want to watch one either!)

Any other suggestions out there?

BS

wswartz 10-20-2004 09:38 PM

This may be of some help to someone. I figured out how to get some feedback by launching the program from the command line using:

$xine --verbose

Here is the output from the point where I try to play my DVD:


gui_xine_open_and_play():
mrl: 'dvd:/',
sub 'NONE',
start_pos 0, start_time 0, av_offset 0, spu_offset 0.
xine: found input plugin : DVD Navigator
libdvdnav: Using dvdnav version 1-rc6a from http://xine.sf.net
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss debug: disc is scrambled
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key with player keys
libdvdcss debug: decrypted disc key is 1f:cb:69:0c:de
libdvdcss debug: using CSS key cache dir: /home/wswartz/.dvdcss//TWO_TOWERS_EXT_D1#2003090217375500/
libdvdcss error: failed opening raw device, continuing
libdvdnav: DVD Title: TWO_TOWERS_EXT_D1
libdvdnav: DVD Serial Number: 2f2304bb
libdvdnav: DVD Title (Alternative): TWO_TOWERS_EXTENDED
libdvdnav: Unable to find map file '/home/wswartz/.dvdnav/TWO_TOWERS_EXT_D1.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 0x00000176
libdvdcss debug: key found in cache
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00002549
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key with player keys
libdvdcss debug: decrypted disc key is 1f:cb:69:0c:de
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 0 blocks scrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_0.VOB (0x00002549)
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00061544
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key with player keys
libdvdcss debug: decrypted disc key is 1f:cb:69:0c:de
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 0 blocks scrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_1.VOB (0x00061544)!!
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00346dc4
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key with player keys
libdvdcss debug: decrypted disc key is 1f:cb:69:0c:de
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 0 blocks scrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_02_1.VOB (0x00346dc4)!!
libdvdread: Elapsed time 0
libdvdread: Found 2 VTS's
libdvdread: Elapsed time 0
xine: found demuxer plugin: DVD/VOB demux plugin
av_offset=0 pts
spu_offset=0 pts
audio_decoder: error, unknown buffer type: 02000000
audio_decoder: error, unknown buffer type: 04000000
audio_decoder: error, unknown buffer type: 01060000
libdvdnav: ifoRead_TITLE_VOBU_ADMAP vtsi failed - CRASHING
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
audio_decoder: error, unknown buffer type: 02000000
audio_decoder: error, unknown buffer type: 04000000
audio_decoder: error, unknown buffer type: 01060000
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key with player keys
libdvdcss debug: decrypted disc key is 1f:cb:69:0c:de
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 0 blocks scrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
libdvdcss error: read error
input_dvd: Error getting next block from DVD (Error reading NAV packet.)

---------------------- (ERROR) ----------------------
The source can't be read.
Maybe you don't have enough rights for this, or source doesn't contain data (e.g: not disc in drive). (Error reading NAV packet.)
------------------ (END OF ERROR) -------------------


---------------------- (ERROR) ----------------------
The source can't be read.
Maybe you don't have enough rights for this, or source doesn't contain data (e.g: not disc in drive). (Error reading NAV packet.)
------------------ (END OF ERROR) -------------------

gui_xine_open_and_play():
mrl: 'file:/usr/share/xine/skins/xine-ui_logo.mpv',
sub 'NONE',
start_pos 0, start_time 0, av_offset 0, spu_offset 0.
xine: found input plugin : file input plugin
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
xine: found demuxer plugin: Elementary MPEG stream demux plugin
av_offset=0 pts
spu_offset=0 pts

wswartz 10-28-2004 02:50 PM

Knock, Knock... Anyone home?

lonyx 10-31-2004 08:44 AM

Error cracking CSS
 
Was this prob ever solved?

I have now got the same message coming up under latest xine.

Stops the DVD playing halfway through the animated menu. Cannot progress.

wswartz 11-06-2004 09:54 AM

Nope... Still waiting and wondering if anyone out there has any thoughts.
BS

trainofsf 11-18-2004 05:24 PM

Xine and mandrake 10.0
 
Many of the DVD playback errors can be solved by following the directions on this page. Hope this helps.

http://cambuca.ldhs.cetuc.puc-rio.br/xine/

wswartz 11-20-2004 10:12 AM

Been there, done that. But thanks for your input.

BS

naraht 11-20-2004 07:24 PM

I'm betting you're having issues with macrovision encoded disks....

>_<

Adrohak 11-20-2004 08:50 PM

I can't play DVDs at all. I'm able to watch the "New Line Home Entertainment" opener for American History X, and that's it thus far. The majority of my problems are documented in this thread: http://www.linuxquestions.org/questi...hreadid=256985.

Now, what is this Macrovision, naraht? Are many DVDs encoded in such a manner?

alienz 11-29-2004 12:16 AM

I am a linux "newbie" some might say. I run amd64 3000, and spent several hours (days even) trying to get my dam dvd player to work. I really wanted to start using linux permanently, but without dvd movies on my pc well ..... I run mandrake 10. I finally figured out how to get it to work. I had downloaded xine all the xine options from my auto update feature (just basic xine stuff). I then installed 2 rpms from the ogle website which made all the difference (at least one did?). libdvdcss for x_86 from the "freshrpm" link. Next, libdvdread x_86 from the "freshrpm" link. After installing both of these my "Matrix" movie came to life. The exact names were libdvdcss-1.2.8-4.1.fc3.fr.x86_64.rpm, libdvdread-0.9.4-5.1.fc3.fr.x86_64.rpm. These plugins are currently not included in the dvd software packages due to current legal debates. I honestly hope this helps someone. Long live linux.

curuin 11-29-2004 07:17 PM

Try setting permissions on your dvd player. Find out where /dev/dvd is linked to (it will be /dev/hdX where X is a-z depending on how many ide devices you have). Then switch to root (or use sudo) and change the permissons to 1777 (chmod 1777 /dev/hdX, for example).

Try that and see if you don't have better success.

Blessings,
Curuin

reddazz 11-29-2004 08:19 PM

if you are running an rpm based distro, istall libdvdcss, win32 codecs, xine-lib (libxine) and xine-ui from the xine nightly website. All dvd's should be able to play fine (ell hopefully). By the way uninstall any xine or libdvdcss packages first.


All times are GMT -5. The time now is 01:29 AM.