Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques How to add a watermark on server side through ffmpeg and Libavfilter?

  • How to add a watermark on server side through ffmpeg and Libavfilter?

    Posted by Sajjad Raja on August 31, 2011 at 1:17 pm

    anybody can help me out to add watermark on server side through ffmpeg, i think this is only way to add watermark on your website videos, my ffmpeg virsion is
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
    built on Aug 17 2011 00:51:29 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
    configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3
    libavutil 50.36. 0 / 50.36. 0
    libavcore 0.16. 1 / 0.16. 1
    libavcodec 52.108. 0 / 52.108. 0
    libavformat 52.93. 0 / 52.93. 0
    libavdevice 52. 2. 3 / 52. 2. 3
    libavfilter 1.74. 0 / 1.74. 0
    libswscale 0.12. 0 / 0.12. 0

    any help will really apriciated, thankx in advance

    Michael Rampe replied 14 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Rampe

    September 4, 2011 at 9:35 pm

    [Sajjad Raja] “anybody can help me out to add watermark on server side through ffmpeg”

    Try adding this to your command line. (with overlay.png as your watermark image with alpha)

    -vf “movie=overlay.png[watermark];[in][watermark]overlay=0:0:1[out]”

    overlay=0:0:1 represents the [x-position:y-position:alpha]

    Careful not to overlay outside of source size as it will fail.

    Michael

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy