Results 1 to 10 of 14

Thread: Need Step By Step Tutorial For FFMPEG Hardcoded Watermark

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    May 2009
    Location
    On Earth
    Posts
    15

    Post FFmpeg 0.6 VIDEO HARDCODED WATERMARK

    vhook is obsolete now unless your server is using FFmpeg 0.5 most servers have upgraded to FFmpeg 0.6 . FFmpeg 0.6 uses libavfilterwich instead of adding a subtitle it adds an overlay a PNG with background transparency. So to add a water mark to videos using FFmpeg you need to do the steps below....

    **FIRST BACKUP YOUR FILES**


    • install FFmpeg 0.6 ( I used Google and found this site Using FFmpeg to add and watermark / overlay on a video )
    • make a .png of your logo with background transparency (background transparency must be the same size as the converted videos EG. 320x240). I have uploaded my logo as an example for you.
    • add the .png to your folder /include/settings/
    • edit your video_conversion.php file with the code below


    In /include/settings/video_conversion.php find the code $cmd_all = (towards the end of the file) . replace the code with the code below...

    PHP Code:
    //ffmpegflv - ffmpeg codec 11-2-10 converts to .flv With Watermark
    $cmd_ffmpegflv "$config[ffmpeg] -i '$video_src' -s 320x240 -f flv -b 900k -acodec libfaac -ab 16k -vf 'movie=0:png:/home/YOUR_USERNAME/public_html/include/settings/watermark_flvideo.png [wm];[in][wm] overlay=1:0:0 [out]' $video_flv > /home/YOUR_USERNAME/public_html/include/settings/flvid.log 2>&1 ";

    $cmd_all $cmd_ffmpegflv
    Replace "YOUR_USERNAME" with your server path username and you can adjust the quality and size to your liking. Also ONLY NEWLY UPLOADED VIDEOS WILL HAVE THE WATERMARK and vShare DOSE NOT CONVERT .FLV FILES, however I can change the file in the vShare script to convert .flv files. I hope this helps PLEASE post your questions / comments on this forum so that everyone can benefit. Thanks

    ~zelda180~
    www.80TOONS.com
    Last edited by zelda180; 12-20-2010 at 07:20 AM.
    I have a heavily modified version of vShare 2.8 beta WITH my own mobile addon at 80TOONS.com . Please let me know what you think.

    HOSTING WITH FULL vShare SUPPORT, my mobile addon support for vShare 2.8 & FFmpeg permanent video water marking at GIFTSnMORE.com . Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •