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

Re: growisofs minus_rw_quickgrow question

# 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.

Reply to: