[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: growisofs minus_rw_quickgrow question



Andy,

Thank you so much for the response. I totally agree with you and my thought was close as well. This is what I?ve done,

# dvd+rw-format ?force=full /dev/dvd

# cat tmp/VIDEO_TS/VTS_01* | growisofs ?use-the-force-luke=seek:1024 ?Z /dev/fd/0 # cat tmp/VIDEO_TS/VTS_02* | growisofs ?use-the-force-luke=seek:2048 ?Z /dev/fd/0 # cat tmp/VIDEO_TS/VTS_03* | growisofs ?use-the-force-luke=seek:3072 ?Z /dev/fd/0

// generate TOC
# dvdauthor ?T ?o tmp/
# mv tmp/VIDEO_TS/VTS* ../elsewhere

// now what?s under tmp/VIDEO_TS dir is VIDEO_TS.IFO and VIDEO_TS.bup
# cat tmp/VIDEO_TS/* | growisofs ?use-the-force-luke=seek:0 ?Z /dev/fd/0

This is all worked, but it won?t work. Exactly because what you said, I need to generate the superblock and directory structure, but this have to be based on what I have been recorded on the DVD. Those are the parts I need help. Does anyone can tell me how to generate directory structure on DVD based on what have been recorded? Thanks, Chen



From: Andy Polyakov <appro@fy.chalmers.se>
To: chen zhao <dinningc@hotmail.com>
CC: cdwrite@other.debian.org
Subject: Re: growisofs minus_rw_quickgrow question
Date: Tue, 30 Mar 2004 22:35:05 +0200

# cat tmp/VIDEO_TS/* | growisofs -use-the-force-luke=0 -Z /dev/dvd=/dev/fd/0
Executing 'builtin_dd if=/dev/fd/0 of=/dev/dvd obs=32k seek=0'

However, I can't even mount it back,
# mount /dev/dvd -t udf /mnt/dvd

What makes a disk mountable? Sane superblock at predefined offset which usually points to a sane directory structure. And what do you get with cat tmp/VIDEO_TS/* | growisofs -Z /dev/dvd=/dev/fd/0? First blocks will be occupied by data from VIDEO_TS.BUP, followed by data from VIDEO_TS.IFO, followed by data from VIDEO_TS.VOB, etc. Is there a sane superblock at predefined location? No. Is there sane directory structure? No. You've got data from .BUP, .IFO, .VOB...

You wanted to record real-time video streams, right? Or streams of unknown size, unknown in the beginning of recording. What you have to do is to reserve some place in the beginning of media, dump VOB formatted video stream till it ends, then prepend it with IFO structure, append copy of IFO structure, then generate superblock and directory structure and record it to the space reserved in the beginning. *Then* and only then you'll be able to mount it and play with software DVD player or in set-top player. At every step you can use growisofs -use-the-force-luke=seek:N. E.g. at the frist step N would be the amount of space reserved for superblock, directory structure and IFO structure preceding video stream. A.



_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/



Reply to: