Jump to content

FFMPEG thumbnail padding


ala888

Recommended Posts

Hello, I did a full search on the forums and nothing on the topic came up.

I want to create a thumbnail via FFMPEG from php.However, the two methods I see widespread across the internet each give me respectively only half of what I want.-s 100x100 gives me a thumbnail that is distorted while

-vfilter 100:-1 leads to grossly varying dimensions of the thumbnails itself.

 

Is there a way to achieve the best of both worlds into a seemingly "youtube" style format?Where the ratio of the original file is kept and merely scaled down to a set dimension(both x and y) and padded by black on both sides?Thanks for the help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...