Date: Thu, 10 Jun 2004 21:06:57 +0800 From: "Li-Lun Wang (Leland Wang)" <llwang@infor.org> To: freebsd-multimedia@freebsd.org Cc: llwang@infor.org Subject: Re: Playing DVD with USB DVD device Message-ID: <20040610130657.GA74467@Athena.infor.org> In-Reply-To: <20040603163955.GA8864@Athena.infor.org> References: <20040603163955.GA8864@Athena.infor.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Now I think that the bad performance results from something related to mplayer rather than FreeBSD. I noticed that the rate 1.000MB/s is hard-coded into umass.c. It seems that this rate does not really mean the actual speed and is only some information for cam_xpt.c to show in xpt_announce_periph(). When I use xine instead of mplayer, my DVD plays perfactly well. I suspected that this is caused by the difference between libdvdread and mplayer's internal dvd-read routine, but the performance is equally bad after I rebuild mplayer with -DWITH_LIBDVDREAD. One problem of using xine is that it is less stable than mplayer, but I think I will be using xine to play DVDs for now. I provide some details here in case someone is interested in improving mplayer. When data are present in mplayer's cache, the video and audio keep freezing as if I am playing from a very slow source. When mplayer finally runs out of data in the cache (or when the video and audio run out of sync? I don't know the actual case), I lose the audio, but the video plays much better. On Fri, Jun 04, 2004 at 12:39:55AM +0800, Li-Lun Wang (Leland Wang) wrote: > I am playing DVD with a USB DVD-ROM using mplayer. If I use > > # mplayer dvd://1 > > it does work but it is so slow that it is unacceptable. The transfer > rate is only a little more than 1MB/sec, and this does not seem to > be right for I am using USB 2.0. I found the following in the dmesg > when I plug the DVD device: > > umass0: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, addr 2 > cd0 at umass-sim0 bus 0 target 0 lun 0 > cd0: <NU CDRW/DVD SBW242U U301> Removable CD-ROM SCSI-0 device > cd0: 1.000MB/s transfers > > I don't know why the system says cd0 is only 1.000MB/s, and I don't > konw whether this is the cause of the bad performance in playing DVD. > If I mount the DVD and use > > $ mplayer /cdrom/video_ts/*.vob > > the performance is dramatically better. I don't know whether the > improvement results from the use of system cache or from some real > improvement in the transfer rate or from both. However, this does not > work for region-code protected DVDs. I tried to use > > # mplayer -dvdauth /dev/cd0 /cdrom/video_ts/*.vob > > as suggested by the manual page of mplayer but failed. I kept getting > > DVD: opening libcss.so as libcss.so ... > DVD: dlopen: Shared object "libcss.so" not found > Error in DVD auth... > > Exiting... (Fatal error) > > Since libcss seem to be no longer available, does anyone know how to > solve this? Can't libdvdcss be used instead? Any suggestions? > > Sincerely, > Leland Wang -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFAyFzxCQM7t5B2mhARAmCuAJ4nM23u0rud5/2pNa9wkNxmt6CuegCbBYgF IFS6sYMDAF6UOuaKZsA637s= =vSk5 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040610130657.GA74467>