DREAM
DREAM

Reputation: 426

ffmpeg crop video from top screen

From this

enter image description here

To this

enter image description here

My code not working because it's crop from both side (top & bottom)

ffmpeg -i input.mp4 -filter:v "crop=iw:ih-100" -r 0.40 o/output_%04d.jpg

Upvotes: 2

Views: 709

Answers (1)

Yaguza2018
Yaguza2018

Reputation: 56

ffmpeg -i input.mp4 -vf "scale=960:-1,crop=in_w:in_h-200:0:out_h" -r 0.40 o/output_%06d.jpg

Upvotes: 4

Related Questions