I created a video with group of images and mp3. But i want to add a watermark text to that video .i am using the below code to add the text.
exec(\'/usr/loca
Command:
ffmpeg -i input.mp4 -i watermark.png -filter_complex 'overlay' output.mp4
Try this code in your controller.
public function setWaterMark(Request $request_body){
try {
$watermark = Input::file('watermark');
$input = Input::file('input');
ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$cmd = $ffmpeg . " -i " . $input . " -i " . $watermark . " -filter_complex 'overlay' " . $output_file;
exec($cmd, $output);
return $output_file;
}