خرید بک لینک

Vote count: 0

This is my code that adds am image to videos, ruing via PHP:

exec('ffmpeg -i input.mp4 -i logo.png -filter_complex 
"[0:v][1:v] overlay=10:10"  -pix_fmt yuv420p -c:a copy output.mp4');

It works well but the problem is, the image is scaled down or up, up on the video resolution. For example in the following images the logo width is 50px but videos resolution are different:

enter image description here

and this one

enter image description here

How can I prevent the image from scaling down/up ?

asked 33 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 18 تير 1395 ساعت: 21:12

صفحه بندی