Opened 17 years ago

Closed 10 years ago

#12659 closed defect (fixed)

unable to fire subtitle to a video via mencoder

Reported by: sylvain.maucourt@… Owned by: ecronin (Eric Cronin)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: MPlayer

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 (7)

comment:1 Changed 17 years ago by nox@…

Cc: ecronin@… added

comment:2 Changed 17 years 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)

comment:3 Changed 17 years ago by ecronin (Eric Cronin)

Cc: ecronin@… removed
Owner: changed from macports-tickets@… to ecronin@…
Status: newassigned
Version: 1.5.01.6.0

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.

comment:4 Changed 17 years 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?

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Port: MPlayer added

comment:7 Changed 10 years ago by ecronin (Eric Cronin)

Resolution: fixed
Status: assignedclosed

Going to assume this was fixed in one of the updates in the last 7 years...

Note: See TracTickets for help on using tickets.