Guest User

Untitled

a guest
May 27th, 2010
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import gst
  2. import gobject
  3.  
  4. def xxx():
  5. pipeline.seek(-0.5, gst.FORMAT_TIME, gst.SEEK_FLAG_NONE,
  6. gst.SEEK_TYPE_SET, 10 * gst.SECOND, gst.SEEK_TYPE_NONE, 0)
  7.  
  8. pipeline = gst.parse_launch('filesrc location=/path/to/file/video.mkv ! matroskademux ! decodebin ! autovideosink name=sink')
  9. pipeline.set_state(gst.STATE_PLAYING)
  10.  
  11. gobject.timeout_add_seconds(6, xxx)
  12.  
  13. loop = gobject.MainLoop()
  14. loop.run()
Advertisement
Add Comment
Please, Sign In to add comment