|
mencoder add hard-rendered subtitles on first 20 seconds without re-encoding the rest
Hello!
I've tried reading through a number of threads on here about adding subtitles hard into the video stream with mencoder, but most of them are people asking how to do it or having problems. So apologies if this has already been asked somewhere, but I haven't found it yet.
I don't have any problem getting mencoder to add the subtitles. But I only actually want to add a subtitle (for credits) during the first say 20 seconds of the video, and it seems a shame to have to re-encode all the rest just for that.
So I was wondering about different ways to split off the first n seconds of video to render subtitles onto, then join it back on the remainder untouched. Obviously, I would need to use the same parameters to re-encode the bit with the subtitles, but if I try to split the file on a key frame or something like that, would this work OK when I join them back together? Is there any easy way to find the right byte offset of an avi (xvid stream) to split it right on a key frame? Or maybe it doesn't quite work the way I think it does at all?
I don't have a great deal of experience messing with video really, so all advice welcomed...thanks!
|