From: Scott S. <shu...@co...> - 2006-08-29 01:28:24
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm working on a python program which will display video with text and time overlays additionally. Here is relevant code for the pipeline: #gstreamer setup self.pipeline = gst.Pipeline() self.playbin = gst.element_factory_make ("playbin") self.playbin.props.audio_sink = gst.element_factory_make ("alsasink") self.video_process = gst.Bin() self.timeoverlay = gst.element_factory_make ("timeoverlay") self.textoverlay = gst.element_factory_make ("textoverlay") self.textoverlay.props.text = "An Annotool test." self.xvimagesink = gst.element_factory_make ("xvimagesink") self.video_process.add (self.textoverlay,self.xvimagesink) #self.pad = gst.Pad ("mysrc", gst.PAD_SRC) #self.pad.set_caps (gst.Caps ("text/plain")) #self.pad.link (self.textoverlay.get_pad ("text_sink")) #self.timeoverlay.link(self.textoverlay) self.textoverlay.link (self.xvimagesink) self.video_process.add_pad (gst.GhostPad ("sink",self.textoverlay.get_pad ("video_sink"))) self.playbin.props.video_sink = self.video_process #self.playbin.props.video_sink = gst.element_factory_make ("xvimagesink") self.playbin.props.vis_plugin = gst.element_factory_make ("libvisual_corona") self.pipeline.add (self.playbin) bus = self.pipeline.get_bus() bus.add_watch (self.bus_call) When I try and seek to a position besides 00:00:00.000 the audio continues but the video will display a single frame and then maybe a select few after that. Here is the seek call: self.pipeline.seek(1.0, gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH | gst.SEEK_FLAG_ACCURATE, gst.SEEK_TYPE_SET, gst.MSECOND*to_ms(self.start_time.get_text()), gst.SEEK_TYPE_NONE, 0) Thanks for the help. Scott -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE85fO10ekhar8gdURAmQJAJ9trEC2HsGUsxyQ0zP3bEvJsrrEyQCfUTdN 256tQQMV0iauRcd2TJd1WiM= =dQgV -----END PGP SIGNATURE----- |