[FFmpeg-user] Overlay Filter Broken?

Clément Bœsch ubitux at gmail.com
Tue Nov 13 23:09:53 CET 2012


On Tue, Nov 13, 2012 at 01:10:40PM -0800, defunct wrote:
> This is so frustrating.  I'm trying to use a live Axis webcam stream and the
> overlay filter to put a logo in the corner of my video.  I've got this
> working on an older Centos server but want to upgrade to a newer version and
> I can't find one that works.
> 
> Last time I got this working by downloading libavfilter and checking out
> ffmpeg with the checkout.sh script.  Now when I do that, the latest ffmpeg
> snapshot doesn't stream smoothly on a recent copy of debian or Centos 6.2.
> 
> The last thing I've done is download ffmpeg-0.10.6 and built it from source. 
> With this version, the camera is really smooth but the overlay doesn't
> happen.
> 
> ffmpeg version 0.10.6 Copyright (c) 2000-2012 the FFmpeg developers

0.10 is far from being up-to-date, check the official download page.

>   built on Nov 12 2012 14:02:22 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4)
>   configuration: --enable-filter=movie --enable-avfilter --enable-libmp3lame
> --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
> --enable-gpl
>   libavutil      51. 35.100 / 51. 35.100
>   libavcodec     53. 61.100 / 53. 61.100
>   libavformat    53. 32.100 / 53. 32.100
>   libavdevice    53.  4.100 / 53.  4.100
>   libavfilter     2. 61.100 /  2. 61.100
>   libswscale      2.  1.100 /  2.  1.100
>   libswresample   0.  6.100 /  0.  6.100
>   libpostproc    52.  0.100 / 52.  0.100
> 
> 
> Here's my command:
> 
> ./ffmpeg -i rtsp://root:password@192.168.100.5/axis-media/media.amp  -y
> -vsync 2 -s 512x288 -vf "movie=0:png:/home/webcam/logo/glow.png [logo];
> [in][logo] overlay=10:10:1 [out]" http://localhost:8090/feed1.ffm
> 

-s 512x288 will insert a scale filter at the end, or at the beginning of
your filtergraph, depending on the wind speed. It's better to insert a
scale=512:288 yourself in the -vf where you want it.

Also, your output is missing so we can't guess what's wrong.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121113/92c2ffb5/attachment.asc>


More information about the ffmpeg-user mailing list