Another idea:
Choice between php exec() or pclose(popen(”)) execution. This will also enable the plugin to work on both Linux and Windows (IIS) servers.
Oh, I just realized that the system does NOT embed the watermark in the video, but only overlays it. This is not good for copy protection.
Thanks for the suggestions. I’ve put some of these on my future features list. I’m won’t be actively developing the plugin for the next few weeks so I wouldn’t expect anything for a while.
The watermark is just a quick branding option. If you’re seeing a white background it’s because your image has a white background. It’s just a straight image overlay and works for users who don’t have FFMPEG installed. I’ll consider adding some FFMPEG watermark options.
I know that I tested the pclose popen method when I first started this plugin, but that was two years ago and I don’t remember why but it didn’t work as well as exec. Exec works on Windows servers too.
Okay. Exec Works for me now, too, for some reason.
I have read that pclose/popen is a bit slower but not sure why that should be.
Oh, for the record, the correct watermarking parameter is below. I tested the one I wrote, that doesn’t work because it does not support absolute paths (or it does, but then your string has to be programmed differently).
Instead, use (as FIRST parameter in the command):
-i “(full-path-to-watermark-PNG)” -filter_complex overlay=main_w-overlay_w-10:main_h-overlay_h-10
To render the watermark at the bottom right, 10px from the border. Might want to set that to 16-20 or so.
The watermark must be PNG-24 ffmpeg must be compiled with zlib and png support.
For your reference (I know a lot of distros have ffmpeg not supporting h264 and watermarking by default), an FFMPEG supporting your plugin fully has to be compiled with the following parameters in ./configure:
–enable-libvo-aacenc –enable-version3 –enable-libfaac –enable-nonfree –enable-libx264 –enable-gpl –enable-avfilter –enable-libopenjpeg –enable-libvorbis –enable-libvpx –enable-zlib1g –enable-decoder=png –enable-encoder=png
-Peter
Oh thank ppehrson and Kyle Gilman.
ppehrson i am successfully add overlay my video when i update. Thank for your idea. This parameters work:
./configure --enable-gpl --enable-bzlib --enable-zlib --enable-version3 --enable-nonfree --enable-libx264 --enable-gpl --enable-avfilter --enable-libvorbis --enable-decoder=png --enable-encoder=png
Watermark overlays for encoded videos are now available in version 4.3 of the plugin.