- Home
- Uncategorized
- Get One Frame of Video With AVConv/ FFMPEG
Get One Frame of Video With AVConv/ FFMPEG
Get one frame from video at 2 sec
ffmpeg -ss 2 -i vid.mp4 -qscale:v 4 -frames:v 1 vid.jpg
avconv -ss 2 -i vid.mp4 -qscale:v 4 -frames:v 1 vid.jpg
Wondering the difference between ffmpeg and avconv? They have about the same flags and parameters and much of the same codebase, so use whichever one is installed on your machine (or install one if neither is available) To check if ffmpeg or avconv is available on linux use the which command:
which avconv/usr/bin/avconv (Empty output means not installed)
which ffmpeg/usr/bin/ffmpeg (Empty output means not installed)