Skip to content

Instantly share code, notes, and snippets.

@kpping
Created December 11, 2018 04:15
Show Gist options
  • Save kpping/b2fa8265bfa1351464922673c89ce08d to your computer and use it in GitHub Desktop.
Save kpping/b2fa8265bfa1351464922673c89ce08d to your computer and use it in GitHub Desktop.
Create PNG image (poster) from video
#!/usr/bin/env bash
FILE_VIDEO="video.mp4" # in
FILE_PNG="poster.png" # out
ffmpeg -i $FILE_VIDEO -ss 00:00:01.000 -vframes 1 $FILE_PNG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment