[MEncoder-users] bmol overlay/watermark

Matthew Augier (dps) matthew at dps.uk.com
Tue Jul 27 22:17:36 CEST 2010


Hi all

 

I'm working on a project in php that has to convert input videos to
FVL/WMP/MP4 to a specified size. This is my first encounter with mencoder,
but by using google and various websites I seem to pretty much have this
working.. Except the watermark I need to add!

 

Eg. my FLV

----------------------------------------------------------------------------
-----------------------------------------

Converting to FLV
mencoder /home/farhost/public_html/cms/uploads/videos/MOV01607.MPG -o
/home/farhost/public_html/cms/content/videos/2/MOV01607.flv -of lavf -oac
mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf
bmovl=0:0:/home/farhost/public_html/cms//content/mylogo.fifo,scale=500:350
MEncoder SVN-r29417-4.1.2 (C) 2000-2009 MPlayer Team

success: format: 0  data: 0x0 - 0x15efa1b

MPEG-PS file format detected.

VIDEO:  MPEG1  640x480  (aspect 1)  30.000 fps    0.0 kbps ( 0.0 kbyte/s)

[V] filefmt:2  fourcc:0x10000001  size:640x480  fps:30.000  ftime:=0.0333

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 32000 Hz, 2 ch, s16le, 64.0 kbit/6.25% (ratio: 8000->128000)

Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

OK, exit.

Opening video filter: [expand osd=1]

Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1

Opening video filter: [scale w=500 h=350]

Opening video filter:
[bmovl=0:0:/home/farhost/public_html/cms//content/mylogo.fifo]

==========================================================================

Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough

VDec: vo config request - 640 x 480 (preferred colorspace: Mpeg PES)

Could not find matching colorspace - retrying with -vf scale...

Opening video filter: [scale]

VDecoder init failed :(

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)

==========================================================================

MP3 audio selected.

VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)

VDec: using Planar YV12 as output csp (no 0)

Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.

videocodec: libavcodec (500x350 fourcc=31564c46 [FLV1])

[VE_LAVC] High quality encoding selected (non-realtime)!

Pos:   0.0s      1f ( 1%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

VIDEO CODEC ID: 22

AUDIO CODEC ID: 15001, TAG: 0

Writing header...

Pos:   0.1s      2f ( 1%)  0.00fps Trem:   0min   1mb  A-V:0.003 [0:0]

. cut .

Pos:  17.6s    531f (100%) 61.90fps Trem:   0min   1mb  A-V:0.027 [576:46]

Flushing video frames.

Writing index...

 

Video stream:  576.829 kbit/s  (72103 B/s)  size: 1269023 bytes  17.600 secs
531 frames

 

Audio stream:   46.974 kbit/s  (5871 B/s)  size: 103688 bytes  17.659 secs

----------------------------------------------------------------------------
-----------------------------------------

The mylogo.fifo was created using the convert command (gif with
transparency) followed by the echo cat stuff, and I believe it's ok.

 

The output plays perfect, but no overlay/watermark.. Is the "VDecoder init
failed :(" anything to do with the watermark, does that mean I created it
wrong?

 

Any help/pointers welcome!

 

Mat

 



More information about the MEncoder-users mailing list