[MPlayer-users] Can't access files copied from Hitachi DVD-CAM to disc

Robert Mitchell robert.mitchell4 at sympatico.ca
Thu Nov 13 05:40:24 CET 2003


On Wed, 2003-11-12 at 15:08, jhollind wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> On 11 Nov 2003 00:51:18 -0500, Robert Mitchell wrote
> > [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
> I believe if you put the -zoom option, it will not look stretched.
> 
> I have a few questions for you.  Are you able to copy the files off under
> linux, and if so, what did you have to do to set it up?  I've yet to find an
> answer for that.  I'm not sure that renaming those files like that is correct,
> as from what I understand dvd-ram files are different than regular .vob files,
> in that they can grow larger than 1GB.
> 
> I would love it if mplayer could access a dvd-ram ifo file like a regular dvd
> ifo, as you lose the chapters or whatnot from recording.  It  just looks like
> 1 long chapter for me.
> 
> 
> --
> Jason
> 
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users

Hi Jason

I'll try the zoom option - thanks.  

Yes, I am able to copy files off the camera.  I should be able to write
to the camera, but I haven't tried it for fear of screwing up the disk
until I understand more about the camera.

In terms of 'setup' of the camera, there is not much to do.
1. Read the linux scsi howto on www.tldp.org.  It demystifies the scsi
files and dev files somewhat.  You should look for /dev/scd0, /dev/scd1
etc.  Your camera will be one of these.  (might be called /dev/sr0...)
Note that the position of the camera will change if you reboot with the
camera attached and on, vs. booting with the camera un attached!

What is happening is that the camera talks scsi, on top of the usb
physical interface.  So, on Linux you need a driver which talks scsi on
top of usb.  The file system format on the disk is 'udf' so if you want
to mount the disk, you will specify udf in the -t parm of 'mount'.  It's
filesystem (udf) on top of transport (scsi) on top of physical interface
(usb).  

Try:

[robm at boxster robm]$ ls /proc/scsi/
ide-scsi  scsi  usb-storage-0
[robm at boxster robm]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HL-DT-ST Model: CD-RW GCE-8523B  Rev: 1.01
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: HITACHI  Model: DVD-RAM DZ-MV3   Rev: A007
  Type:   CD-ROM                           ANSI SCSI revision: 02
[robm at boxster robm]$

So, for me, I have scsi support for ATAPI type IDE connected harddrives,
and for usb connected devices like the Hitachi cam.  Note that my
Hitachi cam is device scs1, so that should map to scd1 on my system
(might be sr1 on others)

2. If you think you have the right drivers installed and kernel modules
available then you should be able to read at the raw data on the disk.

try dd infile=/dev/scd1 count=100 outfile=/dev/null 
and watch the light on your camera.  It should flicker to red.  If not,
try scd0,  scd2 ... 

Next, as root, mkdir /dev/dvd  and ln -s /dev/scd1 /dev/dvd  
Check permissions on /dev/dvd, /dev/scd1 to ensure that you have rw
permission all the way down.

At this point, gmplayer should be able to read from /dev/dvd
gmplayer -dvd://1 -dvd-device /dev/dvd

but alas, it seems that libdvdread chokes.  I looked at the source, and
unfortunately names like TS_VIDEO.TS are hardcoded.

So, I tried 

mount -t udf /mnt/dvd  /dev/dvd

This is unnecessary for gmplayer, but allows you to view the contents of
the disk as files.  Then you can copy the files using cp to harddisk.
I can play the .vob files, but the ifo file can't be read for some
reason.  I'm not sure if it is the way that I'm invoking gmplayer, or
some other problem.  When I get some time I'll have a look at the source
and see if I can figure it out.  The libdvdread looks fairly easy to
understand.



-- 
Sincerely

Rob Mitchell
robert.mitchell4 at sympatico.ca



More information about the MPlayer-users mailing list