[MPlayer-users] mencoder fails to burn SubRip subtitles

kogyaru mplayer-users-20070523 at cheeze.org
Wed May 23 18:20:24 CEST 2007


I'm having trouble getting mencoder to hardcode subtitles in SubRip 
format. (I have a specific need to have subs hard-coded.)

How do I make it happen?

Version is: MEncoder 1.0rc1-4.1.2
             MPlayer 1.0rc1-4.1.2

mplayer loads the subtitle fine, and plays it back onscreen.

Following are two example commandlines I'm using. I've tried several 
different variations. None seem to work. The final output is always 
missing subtitles entirely.

   mencoder test.h264 -nosound -ovc lavc -lavcopts vcodec=mpeg4 \
     -o test.avi -sub "test.srt" -endpos 00:00:10

   mencoder -nosound -of rawvideo -vf harddup -noskip -ovc x264 \
     -sub test.srt -endpos 00:00:10 -o test.NEW.h264 test.h264

Should I expect the mencoder output to show more than two SUB: lines, e.g. 
are there more than two for a successful recognition of subtitles?

There is nothing active in my ~/.mplayer/config file, e.g. the lines are 
all commented out.

Subtitle file contents:

   00:00:03,708 --> 00:00:8,725
   This is a test message.

Font dir:

   /home/kogyaru/.mplayer/font% ls -la
   total 448
   drwxr-xr-x 2 kogyaru users   4096 May 23 12:04 .
   drwxr-xr-x 4 kogyaru users   4096 May 23 12:05 ..
   -rw-r--r-- 1 kogyaru users 194752 Apr  7  2002 cp1250-a.raw
   -rw-r--r-- 1 kogyaru users 194752 Apr  7  2002 cp1250-b.raw
   -rw-r--r-- 1 kogyaru users   6720 Jul 13  2003 font.desc
   -rw-r--r-- 1 kogyaru users  17952 Jul 13  2003 osd-mplayer-a.raw
   -rw-r--r-- 1 kogyaru users  17952 Jul 13  2003 osd-mplayer-b.raw


   MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
   CPU: Intel(R) Xeon(TM) CPU 2.00GHz (Family: 15, Model: 2, Stepping: 7)
   CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
   Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

   success: format: 0  data: 0x0 - 0x18f4e44
   libavformat file format detected.
   VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
   [V] filefmt:35  fourcc:0x34363248  size:1280x720  fps:23.98  ftime:=0.0417
   SUB: Detected subtitle file format: subviewer
   SUB: Read 1 subtitles.
   Opening video filter: [expand osd=1]
   Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
   Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
   Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
   VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
   VDec: using Planar YV12 as output csp (no 0)
   Movie-Aspect is undefined - no prescaling applied.
   videocodec: libavcodec (1280x720 fourcc=34504d46 [FMP4])
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Pos:  16.0s    385f (47%) 10.94fps Trem:   0min   5mb  A-V:0.000 [1479:0]
   Flushing video frames
   Writing index...
   Writing header...
   Video stream: 1479.377 kbit/s  (184922 B/s)  size: 2961717 bytes  16.016 secs  385 frames

More information about the MPlayer-users mailing list