On Mon, 2003-09-15 at 09:25, Scott Smith wrote:
hmmm I'll have to look at bbtools and see if I can just retire the makevob script. It's quite a hack anyways. http://www.nop.org/inkling/
Please don't, if there's no other tool that can do the same things.
Agreed ...
It's actually quite silly, there are so many open source tools that can generate MPEG files and/or can take m2v, ac3, mp2, sub... files and mux them, but so very few can generate MPEG2 files with dummy NAV packets! And those that can generate such files (like mplex of mjpegtools) lack other stuff (mplex/mjpegtools cannot mux subtitles).
Right ... Another one : mplex accepts *some* .ac3 files, but when extracting a chapter in the middle od a stream (chapter X/Y, 1<X<=Y), bbdmux will extract as the audio stream something that is *not* recognized by mplex as a valid .ac3 ...
I said in my previous message in this thread how you can extract m2v and ac3 from VOB, and how to mux them back with mplex and also get the NAV packets. It's also easy to extract subtitles, with a similar method, using transcode:
cat bunch-of.vob | tcextract -x ps1 -t vob -a 0x20 > movie.vob
But how to mux that together with the m2v and ac3? (and also get the dummy NAV stuff)
Here's another one:
tccat -i /dev/dvd -t dvd -P 1 | \ tcdemux -A 0xe0,0x80,0x20 > movie.vob
This awesome transcode trick will get you a full title, but with only one video angle, one audio track and one subtitles track - the bare minimum. However, the resulting vob has no dummy NAV packets, so dvdauthor cannot accept it. The first tccat command (extracting the full title) preserves the NAV stuff (and you can actually stop there and redirect it to a .vob file that will get accepted by dvdauthor), but after piping it through tcdemux (which picks from the title only one video / one audio / one sub), the NAV placeholders are lost.
This seems to boil down to : the current tools do not properly handle all common streams in MPEG2 files. mpeg2enc *does* know how to generate dummy VOBUs, but doesn't handle ac3 or subtitles, mplex does handle some ac3s but not anything bbdmux will throw at it, transcode will lose VOBUs if any treatment is needed, etc ...
Time to call for an MPEG2 OS Summit ?
It would be great to have a tool that can take any arbitrary MPEG2 file and add those dummy NAV packets.
And, more generally, a set of utilities able to handle what can be encountered in an MPEG2 stream, leaving intact what they doesn't understand (or, at least, failing gracefully ...). ...
Of course, it would be even greater if all applications that can generate MPEG2 files would also have a command-line switch to add the bogus NAV stuff. ;-) Otherwise it's kinda hard to author that MPEG2 content into a DVD.
It *IS* kinda hard ... and that might not be sheer luck (rembember CSS : some people still believe in security through obscurity ...).
May I suggest to contact dvdbackup's author : he managed to create something that preserves a lot of the original content of a DVD (while not adding dummy VOBUs to files, through ...).
Emmanuel Charpentier
-- Emmanuel Charpentier
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users