Re: IDE DVD playback on 5.1-CURRENT

2003-10-02 Thread Martin
On Wed, 2003-10-01 at 08:24, Lars Eggert wrote:

 Your change below makes mplayer work here again, too. Did you ever
 submit it for inclusion in the ports tree?

Why? I noticed I have this problem, too, but I just added:

linkacd0rdvd

As a further rule in devfs.conf. It works fine. No need to
patch the port, in my opinion.

Here the full solution for my Thinkpad R40:

linkacd0cdrom
linkacd0dvd
linkacd0rdvd
permacd00660

You need to be in operator group to use acd0, if you
configure devfs like this.

Martin


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-10-02 Thread Lars Eggert
Martin wrote:
On Wed, 2003-10-01 at 08:24, Lars Eggert wrote:

Your change below makes mplayer work here again, too. Did you ever
submit it for inclusion in the ports tree?
Why? I noticed I have this problem, too, but I just added:

link	acd0	rdvd

As a further rule in devfs.conf. It works fine. No need to
patch the port, in my opinion.
Because it's a bug in mplayer, and should be fixed there. Mplayer should 
not second-guess the user and blindly insert an r into a perfectly 
valid device name (/dev/acd0 - /dev/racd0.)

Also, fixing the port fixes it for everybody, while this change needs to 
be made by everyone manually. (Unless you propose adding this to the 
default devfs rules.)

Lars
--
Lars Eggert [EMAIL PROTECTED]   USC Information Sciences Institute


smime.p7s
Description: S/MIME Cryptographic Signature


Re: IDE DVD playback on 5.1-CURRENT

2003-10-01 Thread Lars Eggert
Peter Kostouros wrote:
I had a similar problem when running mplayer with recent kernels. My 
problem was that although I was executing mplayer with -dvd-device 
/dev/acd0, the program was trying to open /dev/racd0. I modified 
main/libmpdvdkit2/dvd_reader.c and sure enough everything is OK. I hope 
the following helps:
Your change below makes mplayer work here again, too. Did you ever
submit it for inclusion in the ports tree?
(Aside: The strange thing is that a unpatched mplayer worked fine until
this afternoon, too. Between playing one DVD and the next, the break
occured. This is a new drive. I think I remember the drives having some
grace period before they lock in a region code? Could this matter?)
Lars

#if defined(SYS_BSD)
/* FreeBSD /dev/(r)(a)cd0c (a is for atapi), recomended to _not_ use r
  OpenBSD /dev/rcd0c, it needs to be the raw device
  NetBSD  /dev/rcd0[d|c|..] d for x86, c (for non x86), perhaps others
  Darwin  /dev/rdisk0,  it needs to be the raw device
  BSD/OS  /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will 
do) */
static char *bsd_block2char( const char *path )
{
   char *new_path;

#if 0
   /* If it doesn't start with /dev/ or does start with /dev/r exit */
   if( strncmp( path, /dev/,  5 ) || !strncmp( path, /dev/r, 6 ) )
 return (char *) strdup( path );
   /* Replace /dev/ with /dev/r */
   new_path = malloc( strlen(path) + 2 );
   strcpy( new_path, /dev/r );
   strcat( new_path, path + strlen( /dev/ ) );
#endif
 new_path = strdup(path);
 return new_path;
}
#endif
Adam K Kirchhoff wrote:

Again, no luck.  From vlc:

[0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
[0141] dvd input error: dvdcss cannot open device
libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Could not open /dev/acd0 with libdvdcss.
libdvdread: Can't open /dev/acd0 for reading
[0141] dvdread input error: libdvdcss cannot open source
[0141] vcd input error: no movie tracks found
[0141] main input error: no suitable access module for 
`/://dvdold:///dev/[EMAIL PROTECTED],1

From mplayer:


Playing DVD title 1
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/acd0 for reading
Couldn't open DVD device: /dev/acd0
From ogle:


libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Could not open /dev/acd0c with libdvdcss.
libdvdread: Can't open /dev/acd0c for reading
ERROR[ogle_nav]: faild to open/read the DVD
Yet the same DVD in the firewire drive works just fine.

I can certainly try recompiling the applications but, frankly, I'm really
doubtful that will solve the problem :-(
Adam

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



 





--
Lars Eggert [EMAIL PROTECTED]   USC Information Sciences Institute


smime.p7s
Description: S/MIME Cryptographic Signature


Re: IDE DVD playback on 5.1-CURRENT

2003-08-30 Thread Bruce Evans
On Fri, 29 Aug 2003, David O'Brien wrote:

 On Fri, Aug 29, 2003 at 10:10:46AM -0700, Terry Lambert wrote:
  David O'Brien wrote:
   On Thu, Aug 28, 2003 at 01:29:22AM -0700, Terry Lambert wrote:
1)dd if=/dev/acd0 count=1 of=/dev/null
2)dd if=/dev/acd0c count=1 of=/dev/null
3)dd if=/dev/acd0a count=1 of=/dev/null
 
 bs=2k
 
  Yes, sorry; I forgot that FreeBSD's dd does not stat its endpoints
  to see if they are devices, and gets the st_blksize and insists
  that it be used (at least internally) for S_IFBLK and S_IFCHR
  values of st_mode.
 
  Perhaps it should be unbroken by someone with a commit bit and/or
  the ability to have their send-pr's not rejected as relay SPAM.

 I doubt it, this wasn't necessary with SCSI cdrom's until GEOM -- PHK
 thought it a feature to have to require the user to remember the bs=2k,
 so I don't think anyone will ever be able to get this fixed in the
 tree.

This is not only a feaure; it is Standard.  From POSIX.1-2001-draft7.txt:

%%%
11599 NAME
11600 dd - convert and copy a file
...
11650ibs=exprSpecify the input block size, in bytes, by expr 
(default is 512).
11651obs=exprSpecify the output block size, in bytes, by expr 
(default is 512).
%%%

GEOM has many faults, but this is not one of them.
dd if=/dev/[a]cd0c [bs=512] hasn't worked since block devices were axed.
With block devices, you had to use the raw device, e.g., /dev/racd0c, to
attempt to read 512-blocks and fail on normal cdroms because their block
size isn't 512.  /dev/acd0c was the block device so it could be read with
any size at some cost in efficiency..  E.g., requests to read it with a
block size of 512 caused the following enblocking and deblocking:

- dd block size of 512 converted to BLKDEV_IOSIZE = 2048
- i/o done with block size of 2048.  This happens to be the same as
  the physical block size, so it happens to work and doesn't involve
  any more enblocking or deblocking
- BLKDEV_IOSIZE converted to dd block size.

BLKDEV_IOSIZE is now PAGE_SIZE and is only used for bogus things (since it
is still used but there are no block devices to use it on).

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-29 Thread Terry Lambert
David O'Brien wrote:
 On Thu, Aug 28, 2003 at 01:29:22AM -0700, Terry Lambert wrote:
  1)dd if=/dev/acd0 count=1 of=/dev/null
  2)dd if=/dev/acd0c count=1 of=/dev/null
  3)dd if=/dev/acd0a count=1 of=/dev/null
   
   bs=2k

Yes, sorry; I forgot that FreeBSD's dd does not stat its endpoints
to see if they are devices, and gets the st_blksize and insists
that it be used (at least internally) for S_IFBLK and S_IFCHR
values of st_mode.

Perhaps it should be unbroken by someone with a commit bit and/or
the ability to have their send-pr's not rejected as relay SPAM.

8-p.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-29 Thread David O'Brien
On Fri, Aug 29, 2003 at 10:10:46AM -0700, Terry Lambert wrote:
 David O'Brien wrote:
  On Thu, Aug 28, 2003 at 01:29:22AM -0700, Terry Lambert wrote:
   1)dd if=/dev/acd0 count=1 of=/dev/null
   2)dd if=/dev/acd0c count=1 of=/dev/null
   3)dd if=/dev/acd0a count=1 of=/dev/null

bs=2k
 
 Yes, sorry; I forgot that FreeBSD's dd does not stat its endpoints
 to see if they are devices, and gets the st_blksize and insists
 that it be used (at least internally) for S_IFBLK and S_IFCHR
 values of st_mode.
 
 Perhaps it should be unbroken by someone with a commit bit and/or
 the ability to have their send-pr's not rejected as relay SPAM.

I doubt it, this wasn't necessary with SCSI cdrom's until GEOM -- PHK
thought it a feature to have to require the user to remember the bs=2k,
so I don't think anyone will ever be able to get this fixed in the
tree.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread John Kennedy
On Tue, Aug 26, 2003 at 09:31:45PM -0400, Adam K Kirchhoff wrote:
 I've asked this same question on freebsd-questions an on #freebsd
 (freenode), but haven't gotten any answer, so I thought I'd ask on here.
 ...
 Is DVD playback just not supported on IDE drives on FreeBSD -CURRENT?

  This is dated impressions, but ~2 years ago SCSI definitely had better
support than IDE.  My impression was that SCSI had more standardization
and was easier for people to write code for.

  IMHO, *BSD is doing the right thing by making things look like SCSI
(like my USB keyfob-drive, DVD drive over Firewire, etc) and it gets
better support by presenting them as SCSI.

  Take that support away by going native IDE and then you're at the mercy
of a specialized device driver that gets a lot less eyeballing.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread supraexpress
You might also want/need to change/define a local mplayer configuration
ala:

/home/.../.mplayer/gui.conf


where you can change the runtime configuration paramaters such as:

ao_driver = oss:/dev/dsp1
ao_volnorm = no
ao_surround = no
ao_extra_stereo = no
ao_extra_stereo_coefficient = 1.00
ao_oss_mixer = /dev/mixer
ao_oss_device = /dev/dsp1
dvd_device = /dev/acd0c
cdrom_device = /dev/cdrom

using/choosing a different dvd_device and/or ao_oss_device/ao_driver. I
have had to change these variables going from 4.8 to 5.1 as different IDE
hardware was or was not recognized.



On 27 Aug, Daniel C. Sobral wrote:
 Ian Freislich wrote:
 Adam K Kirchhoff wrote:
 
I've asked this same question on freebsd-questions an on #freebsd
(freenode), but haven't gotten any answer, so I thought I'd ask on here.

I'm hoping someone can help me out here.

I recently moved a firewire card and DVD drive that had been in my FreeBSD
box to another computer.  I replaced it with an IDE DVD drive.  The
probelm is that now I can't get mplayer or vlc to play any DVDs that had
previously worked with the firewire drive.

I have, of course, made sure that /dev/dvd is a symbolic link to /dev/acd0
instead of /dev/cd0 (as it used to be).  The only difference that I can
think of is that FreeBSD sees the firewire drive as a scsi drive and sees
the ide drive as an ide drive.
 
 
 Have you tried (from mplayer's man page):
 
  -dvd-device path to device
Override default DVD device name /dev/dvd.
 
 Actually, I recall some player on which you just had to mount the dvd, 
 and them point them at the path where the dvd was mounted.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread Terry Lambert
Adam K Kirchhoff wrote:
 Again, no luck.  From vlc:
 
 [0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
 [0141] dvd input error: dvdcss cannot open device
 libdvdread: Using libdvdcss version 1.2.5 for DVD access
 libdvdread: Could not open /dev/acd0 with libdvdcss.
 libdvdread: Can't open /dev/acd0 for reading
 [0141] dvdread input error: libdvdcss cannot open source
 [0141] vcd input error: no movie tracks found
 [0141] main input error: no suitable access module for `/://dvdold:///dev/[EMAIL 
 PROTECTED],1
 
 From mplayer:
 
 Playing DVD title 1
 libdvdread: Could not open device with libdvdcss.
 libdvdread: Can't open /dev/acd0 for reading
 Couldn't open DVD device: /dev/acd0
 
 From ogle:
 
 libdvdread: Using libdvdcss version 1.2.5 for DVD access
 libdvdread: Could not open /dev/acd0c with libdvdcss.
 libdvdread: Can't open /dev/acd0c for reading
 ERROR[ogle_nav]: faild to open/read the DVD

What about:

1)  dd if=/dev/acd0 count=1 of=/dev/null
2)  dd if=/dev/acd0c count=1 of=/dev/null
3)  dd if=/dev/acd0a count=1 of=/dev/null

If any of these works, then try that device, and if it still
doesn't work, then it's your libdvdcss not having support for
the drive.


 Yet the same DVD in the firewire drive works just fine.

The easiest thing to suggest: Continue using the firewire drive;
something about the IDE one sucks.  8-).

You might also want to make sure the drive is jumpered right
(master vs. slave), that it works on regular CDROMs, that it's


 I can certainly try recompiling the applications but, frankly, I'm really
 doubtful that will solve the problem :-(

Try the dd's and regular CD access.  If that works, it's your
software; if it doesn't, then it's probably the drive.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread Peter Kostouros
Hi

I had a similar problem when running mplayer with recent kernels. My 
problem was that although I was executing mplayer with -dvd-device 
/dev/acd0, the program was trying to open /dev/racd0. I modified 
main/libmpdvdkit2/dvd_reader.c and sure enough everything is OK. I hope 
the following helps:

#if defined(SYS_BSD)
/* FreeBSD /dev/(r)(a)cd0c (a is for atapi), recomended to _not_ use r
  OpenBSD /dev/rcd0c, it needs to be the raw device
  NetBSD  /dev/rcd0[d|c|..] d for x86, c (for non x86), perhaps others
  Darwin  /dev/rdisk0,  it needs to be the raw device
  BSD/OS  /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will 
do) */
static char *bsd_block2char( const char *path )
{
   char *new_path;

#if 0
   /* If it doesn't start with /dev/ or does start with /dev/r exit */
   if( strncmp( path, /dev/,  5 ) || !strncmp( path, /dev/r, 6 ) )
 return (char *) strdup( path );
   /* Replace /dev/ with /dev/r */
   new_path = malloc( strlen(path) + 2 );
   strcpy( new_path, /dev/r );
   strcat( new_path, path + strlen( /dev/ ) );
#endif
  
   new_path = strdup(path);
  
   return new_path;
}
#endif

Adam K Kirchhoff wrote:

Again, no luck.  From vlc:

[0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
[0141] dvd input error: dvdcss cannot open device
libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Could not open /dev/acd0 with libdvdcss.
libdvdread: Can't open /dev/acd0 for reading
[0141] dvdread input error: libdvdcss cannot open source
[0141] vcd input error: no movie tracks found
[0141] main input error: no suitable access module for `/://dvdold:///dev/[EMAIL 
PROTECTED],1
From mplayer:
Playing DVD title 1
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/acd0 for reading
Couldn't open DVD device: /dev/acd0
From ogle:
libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Could not open /dev/acd0c with libdvdcss.
libdvdread: Can't open /dev/acd0c for reading
ERROR[ogle_nav]: faild to open/read the DVD
Yet the same DVD in the firewire drive works just fine.

I can certainly try recompiling the applications but, frankly, I'm really
doubtful that will solve the problem :-(
Adam

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


 



--

Regards

Peter

As always the organisation disavows knowledge of this email

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread Adam K Kirchhoff

Hmmm...  I'll give that a shot, thanks :-)  Did you ever submit your patch
to the port maintainer?

Adam

On Thu, 28 Aug 2003, Peter Kostouros wrote:

 Hi

 I had a similar problem when running mplayer with recent kernels. My
 problem was that although I was executing mplayer with -dvd-device
 /dev/acd0, the program was trying to open /dev/racd0. I modified
 main/libmpdvdkit2/dvd_reader.c and sure enough everything is OK. I hope
 the following helps:

 #if defined(SYS_BSD)
 /* FreeBSD /dev/(r)(a)cd0c (a is for atapi), recomended to _not_ use r
OpenBSD /dev/rcd0c, it needs to be the raw device
NetBSD  /dev/rcd0[d|c|..] d for x86, c (for non x86), perhaps others
Darwin  /dev/rdisk0,  it needs to be the raw device
BSD/OS  /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will
 do) */
 static char *bsd_block2char( const char *path )
 {
 char *new_path;

 #if 0
 /* If it doesn't start with /dev/ or does start with /dev/r exit */
 if( strncmp( path, /dev/,  5 ) || !strncmp( path, /dev/r, 6 ) )
   return (char *) strdup( path );

 /* Replace /dev/ with /dev/r */
 new_path = malloc( strlen(path) + 2 );
 strcpy( new_path, /dev/r );
 strcat( new_path, path + strlen( /dev/ ) );
 #endif

 new_path = strdup(path);

 return new_path;
 }
 #endif


 Adam K Kirchhoff wrote:

 Again, no luck.  From vlc:
 
 [0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
 [0141] dvd input error: dvdcss cannot open device
 libdvdread: Using libdvdcss version 1.2.5 for DVD access
 libdvdread: Could not open /dev/acd0 with libdvdcss.
 libdvdread: Can't open /dev/acd0 for reading
 [0141] dvdread input error: libdvdcss cannot open source
 [0141] vcd input error: no movie tracks found
 [0141] main input error: no suitable access module for 
 `/://dvdold:///dev/[EMAIL PROTECTED],1
 
 From mplayer:
 
 Playing DVD title 1
 libdvdread: Could not open device with libdvdcss.
 libdvdread: Can't open /dev/acd0 for reading
 Couldn't open DVD device: /dev/acd0
 
 From ogle:
 
 libdvdread: Using libdvdcss version 1.2.5 for DVD access
 libdvdread: Could not open /dev/acd0c with libdvdcss.
 libdvdread: Can't open /dev/acd0c for reading
 ERROR[ogle_nav]: faild to open/read the DVD
 
 Yet the same DVD in the firewire drive works just fine.
 
 I can certainly try recompiling the applications but, frankly, I'm really
 doubtful that will solve the problem :-(
 
 Adam
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 
 
 


 --

 Regards

 Peter

 As always the organisation disavows knowledge of this email


 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread Adam K Kirchhoff

And a quick FYI:  After making the changes below, mplayer still refuses to
play back any DVDs. :-)  I'll probably just wait till ATAnp and atapicam
are working together nicely again before I continue fighting with it.

Adam

On Thu, 28 Aug 2003, Adam K Kirchhoff wrote:


 Hmmm...  I'll give that a shot, thanks :-)  Did you ever submit your patch
 to the port maintainer?

 Adam

 On Thu, 28 Aug 2003, Peter Kostouros wrote:

  Hi
 
  I had a similar problem when running mplayer with recent kernels. My
  problem was that although I was executing mplayer with -dvd-device
  /dev/acd0, the program was trying to open /dev/racd0. I modified
  main/libmpdvdkit2/dvd_reader.c and sure enough everything is OK. I hope
  the following helps:
 
  #if defined(SYS_BSD)
  /* FreeBSD /dev/(r)(a)cd0c (a is for atapi), recomended to _not_ use r
 OpenBSD /dev/rcd0c, it needs to be the raw device
 NetBSD  /dev/rcd0[d|c|..] d for x86, c (for non x86), perhaps others
 Darwin  /dev/rdisk0,  it needs to be the raw device
 BSD/OS  /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will
  do) */
  static char *bsd_block2char( const char *path )
  {
  char *new_path;
 
  #if 0
  /* If it doesn't start with /dev/ or does start with /dev/r exit */
  if( strncmp( path, /dev/,  5 ) || !strncmp( path, /dev/r, 6 ) )
return (char *) strdup( path );
 
  /* Replace /dev/ with /dev/r */
  new_path = malloc( strlen(path) + 2 );
  strcpy( new_path, /dev/r );
  strcat( new_path, path + strlen( /dev/ ) );
  #endif
 
  new_path = strdup(path);
 
  return new_path;
  }
  #endif
 
 
  Adam K Kirchhoff wrote:
 
  Again, no luck.  From vlc:
  
  [0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
  [0141] dvd input error: dvdcss cannot open device
  libdvdread: Using libdvdcss version 1.2.5 for DVD access
  libdvdread: Could not open /dev/acd0 with libdvdcss.
  libdvdread: Can't open /dev/acd0 for reading
  [0141] dvdread input error: libdvdcss cannot open source
  [0141] vcd input error: no movie tracks found
  [0141] main input error: no suitable access module for 
  `/://dvdold:///dev/[EMAIL PROTECTED],1
  
  From mplayer:
  
  Playing DVD title 1
  libdvdread: Could not open device with libdvdcss.
  libdvdread: Can't open /dev/acd0 for reading
  Couldn't open DVD device: /dev/acd0
  
  From ogle:
  
  libdvdread: Using libdvdcss version 1.2.5 for DVD access
  libdvdread: Could not open /dev/acd0c with libdvdcss.
  libdvdread: Can't open /dev/acd0c for reading
  ERROR[ogle_nav]: faild to open/read the DVD
  
  Yet the same DVD in the firewire drive works just fine.
  
  I can certainly try recompiling the applications but, frankly, I'm really
  doubtful that will solve the problem :-(
  
  Adam
  
  
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-current
  To unsubscribe, send any mail to [EMAIL PROTECTED]
  
  
  
  
  
 
 
  --
 
  Regards
 
  Peter
 
  As always the organisation disavows knowledge of this email
 
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-current
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread Alexander Leidinger
On Thu, 28 Aug 2003 07:46:52 -0400 (EDT)
Adam K Kirchhoff [EMAIL PROTECTED] wrote:

 
 And a quick FYI:  After making the changes below, mplayer still refuses to
 play back any DVDs. :-)  I'll probably just wait till ATAnp and atapicam
 are working together nicely again before I continue fighting with it.

According to the commit log they do now (at least there's no panic)...

Bye,
Alexander.

-- 
   Press every key to continue.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-28 Thread David O'Brien
On Thu, Aug 28, 2003 at 01:29:22AM -0700, Terry Lambert wrote:
 1)dd if=/dev/acd0 count=1 of=/dev/null
 2)dd if=/dev/acd0c count=1 of=/dev/null
 3)dd if=/dev/acd0a count=1 of=/dev/null
  
  bs=2k
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-27 Thread Terry Lambert
Adam K Kirchhoff wrote:
 I recently moved a firewire card and DVD drive that had been in my FreeBSD
 box to another computer.  I replaced it with an IDE DVD drive.  The
 probelm is that now I can't get mplayer or vlc to play any DVDs that had
 previously worked with the firewire drive.
[ ... ]
 Couldn't open DVD device: /dev/dvd
[ ... ]
 Now /dev/dvd is a symlink to /dev/acd0:
 
 [ [EMAIL PROTECTED] - /usr/home/adamk ]: ls -l /dev/dvd
 lrwxr-xr-x  1 root  wheel  3 Aug 25 15:54 /dev/dvd - /dev/acd0
 
 And /dev/acd0 looks like:
 
 [ [EMAIL PROTECTED] - /usr/home/adamk ]: ls -l /dev/acd0
 crw-r--r--  1 root  operator  117,   0 Aug 25 15:36 /dev/acd0
 
 Note:  user 'adamk' is part of the 'operator' group.  In addition, as you
 can see from the mplayer.txt file, I've tried this as root just in case
 there's some strange permission thing going on.  Still no luck.

A really common problem with DVD and audio-using programs is
they try to open device read/write, instead of read-only.

I notice that you don't have write permission.  This might be
your problem.

Also, you may want to try a hard link instead of a symbolic
link; see man devfs and man rc.devfs.

Finally, try recompiling your DVD player program, whatever it
is, since it might check at compile time what it's talking to,
and be too dumb to do the right thing.

You may also want to pint it directly at the device, instead
of using a symbolic link and making things more complicated
than they need to be (one less variable to vary and cause
breakage).

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-27 Thread Ian Freislich
Adam K Kirchhoff wrote:
 
 I've asked this same question on freebsd-questions an on #freebsd
 (freenode), but haven't gotten any answer, so I thought I'd ask on here.
 
 I'm hoping someone can help me out here.
 
 I recently moved a firewire card and DVD drive that had been in my FreeBSD
 box to another computer.  I replaced it with an IDE DVD drive.  The
 probelm is that now I can't get mplayer or vlc to play any DVDs that had
 previously worked with the firewire drive.
 
 I have, of course, made sure that /dev/dvd is a symbolic link to /dev/acd0
 instead of /dev/cd0 (as it used to be).  The only difference that I can
 think of is that FreeBSD sees the firewire drive as a scsi drive and sees
 the ide drive as an ide drive.

Have you tried (from mplayer's man page):

-dvd-device path to device
  Override default DVD device name /dev/dvd.

Ian
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-27 Thread Adam K Kirchhoff

On Wed, 27 Aug 2003, Terry Lambert wrote:

 Adam K Kirchhoff wrote:
  I recently moved a firewire card and DVD drive that had been in my FreeBSD
  box to another computer.  I replaced it with an IDE DVD drive.  The
  probelm is that now I can't get mplayer or vlc to play any DVDs that had
  previously worked with the firewire drive.
 [ ... ]
  Couldn't open DVD device: /dev/dvd
 [ ... ]
  Now /dev/dvd is a symlink to /dev/acd0:
 
  [ [EMAIL PROTECTED] - /usr/home/adamk ]: ls -l /dev/dvd
  lrwxr-xr-x  1 root  wheel  3 Aug 25 15:54 /dev/dvd - /dev/acd0
 
  And /dev/acd0 looks like:
 
  [ [EMAIL PROTECTED] - /usr/home/adamk ]: ls -l /dev/acd0
  crw-r--r--  1 root  operator  117,   0 Aug 25 15:36 /dev/acd0
 
  Note:  user 'adamk' is part of the 'operator' group.  In addition, as you
  can see from the mplayer.txt file, I've tried this as root just in case
  there's some strange permission thing going on.  Still no luck.

 A really common problem with DVD and audio-using programs is
 they try to open device read/write, instead of read-only.

 I notice that you don't have write permission.  This might be
 your problem.

No such luck.  I already thought about that and chmod acd0 to 666 just in
case.

 Also, you may want to try a hard link instead of a symbolic
 link; see man devfs and man rc.devfs.

 Finally, try recompiling your DVD player program, whatever it
 is, since it might check at compile time what it's talking to,
 and be too dumb to do the right thing.

 You may also want to pint it directly at the device, instead
 of using a symbolic link and making things more complicated
 than they need to be (one less variable to vary and cause
 breakage).

Again, no luck.  From vlc:

[0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
[0141] dvd input error: dvdcss cannot open device
libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Could not open /dev/acd0 with libdvdcss.
libdvdread: Can't open /dev/acd0 for reading
[0141] dvdread input error: libdvdcss cannot open source
[0141] vcd input error: no movie tracks found
[0141] main input error: no suitable access module for `/://dvdold:///dev/[EMAIL 
PROTECTED],1

From mplayer:

Playing DVD title 1
libdvdread: Could not open device with libdvdcss.
libdvdread: Can't open /dev/acd0 for reading
Couldn't open DVD device: /dev/acd0

From ogle:

libdvdread: Using libdvdcss version 1.2.5 for DVD access
libdvdread: Could not open /dev/acd0c with libdvdcss.
libdvdread: Can't open /dev/acd0c for reading
ERROR[ogle_nav]: faild to open/read the DVD

Yet the same DVD in the firewire drive works just fine.

I can certainly try recompiling the applications but, frankly, I'm really
doubtful that will solve the problem :-(

Adam


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-27 Thread Adam K Kirchhoff

On Wed, 27 Aug 2003, Adam K Kirchhoff wrote:


 On Wed, 27 Aug 2003, Terry Lambert wrote:

  Adam K Kirchhoff wrote:
   I recently moved a firewire card and DVD drive that had been in my FreeBSD
   box to another computer.  I replaced it with an IDE DVD drive.  The
   probelm is that now I can't get mplayer or vlc to play any DVDs that had
   previously worked with the firewire drive.
  [ ... ]
   Couldn't open DVD device: /dev/dvd
  [ ... ]
   Now /dev/dvd is a symlink to /dev/acd0:
  
   [ [EMAIL PROTECTED] - /usr/home/adamk ]: ls -l /dev/dvd
   lrwxr-xr-x  1 root  wheel  3 Aug 25 15:54 /dev/dvd - /dev/acd0
  
   And /dev/acd0 looks like:
  
   [ [EMAIL PROTECTED] - /usr/home/adamk ]: ls -l /dev/acd0
   crw-r--r--  1 root  operator  117,   0 Aug 25 15:36 /dev/acd0
  
   Note:  user 'adamk' is part of the 'operator' group.  In addition, as you
   can see from the mplayer.txt file, I've tried this as root just in case
   there's some strange permission thing going on.  Still no luck.
 
  A really common problem with DVD and audio-using programs is
  they try to open device read/write, instead of read-only.
 
  I notice that you don't have write permission.  This might be
  your problem.

 No such luck.  I already thought about that and chmod acd0 to 666 just in
 case.

  Also, you may want to try a hard link instead of a symbolic
  link; see man devfs and man rc.devfs.
 
  Finally, try recompiling your DVD player program, whatever it
  is, since it might check at compile time what it's talking to,
  and be too dumb to do the right thing.
 
  You may also want to pint it directly at the device, instead
  of using a symbolic link and making things more complicated
  than they need to be (one less variable to vary and cause
  breakage).

 Again, no luck.  From vlc:

 [0141] main input: playlist item `dvdold:///dev/[EMAIL PROTECTED],1'
 [0141] dvd input error: dvdcss cannot open device
 libdvdread: Using libdvdcss version 1.2.5 for DVD access
 libdvdread: Could not open /dev/acd0 with libdvdcss.
 libdvdread: Can't open /dev/acd0 for reading
 [0141] dvdread input error: libdvdcss cannot open source
 [0141] vcd input error: no movie tracks found
 [0141] main input error: no suitable access module for `/://dvdold:///dev/[EMAIL 
 PROTECTED],1

 From mplayer:

 Playing DVD title 1
 libdvdread: Could not open device with libdvdcss.
 libdvdread: Can't open /dev/acd0 for reading
 Couldn't open DVD device: /dev/acd0

 From ogle:

 libdvdread: Using libdvdcss version 1.2.5 for DVD access
 libdvdread: Could not open /dev/acd0c with libdvdcss.
 libdvdread: Can't open /dev/acd0c for reading
 ERROR[ogle_nav]: faild to open/read the DVD

 Yet the same DVD in the firewire drive works just fine.

 I can certainly try recompiling the applications but, frankly, I'm really
 doubtful that will solve the problem :-(

 Adam

I rebooted my machine and finally noticed the following error message on
the console:

acd0: FAILURE - FLUSHCACHE status=51READY,DSC,ERROR error=4ABORTED

Could this be part of my problem?

Adam


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-27 Thread Soren Schmidt
It seems Adam K Kirchhoff wrote:
 I rebooted my machine and finally noticed the following error message on
 the console:
 
 acd0: FAILURE - FLUSHCACHE status=51READY,DSC,ERROR error=4ABORTED
 
 Could this be part of my problem?

No, this is harmless.

-Søren
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IDE DVD playback on 5.1-CURRENT

2003-08-27 Thread Daniel C. Sobral
Ian Freislich wrote:
Adam K Kirchhoff wrote:

I've asked this same question on freebsd-questions an on #freebsd
(freenode), but haven't gotten any answer, so I thought I'd ask on here.
I'm hoping someone can help me out here.

I recently moved a firewire card and DVD drive that had been in my FreeBSD
box to another computer.  I replaced it with an IDE DVD drive.  The
probelm is that now I can't get mplayer or vlc to play any DVDs that had
previously worked with the firewire drive.
I have, of course, made sure that /dev/dvd is a symbolic link to /dev/acd0
instead of /dev/cd0 (as it used to be).  The only difference that I can
think of is that FreeBSD sees the firewire drive as a scsi drive and sees
the ide drive as an ide drive.


Have you tried (from mplayer's man page):

-dvd-device path to device
  Override default DVD device name /dev/dvd.
Actually, I recall some player on which you just had to mount the dvd, 
and them point them at the path where the dvd was mounted.

--
Daniel C. Sobral   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Outros:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
I will follow the good side right to the fire,
but not into it if I can help it.
-- Michel Eyquem de Montaigne
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]