[MPlayer-cygwin] Re: Latest cvs also fails dvd's, wants libdvdread ?

Sascha Sommer saschasommer at freenet.de
Fri Jan 10 16:57:38 CET 2003


> > > Sorry I don't have a dvd drive and can't fix this :(
> > > but you may try to change line 308 of libmpdvdkit2/dvdreader.c to
> > >
> > > int cdir = open( ".", O_RDONLY | O_BINARY);
> >
> > No joy, ut I diff;d libmpdvdkit2 and found the answer in device.c line
> 132;
> >   char const *psz_device = dvdcss->psz_device;
> > which used to be
> >     char psz_dvd[7];
> >     _snprintf( psz_dvd, 7, "\\\\.\\%c:", psz_device[0] );
> >
> > So I now invoke:
> >   mplayer.exe -dvd-device \\\\.\\v: -dvd 1
> >
> > and things are back to normal, by which I mean I get audo but scrambed
> video
> > again and then
> > a52: CRC check failed!
> > a52: error at resampling
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > Encrypted VOB file (not compiled with libcss support)! Read
> > DOCS/cd-dvd.html.
> > @@@ libmpeg2 returned from sig11... (bad file?) @@@
> >
> > Sam
> >

Did you try the O_BINARY change together with your one?
The Problem is that cygwin has problems to emulate the read() call if you
don't specify
O_BINARY at open because of the dos end of lines ^M
It is fixed for files now but it might be possible that it is required for
dvds, too

S. Sommer



More information about the MPlayer-cygwin mailing list