Take a screenshot of a Video On Demand Stream

You can utilize FFMPEG to grab a screenshot of your live stream as follows:

ffmpeg -i sample.mp4 -f image2 -vframes 1 snapshot.png

Furthermore you can get successive ongoing screenshots by using:

ffmpeg -i sample.mp4 -f image2 -vf fps=fps=1 snapshot%d.png

Or take it at a specific second:

ffmpeg -y -i sample.mp4 -f mjpeg -vframes 1 -ss 534 sample.jpg

Comments are closed.