Skip to content

Instantly share code, notes, and snippets.

@joar
Created February 11, 2013 21:36
Show Gist options
  • Save joar/4757830 to your computer and use it in GitHub Desktop.
Save joar/4757830 to your computer and use it in GitHub Desktop.
Discover a media file using python-gst0.10, excerpt from interactive session
# coding: utf-8
import gst
from gst.pbutils import Discoverer
d = Discoverer(50000000000)
r = d.discover_uri('file:///home/joar/Downloads/MVI_4364.AVI')
r.get_duration() / gst.SECOND
r.get_seekable()
r.get_result()
r.get_video_streams()
r.get_video_streams()[0]
o = r.get_video_streams()[0]
o.get_caps()[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment