I'm using mjpegtools-1.6.1.90
I'm trying to multiplex subtitles together with m2v and ac3, but it
fails:

[EMAIL PROTECTED] stnem]$ mplex -f 8 -S 4400 ${proj}.m2v ${proj}.ac3
${proj}.sub -o ${proj}.vob
   INFO: [mplex] mplex version 2.2.2 ($Date: 2003/05/13 20:27:15 $)
   INFO: [mplex] File stnem.m2v looks like an MPEG Video stream.
   INFO: [mplex] File stnem.ac3 looks like an AC3 Audio stream.
**ERROR: [mplex] File stnem.sub unrecogniseable!
**ERROR: [mplex] Unrecogniseable file(s)... exiting.

The subtitles stream is obtained with transcode-0.6.11 from a DVD title.
I think it's raw subtitles, not encapsulated or anything.

This is how i extracted the streams:

title=1
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 &
tccat -P ${title} -i /dev/dvd -t dvd | \
    tee vid.fifo aud.fifo sub.fifo > /dev/null

The above -a parameters are set for: first video track, first audio
track, first subtitles track.
Usually there's only one video track, so video doesn't change.
Use "-a 1" if you want the second audio track, etc.
Use "-a 0x21" if you want the second subtitles track, etc.
I have no idea why video and subtitles are required in hexa, while audio
is required in decimal.

If you're not sure which audio and/or subtitles track to extract, here's
how to display info about the title:

tcprobe -T ${title} -H 10 -i /dev/dvd 2>/dev/null | \
    grep dvd_reader.c | \
    cut -d \) -f 2 | \
    cut -c 2-

-- 
Florin Andrei

http://florin.myip.org/



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to