<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_1_1448019295360_191807"><span class="" id="yui_3_16_0_1_1448019295360_191808">Did you try to call </span>XInitThreads as mentionned in the error message that you got?<br></div> <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Le Vendredi 27 novembre 2015 9h46, Giacomo D <omagico.olo@gmail.com> a écrit :<br></font></div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br><br> <div class="y_msg_container">*Hi everyone,<br>I'm writing an application which receives .mp4 streams over RTSP. I receive<br>them and show them like below:*<br><br> p_description = "playbin uri=%s " %uri + "mute=true"<br> new_pipeline = Gst.parse_launch(p_description)<br> new_pipeline.name = "pipeline_" + str(self.n_branch)<br> videobin = Gst.Bin.new("videobin"+str(self.n_branch))<br> timeoverlay =<br>Gst.ElementFactory.make("timeoverlay","timeoverlay"+str(self.n_branch))<br> videobin.add(timeoverlay)<br> pad = timeoverlay.get_static_pad("video_sink")<br> ghostpad = Gst.GhostPad.new("sink", pad)<br> videobin.add_pad(ghostpad)<br> queuesink =<br>Gst.ElementFactory.make("queue","queuesink"+str(self.n_branch))<br> videobin.add(queuesink)<br> videosink =<br>Gst.ElementFactory.make("autovideosink","autovideosink"+str(self.n_branch))<br> videobin.add(videosink)<br><br> timeoverlay.link(queuesink):<br><br> queuesink.link(videosink):<br><br> new_pipeline.set_property("video-sink", videobin)<br><br> # Sets buses for events on the pipeline<br> # bus = new_pipeline.get_bus()<br> # bus.add_signal_watch()<br> # bus.enable_sync_message_emission()<br> # bus.connect("message", self.on_message)<br> # bus.connect("sync-message::element", self.on_sync_message)<br><br> new_pipeline.set_state(Gst.State.PLAYING)<br>*<br>I'm having some issues because I used xvimagesink and my application crashes<br>sometimes on a particular .mp4 configuration:*<br><br>0:00:00.558593949 616 0x1082f70 WARN basesrc<br>gstbasesrc.c:2943:gst_base_src_loop:<udpsrc1> error: Errore interno nel<br>flusso di dati.<br>0:00:00.558637417 616 0x1082f70 WARN basesrc<br>gstbasesrc.c:2943:gst_base_src_loop:<udpsrc1> error: streaming task paused,<br>reason not-linked (-1)<br>0:00:00.569523427 616 0x1068770 WARN basetransform<br>gstbasetransform.c:1414:gst_base_transform_setcaps:<videoconvert0> transform<br>could not transform video/x-raw(memory:VASurface), format=(string)I420,<br>width=(int)1280, height=(int)720, interlace-mode=(string)progressive,<br>pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,<br>colorimetry=(string)bt709, framerate=(fraction)0/1 in anything we support<br>0:00:00.569718285 616 0x1068770 WARN basetransform<br>gstbasetransform.c:1414:gst_base_transform_setcaps:<videoconvert0> transform<br>could not transform video/x-raw(memory:VASurface), format=(string)I420,<br>width=(int)1280, height=(int)720, interlace-mode=(string)progressive,<br>pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,<br>colorimetry=(string)bt709, framerate=(fraction)0/1 in anything we support<br>*<br>If I change to autovideosink the problem is resolved! <br>But I have to change my application because autovideosink hasn't<br>"set_window_handle(xid)" method.<br>So I add "bus.connect("sync-message::element", self.on_sync_message)" to<br>capture my imagesink so:*<br><br>if message.get_structure().get_name() == 'prepare-window-handle':<br> newimagesink = message.src<br>*<br>But I'm getting another crash:*<br><br>[xcb] Unknown sequence number while processing queue<br>[xcb] Most likely this is a multi-threaded client and XInitThreads has not<br>been called<br>[xcb] Aborting, sorry about that.<br>python3.4: ../../src/xcb_io.c:274: poll_for_event: asserzione<br>"!xcb_xlib_threads_sequence_lost" non riuscita.<br>*<br>If I add autovideosink slowly the problem doesn't appear...<br><br>Is there someone who can help me?<br>Thanks,<br>G.*<br><br><br><br><br><br><br>--<br>View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Throubles-with-Autovideosink-xcb-Most-likely-this-is-a-multi-threaded-client-and-XInitThreads-has-no-tp4674668.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Throubles-with-Autovideosink-xcb-Most-likely-this-is-a-multi-threaded-client-and-XInitThreads-has-no-tp4674668.html</a><br>Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br><br></div> </blockquote> </div> </div> </div></div></body></html>