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
Bookmarks