[FFmpeg-user] Help with ffmpeg code

B James chrisjames123 at hotmail.com
Tue Aug 21 19:54:57 EEST 2018


I'm trying to add code so the php/linux web video script that I'm using, will add a watermark upon each video upload.

I've added this '$shell' line, in between the existing code lines here, with no success:

$input_path = $full_dir . $file_upload['filename'];

$shell = shell_exec("$ffmpeg_b -y -i "/var/www/realmedi/watermark1.png -vcodec libx264 -preset {$pt->config->convert_speed} -filter:v scale=426:-2 -crf 26 $video_output_full_path_240 2>&1");

$output_path = $full_dir . $thumb;

Any help will be appreciated.

More information about the ffmpeg-user mailing list