[FFmpeg-user] Help with ffmpeg code

Joshua Grauman jnfo-c at grauman.com
Tue Aug 21 12:59:57 EEST 2018


> Hello,
>
> 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.

ffmpeg -i 00005.MTS -loop 1 -i logo.png -filter_complex[0:0][1:0]overlay=10:main_h-overlay_h-10:format=rgb[out]" -shortest -map [out] out.mp4

This is basically what I do to put a watermark/logo in the corner...

Josh

>
>
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list