-
easy watermark for videos
/inc/classe/BxDolTransconderVideo.php
replace "protect function applyFilter ($sFile, $aParams, array (
for
protected function applyFilter_Mp4 ($sFile, $aParams) { return $this->_convertVideo($sFile, $sFile, '.mp4', $aParams, array ( 'strict' => 'experimental', 'vcodec' => 'libx264', 's' => $this->_getOptionSizeForVideo ($sFile, $aParams), 'b:v' => isset($aParams['video_bitrate']) ? $aParams['video_bitrate'] . 'k' : '512k', 'movflags' => '+faststart', 'acodec' => 'aac', 'ar' => '44100', 'b:a' => isset($aParams['audio_bitrate']) ? $aParams['audio_bitrate'] . 'k' : '128k', 'pix_fmt' => 'yuv420p', 'vf' => "drawtext=text='votrewatermark':fontcolor=white:fontsize=24:x=w-tw-10:y=h-th-10" )); }For webm
protected function applyFilter_Webm ($sFile, $aParams) { return $this->_convertVideo($sFile, $sFile, '.webm', $aParams, array ( 's' => $this->_getOptionSizeForVideo ($sFile, $aParams), 'b:v' => isset($aParams['video_bitrate']) ? $aParams['video_bitrate'] . 'k' : '512k', 'acodec' => 'libvorbis', 'ar' => '44100', 'b:a' => isset($aParams['audio_bitrate']) ? $aParams['audio_bitrate'] . 'k' : '128k', 'pix_fmt' => 'yuv420p', 'vf' => "drawtext=text='votrewatermark':fontcolor=white:fontsize=24:x=w-tw-10:y=h-th-10" )); }this is to include your site name on the video encoding. Replace your watermark with the desired text