Insert "Watermark" on video at upload

4

I'm currently uploading videos with basic php. I do not use very complex code, I'm only in the basics! And this basics is pretty much as follows:

$mp4    = $_FILES['mp4'];
$mpname = $mp4['mpname'];
$mptmp  = $mp4['tmp_name'];
$mpsize = $mp4['size'];
$format ="mp4"; 
$mppasta        ="../videos/";
$mppermiti  =array('mp4');

After verifying everything I'm uploading the final

$upload = move_uploaded_file($tmp, $mppasta.'/'.$mpname);}; //Faz o upload do video para o servidor

I would like to know if you have any way to insert Watermark in the video at the time of upload

    
asked by anonymous 21.02.2015 / 01:50

1 answer

2

Take a look at this tool: link

And to run in php it would look something like this:

exec('ffmpeg -i meuvideo.mp4 -i marcadagua.png -filter_complex overlay saida.mp4');
    
21.02.2015 / 02:04