<div dir="ltr">Hmm. I uninstalled out vaapi patches, and now the above code runs. <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 12:31 PM, Stirling Westrup <span dir="ltr"><<a href="mailto:swestrup@gmail.com" target="_blank">swestrup@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hmm. Took that code and compiled it, and tried to run it in my environment and it died. Here was the entire output:<br>
<br><br>stirling@Wally:~/Work/userful-videowall$ ./dynamic-tee-vsink ~/Videos/content/lifeofpi-tlr1_h1080p.mov <br>
libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so<br>libva info: Found init function __vaDriverInit_0_35<br>libva info: va_openDriver() returns 0<br>

Hardware limitation is set on HaswellMax 4096X4096 <br>***  You are using hardware decoder  ***<br>add<br>libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so<br>

libva info: va_openDriver() returns -1<br>libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so<br>libva info: va_openDriver() returns -1<br>

libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 1<br>libva error: va_getDriverName() failed with operation failed,driver_name=i965<br>libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 0<br>

libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so<br>libva info: va_openDriver() returns -1<br>libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so<br>

libva info: va_openDriver() returns -1<br>libva info: VA-API version 0.35.1<br>libva info: va_getDriverName() returns 1<br>libva error: va_getDriverName() failed with operation failed,driver_name=i965<br>added<br>ERROR: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert1: Internal GStreamer error: code not implemented.  Please file a bug at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>

Additional debug info:<br>gstvideofilter.c(291): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert1:<br>invalid video buffer received<br>ERROR: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert1: Internal GStreamer error: code not implemented.  Please file a bug at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>

Additional debug info:<br>gstvideofilter.c(291): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert1:<br>invalid video buffer received<br>ERROR: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert1: Internal GStreamer error: code not implemented.  Please file a bug at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>

Additional debug info:<br>gstvideofilter.c(291): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert1:<br>invalid video buffer received<br>ERROR: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert1: Internal GStreamer error: code not implemented.  Please file a bug at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>

Additional debug info:<br>gstvideofilter.c(291): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert1:<br>invalid video buffer received<br>ERROR: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert1: Internal GStreamer error: code not implemented.  Please file a bug at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>

Additional debug info:<br>gstvideofilter.c(291): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert1:<br>invalid video buffer received<br>ERROR: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert1: Internal GStreamer error: code not implemented.  Please file a bug at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" target="_blank">http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer</a>.<br>

Additional debug info:<br>gstvideofilter.c(291): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert1:<br>invalid video buffer received<br>Segmentation fault<br>stirling@Wally:~/Work/userful-videowall$<br>

</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 6, 2014 at 3:23 PM, Stirling Westrup <span dir="ltr"><<a href="mailto:swestrup@gmail.com" target="_blank">swestrup@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Tue, May 6, 2014 at 3:18 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Fr, 2014-05-02 at 16:02 -0400, Stirling Westrup wrote:<br>
<br></div><div>
> The basic idea of the test program is that I have this pipeline already<br>
> running:<br>
><br>
>   gst-launch videotestsrc ! tee name=t t. ! queue ! fakesink<br>
><br>
> And I mutate it dynamically into this pipeline.<br>
><br>
>   gst-launch videotestsrc ! tee name=t t. ! queue ! fakesink t. ! queue !<br>
> xvimagesink display=:0<br>
><br>
> The idea is that the test program will alternately add or  remove the<br>
> xvimagesink every few seconds, but this fails to work. Any<br>
> help/suggestions/criticism of my code would be most welcome. It can be<br>
> found here:<br>
<br>
</div></div><div>This sounds like something I've written here as a demo application:<br>
<a href="https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/" target="_blank">https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/</a><br>
<br>
(the second example)<br></div></blockquote><div><br></div><div>Thanks! Having some working example code should immensely simplify things!<br></div></div><div><br clear="all"><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br>


<a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br>


<a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>

<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div>