Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #12659 (assigned defect)

Opened 12 months ago

Last modified 8 months ago

unable to fire subtitle to a video via mencoder

Reported by: sylvain.maucourt@… Owned by: ecronin@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: Cc:

Description

with the port of mplayer i can't add subtitle to a video. (it's possible with the binary offer by ffmpegX).

the command line is: %mencoder movie.avi -sub sub.srt -oac copy -ovc lavc -o out.avi

Change History

Changed 12 months ago by nox@…

  • cc ecronin@… added

Changed 10 months ago by milosh@…

Is mplayer able to display subtitles or is it a problem with just mencoder?

Did you install mplayer with +osd variant? This is the variant responsible for the display of fonts. (osd: Enable onscreen display and font support)

Changed 8 months ago by ecronin@…

  • cc ecronin@… removed
  • owner changed from macports-tickets@… to ecronin@…
  • version changed from 1.5.0 to 1.6.0
  • status changed from new to assigned

Could you try this again with 1.0rc2 and see if the problem still occurs? If so, please provide the (terminal) output from mencoder as well.

Changed 8 months ago by sylvain.maucourt@…

i try this command line: mencoder origin.avi -o fichier.avi -ovc lavc -oac copy -sub fichier.srt

with this version: swietenia:~ sylvek$ mencoder MEncoder 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz (Family: 6, Model: 15, Stepping: 6) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

the output: success: format: 0 data: 0x0 - 0x2bb47800 AVI file format detected. [aviheader] Video stream found, -vid 0 [aviheader] Audio stream found, -aid 1 VIDEO: [XVID] 656x272 12bpp 23.976 fps 1286.4 kbps (157.0 kbyte/s) [V] filefmt:3 fourcc:0x44495658 size:656x272 fps:23.98 ftime:=0.0417 SUB: Detected subtitle file format: subviewer SUB: Read 628 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: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== audiocodec: framecopy (format=2000 chans=5 rate=48000 bits=0 B/s=56000 sample-1) VDec: vo config request - 656 x 272 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 2.41:1 - prescaling to correct movie aspect. videocodec: libavcodec (656x272 fourcc=34504d46 [FMP4]) New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. Writing header...1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

1 duplicate frame(s)! Pos:3271.4s 78436f (97%) 177.74fps Trem: 0min 497mb A-V:0.042 [800:448]

I see this line: New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed.

is there a problem?

Note: See TracTickets for help on using tickets.