<div dir="ltr"><div><div>The example code you've posted adds an audioconvert -> autoaudiosink stage. I think from what you're saying, you want to add a videoconvert -> autovideosink stage as well?<br><br></div>If so, the procedure is that same as for linking the audioconverter. In main(), create your videoconvert and autovideosink elements, link them and add them to the pipeline. In the pad added handler, you'll need to decide whether to link the newly added pad to the audioconvert or videoconvert element based upon the pad caps; if it's audio/x-raw, link to the audioconvert element, if it's video/x-raw, link to the videoconvert element.<br><br></div>Dunk<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 August 2016 at 13:43, Arun Raghavan <span dir="ltr"><<a href="mailto:arun@arunraghavan.net" target="_blank">arun@arunraghavan.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 1 Aug 2016, at 11:11 AM, Mike Grommet wrote:<br>
> So, I've been walking through the tutorials and trying to work out the<br>
> exercises for my own edification.<br>
><br>
> The exercise:<br>
><br>
> Dynamic pad linking has traditionally been a difficult topic for a lot<br>
> of programmers. Prove that you have achieved its mastery by<br>
> instantiating an autovideosink (probably with an ffmpegcolorspace in<br>
> front) and link it to the demuxer when the right pad appears. Hint: You<br>
> are already printing on screen the type of the video pads.<br>
><br>
> So, I've played around with this and am kind of stuck. It sure seems<br>
> like I need to add a tee to the pipeline, then attach the audio<br>
> converter and video converter.<br>
><br>
> But the basic tutorial #3 doesn't really seem to mention tees (they<br>
> aren't mentioned in the tutorial at all until basic tutorial 7).<br>
><br>
> Am I barking up the wrong tree here? Anyone have the solved exercise<br>
> that they can pass on? It feels like cheating, but hey, I'd love to see<br>
> 'the right way'<br>
<br>
</span>A tee is almost certainly not what you want here (it just provides the<br>
same data on two pads, so it's not going to separate your audio and<br>
video for example).<br>
<br>
Could you describe exactly what problem you see when using the code you<br>
posted?<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Arun<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br></div>