0

I am trying to get a thumbnail from a video with ffmpeg

the command I tried is:

ffmpeg -i zzz.mp4 -ss 00:00:03  -f image2 foobar.jpeg

and this command works fine, except that the resolution is 1920 * 1080 by default. while in my scenario, I've prefer a smaller picture, say 300 * 300. in this answer, Jeff Ward suggests the command:

ffmpeg -ss 00:00:01.00 -i input.mp4 -vf 'scale=320:320:force_original_aspect_ratio=decrease' -vframes 1 output.jpg

but the picture produced seems garbled on my linux, i dont' know why, is there any other parameter that maybe available for this ? Thanks in advance. foobar.jpeg

Bill Wu
  • 11
  • 2

0 Answers0