/    Sign up×
Community /Pin to ProfileBookmark

Help to find solution to video/watermark being unsharp/pixelated

the web video script that I’m using adds a watermark successfully, however, the watermark.png looks ok on the small screen, but when full screen is selected the watermark.png image looks much less sharp.

‘scale2ref’ seems like a possible solution. I have tried different attempts with it without success. The ffmpeg documentation shows:

“Scale a logo to 1/10th the height of a video, while preserving its display aspect ratio”:
[logo-in][video-in]scale2ref=w=oh*mdar:h=ih/10[logo-out][video-out]

https://ffmpeg.org/ffmpeg-filters.html#scale2ref

I need guidance with integrating ‘scale2ref’ parameter into this current line of code:

[code]
$ffmpegCommand =”.$ffmpeg_b.’ -y -i ‘.$video_file_full_path.’ -i ‘.escapeshellarg($watermark_image_full_path).’ -i ‘.escapeshellarg($watermark_image_full_path).’ -filter_complex “scale=426:-2, scale=426:-2, overlay=10:10, overlay=170:170:enable=between(t,5,5+2)” -vcodec libx264 -preset ‘.$pt->config->convert_speed.’ -crf 26 ‘.$video_output_full_path_240.’ 2>&1′;
[/code]

any assistance is appreciated

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @chrisjchrisj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...