From owner-freebsd-multimedia@FreeBSD.ORG Thu Jun 10 13:07:04 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA45B16A4CE for ; Thu, 10 Jun 2004 13:07:04 +0000 (GMT) Received: from infor.ck.tp.edu.tw (infor.ck.tp.edu.tw [203.64.26.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98F4543D5F for ; Thu, 10 Jun 2004 13:07:04 +0000 (GMT) (envelope-from llwang@infor.ck.tp.edu.tw) Received: by infor.ck.tp.edu.tw (Postfix, from userid 1001) id 90529927B; Thu, 10 Jun 2004 21:06:57 +0800 (CST) Date: Thu, 10 Jun 2004 21:06:57 +0800 From: "Li-Lun Wang (Leland Wang)" To: freebsd-multimedia@freebsd.org Message-ID: <20040610130657.GA74467@Athena.infor.org> References: <20040603163955.GA8864@Athena.infor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20040603163955.GA8864@Athena.infor.org> User-Agent: Mutt/1.5.5.1i cc: llwang@infor.org Subject: Re: Playing DVD with USB DVD device X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 13:07:04 -0000 -----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: 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-----