[MEncoder-users] reencoding from a mkv with subtitles
Marc Cousin
marc at mco.mine.nu
Wed Dec 29 12:31:13 CET 2004
Hi,
I'm trying to convert a mkv with subtitles, to a simple xvid avi, with the
subtitles directly displayed in the movie.
To do this, I've tried :
mencoder -slang fre movie.mkv -oac mp3lame -lameopts cbr:br=128 -ovc xvid
-xvidencopts vhq=1:chroma_me:hq_ac:bitrate=1500 -o movie.avi
The problem is that the subtitles aren't correctly displayed (bottom of it is
displayed randomly on the screen, and distorted), on the encoded avi.
Of course, the movie plays ok with mplayer and subtitles ...
Here is the output from mencoder about the mkv :
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + duration: 1145.002s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] | + Track number: 1
[mkv] | + Track type: Video
[mkv] | + Codec ID: V_REAL/RV40
[mkv] | + CodecPrivate, length 34
[mkv] | + Default duration: 40.000ms ( = 25.000 fps)
[mkv] | + Default flag: 1
[mkv] | + Language: eng
[mkv] | + Video track
[mkv] | + Pixel width: 640
[mkv] | + Pixel height: 480
[mkv] | + Display width: 640
[mkv] | + Display height: 480
[mkv] | + a track...
[mkv] | + Track number: 2
[mkv] | + Track type: Audio
[mkv] | + Codec ID: A_AAC/MPEG2/LC/SBR
[mkv] | + Default duration: 42.667ms ( = 23.438 fps)
[mkv] | + Default flag: 1
[mkv] | + Language: jpn
[mkv] | + Audio track
[mkv] | + Sampling frequency: 24000.000000
[mkv] | + Channels: 2
[mkv] | + a track...
[mkv] | + Track number: 3
[mkv] | + Track type: Audio
[mkv] | + Codec ID: A_AAC/MPEG2/LC/SBR
[mkv] | + Default duration: 42.667ms ( = 23.438 fps)
[mkv] | + Default flag: 0
[mkv] | + Language: fre
[mkv] | + Audio track
[mkv] | + Sampling frequency: 24000.000000
[mkv] | + Channels: 2
[mkv] | + a track...
[mkv] | + Track number: 4
[mkv] | + Track type: Subtitle
[mkv] | + Codec ID: S_VOBSUB
[mkv] | + CodecPrivate, length 348
[mkv] | + Default flag: 1
[mkv] | + Language: fre
[mkv] | + a track...
[mkv] | + Track number: 5
[mkv] | + Track type: Subtitle
[mkv] | + Codec ID: S_TEXT/UTF8
[mkv] | + Default flag: 0
[mkv] | + Language: mis
[mkv] |+ found cluster, headers are parsed completely :)
[mkv] Track ID 1: video (V_REAL/RV40), -vid 0
[mkv] Track ID 2: audio (A_AAC/MPEG2/LC/SBR), -aid 0, -alang jpn
[mkv] Track ID 3: audio (A_AAC/MPEG2/LC/SBR), -aid 1, -alang fre
[mkv] Track ID 4: subtitles (S_VOBSUB), -sid 0, -slang fre
[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang mis
==> Found video stream: 1
[mkv] Aspect: 0.000000
[mkv] Will play video track 1
==> Found audio stream: 2
[mkv] Will play audio track 2
[mkv] VobSub size: 720x576
[mkv] VobSub forced subs: 0
[mkv] VobSub palette:
4af05a,81c44a,a3b833,c5a41f,a07c3d,7c6455,952336,b210a6,375be0,219e9b,49d58d,fe8080,b28080,7f8080,4d8080,008080
[mkv] VobSub custom colors: OFF
[mkv] VobSub colors: 000000,000000,000000,000000
[mkv] Will display subtitle track 4
From what I see, maybe the problem simply comes from the difference in
resolutions from the video stream (640x480) and the vobsub (720x576).
But then if I'm right why does mplayer manage to display them correctly and
not mencoder ?
Cheers
Marc Cousin
--
BOFH Excuse #151:
Some one needed the powerstrip, so they pulled the switch plug.
More information about the MEncoder-users
mailing list