Skip to content

Instantly share code, notes, and snippets.

@patrickward
Created December 5, 2013 03:39
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save patrickward/7799742 to your computer and use it in GitHub Desktop.
Save patrickward/7799742 to your computer and use it in GitHub Desktop.
Convert mp4 to jpg with avconv/ffmpeg
avconv -i inbound.mp4 -vsync 1 -r 0.1 -an -y 'outbound-folder/video-clip-%4d.jpg'
@brendan8c
Copy link

brendan8c commented Nov 11, 2020

If you use 30 frames per second.
The jpg quality is poor. All pictures with artifacts.
Only png format comes out without artifacts.
If you know how to make high quality jpg images without artifacts from mp4 videos, let me know..
ffmpeg -i "*.mp4" -y -vf fps=30 "file-%%03d.jpg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment