ok, I have something like this:
self.pipeline = gst.Pipeline()
self.tee = gst.element_factory_make
self.source = gst.element_factory_make('subdevsrc')
self.source.set_property('viewfinder-mode', 1)
self.source.set_property('camera-device', 1)
self.capsfilter = gst.element_factory_make('capsfilter')
caps = 'video/x-raw-yuv, width=640, height=480'
self.capsfilter.set_property('caps', gst.caps_from_string(caps))
self.tee = gst.element_factory_make('tee')
self.queue1 = gst.element_factory_make('queue')
self.queue2 = gst.element_factory_make('queue')
self.encoder = gst.element_factory_make('dsphdmp4venc')
self.muxer = gst.element_factory_make('mp4mux')
self.imagesink = gst.element_factory_make('xvimagesink')
self.filesink = gst.element_factory_make('filesink')
self.filesink.set_property('location', '/dev/null')
self.pipeline.add(self.source, self.capsfilter, self.tee, self.queue1, self.queue2, self.encoder, self.muxer, self.imagesink, self.filesink)
gst.element_link_many(self.source, self.capsfilter, self.tee, self.queue1, self.imagesink)
gst.element_link_many(self.tee, self.queue2, self.encoder, self.muxer, self.filesink)
self.bus = self.pipeline.get_bus()
I want to stop (EOS) the stream in ready state, change the location and so.. help?
self.bus.emit('eos') gives me TypeError: : unknown signal name: eos