<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">We have been trying to play a video streaming through a RTSP server by using vaapidecode and vaapisink gstreamer elements. But the problem is pipeline constructed seems problematic and it does not work. Here is the pipeline:</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"> </p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">gst-launch-1.0 rtspsrc location=rtsp://<a href="http://192.168.1.15/media/video1?g726=rfc3551" target="_blank">192.168.1.15/media/video1?g726=rfc3551</a> ! rtph264depay ! vaapidecode ! vaapisink</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"> </p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">The error message is as follows:</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"> </p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2:</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">streaming task paused, reason not-linked (-1)</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"> </p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">And moreover this is the output of the gst-launch:</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"> </p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">libva info: VA-API version 0.35.1</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">libva info: va_getDriverName() returns 0</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">libva info: Found init function __vaDriverInit_0_35</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">libva info: va_openDriver() returns 0</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Setting pipeline to PAUSED ...</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Pipeline is live and does not need PREROLL ...</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL;</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (open) Opening Stream</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (connect) Connecting to rtsp://<a href="http://192.168.1.15/media/video1?g726=rfc3551" target="_blank">192.168.1.15/media/video1?g726=rfc3551</a></strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (open) Retrieving server options</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (open) Retrieving media info</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (request) SETUP stream 0</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (request) SETUP stream 1</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (open) Opened Stream</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Setting pipeline to PLAYING ...</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">New clock: GstSystemClock</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (request) Sending PLAY request</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (request) Sending PLAY request</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Progress: (request) Sent PLAY request</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:camera/GstUDPSrc:udpsrc3: Internal data flow error.</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Additional debug info:</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:camera/GstUDPSrc:udpsrc3:</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">streaming task paused, reason not-linked (-1)</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Execution ended after 0:00:00.704377971</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Setting pipeline to PAUSED ...</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-size:12.800000190734863px;vertical-align:baseline">Setting pipeline to READY ...</strong></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">We think we should place a capsfilter before decode element but it did not work too. In addition we have placed demuxer elements for an rtsp stream such as: rtpptdemux but these did not even work.<br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">We are sure, vaapidecode and vaapisink elements are working properly. For example, following pipeline decodes a 1080p movie on GPU without any problems.</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><strong style="font-size:12.800000190734863px;font-style:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">gst-launch-1.0 filesrc location=/my/file/location ! qtdemux ! vaapidecode ! vaapisink</strong><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt">For those who think there may be a problem with RTSP content the following pipeline also works without any problems:</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"><strong style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;vertical-align:baseline">gst-launch-1.0 rtspsrc location=rtsp://<a href="http://192.168.1.15/media/video1?g726=rfc3551" target="_blank">192.168.1.15/media/video1?g726=rfc3551</a> ! rtph264depay ! avdec_h264 ! xvimagesink sync=false</strong><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px;min-height:8pt"><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><span style="font-size:12.800000190734863px">We are working on an Intel E3845 processor. We are on Ubuntu 14.04 LTS OS and driver version is as follows:</span><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">libva-intel-vaapi-driver and version: 1.3.0-1ubuntu1. Gstreamer vaapi element's name and version is as follows: libgstreamer-vaapi1.0-0 and version: 0.5.7-0ubuntu4</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px"><br></p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">Could you please help to decode an rtsp stream on GPU by using gstreamer vaapi plugins?</p><p style="margin:0px;padding:0px;border:0px;font-size:12.800000190734863px;font-family:intel-clear,arial,helvetica,'helvetica neue',verdana,sans-serif;vertical-align:baseline;color:rgb(61,61,61);line-height:15.600000381469727px">Regards.</p><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></div><div><br></div>-- <br><div dir="ltr"><div><b style="font-family:arial,helvetica,sans-serif"><span style="border-collapse:collapse;font-family:arial,sans-serif">Engin FIRAT</span></b></div><span><div><font size="1">Adoniss Yazılım Bilişim </font></div><div><font size="1">Elektronik </font><span style="font-size:x-small">Araştırma Geliştirme </span></div><div><font size="1">Limited Şirketi</font></div><div><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;margin:0px"><font size="1">+90 506 884 82 07 (Mobile)</font></p><font size="1">ODTÜ Teknokent, </font><span style="font-size:x-small">ODTÜ-Halıcı Yazılımevi </span></div><div><span style="font-size:x-small">İnönü Bulvarı / ANKARA (Address)</span></div><div><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;margin:0px"><font size="1"><img src="http://gdurl.com/hml0"><br></font></p></div></span></div>
</div>