Ivo Renkema
Ivo Renkema

Reputation: 2198

FFMPEG scale down image

This is for you FFMPEG gurus!

I have video that I take a screenshot image of. This works fine:

ffmpeg -i sourceMovie.mp4 -ss 0 -vframes 1 destImage.jpg

But I was hoping to also scale down the image to 150 px wide, in one fell swoop. Apparently, I should add

scale=150:-1

But where and how do I insert that in the command?

I have tried everything; nothing works ...

Upvotes: 1

Views: 2954

Answers (1)

TobiX
TobiX

Reputation: 944

scale is a VideoFilter, so you use "-vf":

ffmpeg -i sourceMovie.mp4 -ss 0 -vframes 1 -vf "scale=150:-1" destImage.jpg

Upvotes: 5

Related Questions