[MPlayer-users] Subtitleproblem encoding OGG to MPEG2

Thomas Heuving heuving at gmx.de
Sun Feb 17 19:16:28 CET 2008


I want to encode an OGG-Film to MPEG2. When I play the film through mplayer
with -sid 0, I see the subtitles, but mencoder doesn't put them in the
MPEG2-file.
My Commandline and the output of mencoder is as follows
(some whitespace deleted and some very long output truncated)
| # mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd\
| -ofps 30000/1001 -vf scale=704:448,expand=720:480,harddup -lavcopts \
| acodec=ac3:abitrate=128:dc=10:vcodec=mpeg2video:vrc_buf_size=1835:\
|vrc_maxrate=9000:|vbitrate=3000:keyint=15:trell:mbd=2:aspect=16/9\
| -af-adv force=1 -srate 48000 -af lavcresample=48000,volnorm\
| -subpos 100 -subfont-blur 6 -subfont-outline 3\
| -subfont-text-scale 7 -fontconfig -font 'Echelon Condensed'\
| -subcp latin1 -o metadefumaca_ueng.mpg -ss 370 -sid 0 -endpos 60\
| Metade.Fumaca.ogm

| MEncoder 1.0rc2-SUSE Linux 10.2 (i686)-Packman-4.1.2 (C)\
| 2000-2007 MPlayer Team
| CPU: AMD Athlon(tm) Processor (Family: 6, Model: 6, Stepping: 2)
| CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
| Compiled with runtime CPU detection.
| success: format: 0  data: 0x0 - 0x2b9c6454
| [Ogg] stream 0: video (FOURCC XVID), -vid 0
| [Ogg] stream 1: audio (Vorbis), -aid 0
| [Ogg] stream 2: audio (Vorbis), -aid 1
| [Ogg] stream 3: subtitles (SRT-like text subtitles), -sid 0
| [Ogg] Language for -sid 0 is '-slang "English"'
| Demuxer info Language changed to English
| Ogg file format detected.
| VIDEO:  [XVID]  544x288  24bpp  29.970 fps 0.0 kbps ( 0.0 kbyte/s)
| [V] filefmt:18 fourcc:0x44495658 size:544x288 fps:29.97 ftime:=0.0334
| ====================================================================
| Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
| AUDIO: 48000 Hz, 2 ch, s16le, 507.0 kbit/33.01% (ratio: 63375->192000)
| Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis decoder)
| =====================================================================
| PACKET SIZE: 2048 bytes, deltascr: 43885
| Opening video filter: [expand osd=1]
| Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
| Opening video filter: [harddup]
| Opening video filter: [expand w=720 h=480]
| Expand: 720 x 480, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
| Opening video filter: [scale w=704 h=448]
| =====================================================================
| Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
| Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
| ====================================================================
| Limiting audio preload to 0.4s.
| Increasing audio density to 4.
| VDec: vo config request - 544x288 (preferred colorspace: Planar YV12)
| VDec: using Planar YV12 as output csp (no 0)
| Movie-Aspect is 1.89:1 - prescaling to correct movie aspect.
| SwScaler: reducing / aligning filtersize 5 -> 4
| SwScaler: reducing / aligning filtersize 5 -> 4
| SwScaler: reducing / aligning filtersize 5 -> 4
| SwScaler: reducing / aligning filtersize 5 -> 4
| [swscaler @ 0x885b2f0]SwScaler: BICUBIC scaler, ...
| [swscaler @ 0x885b2f0]SwScaler: using 4-tap MMX scaler  ...
| [swscaler @ 0x885b2f0]SwScaler: using 4-tap MMX scaler  ...
| [swscaler @ 0x885b2f0]SwScaler: using n-tap MMX scaler  ...
| [swscaler @ 0x885b2f0]SwScaler: 544x288 -> 704x448
| videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])
| [VE_LAVC] High quality encoding selected (non-realtime)!
| Writing header...
| INITV: 0.200, 0.167, fps: 29.970
| Pos: 60.0s 1799f ( 7%) 3.82fps Trem: 100min 317mb A-V:0.037 [3030:128]
| Flushing video frames.
| Writing index...
| 
| Overhead: 2.774% (650927 / 23464273)
| Writing header...
| 
| Video stream: 3030.180 kbit/s  (378772 B/s)  size: 22736437 bytes...
| 
| Audio stream:  128.000 kbit/s  (16000 B/s)  size: 960000 bytes ...


-- 
Thomas Heuving




More information about the MPlayer-users mailing list