Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
multiplexing subtitles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ufayzull
n00b
n00b


Joined: 30 Sep 2004
Posts: 54

PostPosted: Thu May 05, 2005 6:35 pm    Post subject: multiplexing subtitles Reply with quote

is there an easy way to multiplex subtitles to a video stream?

this is the script i used to get the subtitles from a dvd

Code:

tccat -i /dev/dvd -T 1,-1 | tcextract -x ps1 -t vob -a 0x20 > subtitles.ps1


now i need to multiplex them with a processed video stream.
Back to top
View user's profile Send private message
flazz
Guru
Guru


Joined: 22 Nov 2003
Posts: 496
Location: Florida

PostPosted: Fri May 06, 2005 3:33 pm    Post subject: Reply with quote

what container are you using?
if you are using ogg ogmmerge has support for it.
Back to top
View user's profile Send private message
ufayzull
n00b
n00b


Joined: 30 Sep 2004
Posts: 54

PostPosted: Fri May 06, 2005 3:55 pm    Post subject: Reply with quote

flazz, i'm putting it back into .vob so i can make a dvd out of it.

i extracted mpeg video, ac3 audio, and the subtitles (using the line above). deleted original vob files, did some work on mpeg video, now i wanted to put everything back together. i thought if it is so easy to extract audio/video/subtitle streams from vob files it should be as easy to multiplex them back into a vob file but it looks like transcode cannot multiplex subtitles into vob (at least tcmplex and mplex do not mention it on man files).

there are some programs that do that (spumux from dvdauthor) but they require their own format different from the one tcextract gave me (i think). so if anyone knows how i could easly convert into a different format, please post it here.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun May 08, 2005 8:10 pm    Post subject: transcode *can* encode subtitles but ... Reply with quote

If you want to take a dvd and encode it with subtitles, this works:

transcode -i in.vob -M 4 -J extsub=0 -y mpeg2enc,ac3 -F 8 -E 48000 -o outfiles

This makes two files: outfiles.m2v and outfiles.ac3 (video and audio streams).
[The -M is there to help audio / video sync problems].

The subtitles (stream 0 here) are hard encoded into the output video.

But there is a problem with this method. After I mplex the m2v and ac3 files back
together into outfile.mpg and use dvdauthor to create a dvd file structure, dvdauthor
gives a warning:

WARN: not a valid dvd framerate ...

The resultant dvd plays fine on computers but has an annoying tiny jerk every second
on a commercial dvd player and a TV (mine anyway). The frame rate is 24 fps and I
don't see how to use transcode to change this (nor do I know what the right value would
be: 30 fps ??)

Anyone know what's going on here.

Because otherwise this transcode method is great. You end up with highly compressed but
v. high quality video -- normally I can get two feature length films on one DVD-R ...
Back to top
View user's profile Send private message
benhanson00
n00b
n00b


Joined: 07 Mar 2005
Posts: 3

PostPosted: Mon May 09, 2005 8:17 pm    Post subject: transcode Reply with quote

There is a transcode switch for resampling to 29.97 framerate. It should be in the man page.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum