I'm trying to overlay a logo on my Axis webcam stream using ffmpeg and ffserver. The overlay seems to work fine when output is a file but when I send the output to ffserver the video displays but the logo is nowhere to be found. I'm using Centos 6.3 and a new git version of ffmpeg. The only version I've been able to make this work on is ffmpeg-0.8.7 but the video isn't as smooth and cuts out frequently.

My commands:

ffmpeg -i rtsp://root:password@192.168.1.5/axis-media/media.amp -vf "movie=/home/webcam/logo/glow.png [logo]; [in][logo] overlay=10:main_h-overlay_h-10 [out]" http://localhost:8090/feed1.ffm

ffserver.conf:

Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 100
# max bandwidth per-client (kb/s)
MaxBandwidth 60000

RTSPPort 5454
RTSPBindAddress 0.0.0.0

<Feed feed1.ffm>
        File /var/www/tmp/feed1.ffm
        FileMaxSize 50000M
        ACL allow localhost
</Feed>



# Access log file (uses standard Apache log file format)
# '-' is the standard output.
CustomLog /var/log/ffserver

# FLV output - good for streaming
<Stream water.flv>
        # the source feed
        Feed feed1.ffm
        # the output stream format - FLV = FLash Video
        Format flv
        VideoCodec flv
        # this must match the ffmpeg -r argument
        VideoFrameRate 20
        # generally leave this is a large number
        #VideoBufferSize 260000
        # another quality tweak
        VideoBitRate 100
        # quality ranges - 1-31 (1 = best, 31 = worst)
        VideoQMin 1
        VideoQMax 2
        VideoSize 512x288
        # this sets how many seconds in past to start
        PreRoll 5
        # wecams don't have audio
        NoAudio
</Stream>



<Stream stat.html>
        Format status
ACL allow localhost
</Stream>



<Redirect index.html>
        # credits!
        URL http://ffmpeg.sourceforge.net/
</Redirect>


Console Output:

ffmpeg version N-46775-geca2eb2 Copyright (c) 2000-2012 the FFmpeg developers built on Nov 15 2012 13:26:20 with gcc 4.4.6 (GCC) 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      52.  6.100 / 52.  6.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.100 /  3. 23.100
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[rtsp @ 0x2fb8240] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://root:tideflow@172.31.26.12/axis-media/media.amp':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac, 16000 Hz, mono, s16
[tcp @ 0x2fb8180] TCP connection to localhost:8090 failed: Connection refused [tcp @ 0x3212980] TCP connection to localhost:8090 failed: Connection refused
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
    title           : Media Presentation
    creation_time   : now
    encoder         : Lavf54.36.100
Stream #0:0: Video: flv1, yuv420p, 512x288 [SAR 1:1 DAR 16:9], q=1-2, 100 kb/s, 1000k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> flv)
Press [q] to stop, [?] for help
[flv @ 0x30090e0] rc buffer underflow
    Last message repeated 39 times
rc buffer underflow q=31.0 size= 212kB time=00:00:01.40 bitrate=1239.3kbits/s dup=2 drop=0
[flv @ 0x30090e0] rc buffer underflow
    Last message repeated 13 times
rc buffer underflow q=31.0 size= 268kB time=00:00:01.90 bitrate=1154.3kbits/s dup=2 drop=0



The connection refused messages might be a clue but the main video streams fine and looks great.

Any help would be greatly appreciated!


_______________________________________________
ffserver-user mailing list
ffserver-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffserver-user

Reply via email to