I run a video site, I'd like to be able to add our watermark, either as a graphic or text to each video (wmv format) on the fly...is it possible to do?
I think it's difficult to add it to the video itself (Would be a lot easier if you used flash) You could make a overlay div, displaying the adds.
I guess an overlay could be used if it was played on the site and a screenshot taken there but isn't likely. I found this thread on it working using ffmpeg: http://www.phpro.org/tutorials/Video-Conversion-With-FFMPEG.html#6 http://forums.clip-bucket.com/showt...video-during-the-conversion&p=26428#post26428 Anyone want to try and we can do this as a paid project...
yea, just use ffmpeg... it's what i do for my porn site... HOWEVER! if your hosting the video like i am... you'll probably notice how putting a simple watermark totally screws up with the video compression. it can some times double the size of your video :S an ugly watermark with no alpha, and that is with a solid background would probably lower the file size slightly though. yea, i thought about doing it for my site, but decided not to. --- but yeah... it's not difficult to do... in php you would do something like, //make sure you keep threads @ 1 or it'll lag your entire server //-vf is ffmpeg's NEW way of adding watermarks; and obviously the logo.png is the logo //vcodec is the codec, duh! libx264 is mp4 format exec(ffmpegPath. ' -i '.$file.' -vf "movie=logo.png [logo];[in][logo] overlay=10:main_h-overlay_h-10 [out]" -threads 1 -vcodec libx264 -sameq '.$dest, $out, $ret); PHP:
Using ffmpeg is a horrible idea.. as hotnoob (lol) said, it will screw up the vid compression pretty badly. The best bet is to use an external program, that you can execute through php (and even pass the set parameters). But it depends on the platform that you are using, and the server privilege that you have.
you just can't beat ffmpeg lol... it is fairly difficult to learn, but once you know it, you don't really forget it lol...