How to create video thumbnails with Python and Gstreamer
I'd like to create thumbnails for MPEG-4 AVC videos using Gstreamer and Python. Essentially: Open the video file Seek to a certain point in time (e.g. 5 seconds) Grab the frame at that time Save the frame to disc as a .jpg file I've been looking at this other similar question , but I cannot quite figure out how to do the seek and frame capture automatically without user input. So in summary, how can I capture a video thumbnail with Gstreamer and Python as per the steps above? daf To elaborate on ensonic 's answer, here's an example: import os import sys import gst def get_frame(path, offset=5,