View previous topic :: View next topic |
Author |
Message |
disciplezero n00b

Joined: 23 Mar 2003 Posts: 33
|
Posted: Sat Apr 22, 2006 4:25 pm Post subject: Another mplayer problem |
|
|
I've been having problems with mplayer lately. Some DVDs work fine, others have problems. I just found a DVD that reliably fails early on. What happens is that when playing, it hits a certain point (the same point every time) and simply locks up. dmesg shows a serries of these errors (depending on how long I let it sit):
Code: |
hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
hdc: media error (bad sector): error=0x30 { LastFailedSense=0x03 }
ide: failed opcode was: unknown
end_request: I/O error, dev hdc, sector 1333868
Buffer I/O error on device hdc, logical block 333467
|
I've tried numerous things, disabling dma, enabling dma. Taking out sse and sse2 in mplayer. Activating the Task IOCTL. As of yet, nothing has had any effect. Just on a lark I ran mplayer with 'mplayer -nosound -ao null -vo aa dvd://1' just to see if it was related to either of those drivers. Still, no luck. The last thing I have to try is switching from ATAPI to ide-scsi. Any other ideas? Build options listed below..
Code: |
media-video/mplayer-1.0.20060415 -3dfx -3dnow -3dnowext +X +aac +aalib +alsa (-altivec) -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -dga +directfb -doc +dts +dv -dvb +dvd +dvdread -edl +encode -esd +fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack -joystick +jpeg +libcaca +lirc -live -livecd -lzo +mad -matroska -matrox +mmx +mmxext -musepack -nas +nvidia -openal +opengl +oss +png -real -rtc +samba +sdl -sse -sse2 +svga -tga +theora +truetype -unicode +v4l +v4l2 +vorbis +win32codecs -x264 -xanim -xinerama +xmms +xv +xvid +xvmc
|
Code: |
CFLAGS="-O2 -mtune=i686 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CXXFLAGS="-O2 -mtune=i686 -pipe -fomit-frame-pointer"
|
If anything else will help, let me know. |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55437 Location: 56N 3W
|
Posted: Sat Apr 22, 2006 4:39 pm Post subject: |
|
|
disciplezero,
mplayer is claiming it can't read the disc because of a bad sector.
Its maybe a scratch, dirt or something else.
Can the kernel read it ?
Code: | dd if=/dev/hdc of=/dev/null bs=32k | will read the disk and throw the data away.
It will stop the first error. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
disciplezero n00b

Joined: 23 Mar 2003 Posts: 33
|
Posted: Sat Apr 22, 2006 4:59 pm Post subject: |
|
|
Yeah, I tried that earlier. It only reads 51 records. This time its a different error though.
Code: |
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
ide: failed opcode was: unknown
end_request: I/O error, dev hdc, sector 3760
|
I get that at sector 3264, and every 8 sectors up (I doubt that helps though).
The weird thing, I forgot to mention, is that xine plays fine. It will play through that spot and not display an errors on the kernel at all! |
|
Back to top |
|
 |
disciplezero n00b

Joined: 23 Mar 2003 Posts: 33
|
Posted: Sat Apr 22, 2006 5:32 pm Post subject: |
|
|
This is even more fun... I ran xine, just to make sure it was still working fine. It is. However, I ran dd again... this time it read 4399 records... I'm running it again to double check a thought, yup, 4399 records. Is it possible that mplayer isn't properly unlocking the dvd protections, where xine is?
It looks like the dvd-rom doesn't allow reading from a protected dvd, until its been unlocked, maybe I should run dvdcss in a different mode? |
|
Back to top |
|
 |
disciplezero n00b

Joined: 23 Mar 2003 Posts: 33
|
Posted: Sat Apr 22, 2006 6:04 pm Post subject: |
|
|
If I eject the dvd and put it in again... dd again only reads the first 51 records. This definately seems like the drive is doing protections. Is there a way to disable that? |
|
Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Sat Apr 22, 2006 6:21 pm Post subject: |
|
|
disciplezero wrote: | Is it possible that mplayer isn't properly unlocking the dvd protections, where xine is? |
Yes, that's the case. The DVDs are most likely ARccOS protected. The protection works by creating bad sectors on the disc. And yes, mplayer can't deal with them, while xine can.
The only solution that maybe works is using the dvdnav patch for mplayer (search the forum for the multimedia overlay it has the patch included). |
|
Back to top |
|
 |
disciplezero n00b

Joined: 23 Mar 2003 Posts: 33
|
Posted: Sat Apr 22, 2006 6:36 pm Post subject: |
|
|
Alright, thanks. Not really what I was hoping to hear... but I can live with that. |
|
Back to top |
|
 |
|