Insert "Watermark" on video at time of upload

Asked

Viewed 517 times

4

At the moment I upload simple videos with basic php. I don’t use very complex code, I’m only in the basics! And this basics is practically the following:

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

After checking everything I do the final upload

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

I wonder if you have any way to insert D'Água mark in the video at the time of upload

1 answer

2

Check out this tool: https://www.ffmpeg.org/

and to run in php would look something like this:

exec('ffmpeg -i meuvideo.mp4 -i marcadagua.png -filter_complex overlay saida.mp4');

Browser other questions tagged

You are not signed in. Login or sign up in order to post.