Forum archive - Embedding subtitles + resize

http://www.supermediastore.com/



Forum Archive Home -> Linux -> Embedding subtitles + resize



Embedding subtitles + resize

_mAyDaY_ posted 2009 Jul 19 07:06
Hello everyone :)

I hope someone has experience with this, since I didn't have any luck..

The idea is to embed subtitles into the XviD movie and resize it to 16:9 for the purpose of watching on a DVD player (who supports XviD, but doesn't support subtitles).
Also, I would like to use the vobsubs (idx + sub combination) for embedding.
I don't want to touch video or audio encoding.. (I guess video must be altered because of the resize?)
One other thing.. I will watch it on a 4:3 TV (but most of my XviD movies are even narrower than 16:9), so maybe it would be good to use the black area bellow the movie for the subs?

I guess this can all be done with mencoder, but I haven't been able to make it recognize the idx+sub combination..

Any help is very welcome! :)
TIA!



etvideob posted 2009 Jul 20 04:49
-vobsub and -vobsubid are what you are looking for.


_mAyDaY_ posted 2009 Jul 20 10:02
etvideob :
-vobsub and -vobsubid are what you are looking for.
Those options are only available for MPlayer, not mencoder...:/


disturbed1 posted 2009 Jul 20 13:50
That's a problem with all documentation on mencoder. Even though the man page, and the online docs tell you to use vobsub, mencoder does not support vobsub :(

You can try a couple of things though, no idea if they work or not.
-sid x -slang xx
-sub x

Look into converting the subtitles into a format mencoder supports.

Or, use mplayer to play the file (with -vobsub options) and pipe it to mencoder.

I don't use vobsub files myself, and can tell you that (for me) mencoder has auto loaded and hard encoded .srt subtitles without user intervention.



poisondeathray posted 2009 Jul 20 13:54
You would have to re-encode at least the video in order to hardcode subs, and resize/add borders

Another option on linux is to use avidemux which has a idx/sub subber, ability to add borders, and resize filters



etvideob posted 2009 Jul 20 15:02
Oh, yes. My bad.

Since you have to re-encode anyway I am afraid you have to use the long way.
Even if the sub files contains the mpeg ps1 track I found no way to mux it directly.

Read here, it explains how to:
http://wiki.archlinux.org/index.php/Convert_any_Movie_to_DVD_Video



_mAyDaY_ posted 2009 Jul 20 15:18
Hey guys, thnx for the response..

It seems mencoder can't use vobsubs in any way (using -sub doesn't work).

I gave Avidemux a shot today, and it seemed pretty decent. Reminds me of VirtualDub. :)

So, I added 2 filter options - VobSub (Embed VobSub subtitles into picture) and MPlayer resize (Change image size. Faster than Avisynth's Resize).
At first, it didn't work because I've set Video to "Copy", but then I changed it to "MPEG-4 ASP (XviD)".
And after some 30 minutes of re-coding, the result had the wanted effect - it had the vobsubs embedded and the video was resized (I used 640x360 - 16:9 resolution).
But... the video was strangely lagging. It's hard to describe - it was delaying in a twitchy way :D
It seems something went wrong while re-coding... I didn't change anything - left it at the defaults...
Any ideas? :S



etvideob posted 2009 Jul 20 16:20
As it is explained in the behind the link I posted I am afraid you have to:

1- use tcextract to extract the raw ps1 stream from the sub file
2- extract the pictures using subtitles2pgm
3- eventually resize
4- mux in the movie with spumux




Login/Register to our forum to be able to post here.








Replay Video Capture, if you can Watch it, you can Capture it ! and save it to your computer. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools