Log in

View Full Version : Subtitles in mpg with mencoder


blaz
15th April 2008, 17:31
I'm ripping a dvd with "forced" subtitles ("Traffic"). No transcoding just copy it over into an MPEG-PS container:

mencoder dvd://1 -dvd-device /dev/hdc -o Traffic.mpg -oac copy -ovc copy -of mpeg -mpegopts muxrate=12000

Seems to work pretty well, despite lots of duplicate frame messages; it's very fast and the mpg can be streamed to the PS3 via Mediatomb.

But what about the forced subtitles (in English only when they're speaking spanish)?

Guess since I'm streaming to the PS3, there's no way for a choice of subtitles. But it would be nice to have the "forced" subtitles at least.

Does that mean I have to re-encode the video and burn in the subtitles somehow? Or can they be muxed into the container?

echo
1st May 2008, 14:03
Yes, I think you'll have to reencode, I don't think mpg files can carry subtitles in any format.

I don't know if you can rip the vob files and stream those to the PS3 instead...

blaz
4th May 2008, 03:14
Yes, I think you'll have to reencode, I don't think mpg files can carry subtitles in any format.

I don't know if you can rip the vob files and stream those to the PS3 instead...


Yes, I found vobcopy since this post, and vobs work fine streamed to the PS3 as video/mpeg.

And for the subtitles, there's not that many dvds where I want them, so I use divxenc to decode/encode with subtitles burned into the video stream. I set the bitrate high but still save quite a bit of space.

Apparently there's some way to add a subtitle stream to an avi box (without burning into the video stream) so the PS3 will recognize it, but so far that seems only avail in windoze.

But I've always got to check avi's on the PS3 as the final step. Some dvds that I've ripped to avi are just not accepted by the PS3. No idea why as I use the same divxenc script over and over.