How to create video thumbnails with Python and Gstreamer

前端 未结 4 690
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 03:15

I\'d like to create thumbnails for MPEG-4 AVC videos using Gstreamer and Python. Essentially:

  1. Open the video file
  2. Seek to a certain point in time (e.g
4条回答
  •  一整个雨季
    2020-12-19 04:05

    Use playbin2. set the uri to the media file, use gst_element_seek_simple to seek to the desired time position and then use g_signal_emit to invoke the "convert-frame" action signal.

提交回复
热议问题