Don't use raw UDF access for mounted non-encrypted DVDs
I'm attaching a patch applied to xine's libdvdnav that is designed to let libdvdnav decide to use the file access rather than the raw access to non-encrypted DVDs if they are mounted, to workaround buggy DVDs where the filesystem is simple ISO9660 rather than UDF. Before you shoot at me, I am not the author of this patch, and I don't like it at all: first it tries to make transparent an opaque type of another library, which is bad on its own, but it also ends up vastly depending on the ABI remaining constant in libdvdcss, which is not something that is guaranteed at all since it's dynamic loaded. I'm sending this just for knowledge, I'd like to see if someone else has a clue how to implement this same feature in a less nasty way. -- Diego "Flameeyes" Pettenò http://farragut.flameeyes.is-a-geek.org/
Diego 'Flameeyes' Pettenò wrote:
I'm attaching a patch applied to xine's libdvdnav that is designed to let libdvdnav decide to use the file access rather than the raw access to non-encrypted DVDs if they are mounted, to workaround buggy DVDs where the filesystem is simple ISO9660 rather than UDF.
Before you shoot at me, I am not the author of this patch, and I don't like it at all: first it tries to make transparent an opaque type of another library, which is bad on its own, but it also ends up vastly depending on the ABI remaining constant in libdvdcss, which is not something that is guaranteed at all since it's dynamic loaded.
I'm sending this just for knowledge, I'd like to see if someone else has a clue how to implement this same feature in a less nasty way.
naturally in this form it's unacceptable. In dvdread there's some support for lowercase files/dir, can you try mplayer -dvd-device /mnt/dvd dvdnav:// after having mounted the image? -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Fai crescere i tuoi sogni. Scegli il prestito fino a 5.000 euro. * Rate da 20 euro Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?midc33&d-4
On Tue, 17 Apr 2007 15:18:49 +0200 Nico Sabbi <nsabbi@email.it> wrote:
In dvdread there's some support for lowercase files/dir, can you try mplayer -dvd-device /mnt/dvd dvdnav:// after having mounted the image?
Beside not having mplayer at hand, the problem is not that libdvdnav doesn't read mounted devices, but as far as I can tell it still prefers the raw UDF access even if the files are available; maybe just changing this should be enough, so that there's no need to fiddle with the checks on css. But I don't know libdvdnav internals well enough to help with this, I'm sorry :/ -- Diego "Flameeyes" Pettenò http://farragut.flameeyes.is-a-geek.org/
Diego 'Flameeyes' Pettenò wrote:
On Tue, 17 Apr 2007 15:18:49 +0200 Nico Sabbi <nsabbi@email.it> wrote:
In dvdread there's some support for lowercase files/dir, can you try mplayer -dvd-device /mnt/dvd dvdnav:// after having mounted the image?
Beside not having mplayer at hand, the problem is not that libdvdnav doesn't read mounted devices, but as far as I can tell it still prefers the raw UDF access even if the files are available; maybe just changing this should be enough, so that there's no need to fiddle with the checks on css. But I don't know libdvdnav internals well enough to help with this, I'm sorry :/
no go. Maybe implement something like DVDCSS_METHOD=fail in libdvdcss
participants (3)
-
Diego 'Flameeyes' Pettenò -
Nico Sabbi -
Nico Sabbi