If i understand correctly, one of the reasons why mplex cannot multiplex
subtitles was the scarcity of tools to generate subtitle streams with
timestamp information.

Actually, there is an easy way to extract subtitles with enough
information so that the subtitles can be fully reconstructed and muxed
back into a .vob file.
See the script below. It accomplishes that via transcode, subtitleripper
and dvdauthor (needs a recent transcode stable release, a fresh
subtitleripper CVS tree, and a recent alpha version of dvdauthor):

##################################################
tccat -t dvd -i /dev/dvd -P ${n} > ${proj}-title${n}.vob

mkfifo vid.fifo
mkfifo aud.fifo
mkfifo sub.fifo
tcextract -i vid.fifo -t vob -x mpeg2 -a 0xe0 \
    > ${proj}.m2v &
tcextract -i aud.fifo -t vob -x ac3 -a 0 \
    > ${proj}.ac3 &
tcextract -i sub.fifo -t vob -x ps1 -a 0x20 \
    > ${proj}.sub &
cat ${proj}-title${n}.vob | tee vid.fifo aud.fifo \
    sub.fifo > /dev/null

# optional
#mv ${proj}.m2v ${proj}-big.m2v
#tcrequant -i ${proj}-big.m2v -o ${proj}.m2v -f ${fact}

mplex -f 8 -S 4400 ${proj}.m2v ${proj}.ac3 \
    -o ${proj}-plain.vob

subtitle2pgm -i ${proj}.sub -o ${proj} -g 5 -t 1
spumux ${proj}.dvdxml < ${proj}-plain.vob > ${proj}.vob
####################################################

The timestamps and other info are stored in the .dvdxml file which is
generated exclusively based upon the .sub file.

It strikes me though as cumbersome and convoluted to do so many
operations for something that should be as simple as:

mplex -f 8 -S 4400 ${proj}.m2v ${proj}.ac3 ${proj}.sub \
     -o ${proj}.vob

-- 
Florin Andrei

http://florin.myip.org/



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to