Adding ImageMagick to my ffmpeg code be a solution?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
chrisj
Posts: 1
Joined: 2019-05-29T13:00:45-07:00
Authentication code: 1152

Adding ImageMagick to my ffmpeg code be a solution?

Post by chrisj » 2019-05-29T13:33:55-07:00

Hello!
The php web video script that I’m using (uses ffmpeg) automatically adds a watermark to an uploaded video.
It uploads these sizes to the videos folder for the single video: 240, 360, 480, 720, 1080, 2048 and 4096
I’m trying to find a solution where the watermark image doesn’t look blurry when ‘full screen’ mode is selected.

Would adding ImageMagick to my ffmpeg code here be a solution:

Code: Select all

$ffmpegCommand =''.$ffmpeg_b.' -y -i '.$video_file_full_path.' -i '.$watermark_image_full_path.' -filter_complex "scale=426:-2, overlay=10:10, " -vcodec libx264 -preset '.$pt->config->convert_speed.' -crf 26 '.$video_output_full_path_240.' 2>&1';
If so, can you suggest how I would proceed to try/test that? And/or provide a code example?
(I can provide some visual aid (images) if needed)
Any guidance is appreciated

Post Reply