Newbie question: Basic Tutorial #3 (Dynamic Pipelines)
Arun Raghavan
arun at arunraghavan.net
Thu Aug 4 03:43:26 UTC 2016
On Mon, 1 Aug 2016, at 11:11 AM, Mike Grommet wrote:
> So, I've been walking through the tutorials and trying to work out the
> exercises for my own edification.
>
> The exercise:
>
> Dynamic pad linking has traditionally been a difficult topic for a lot
> of programmers. Prove that you have achieved its mastery by
> instantiating an autovideosink (probably with an ffmpegcolorspace in
> front) and link it to the demuxer when the right pad appears. Hint: You
> are already printing on screen the type of the video pads.
>
> So, I've played around with this and am kind of stuck. It sure seems
> like I need to add a tee to the pipeline, then attach the audio
> converter and video converter.
>
> But the basic tutorial #3 doesn't really seem to mention tees (they
> aren't mentioned in the tutorial at all until basic tutorial 7).
>
> Am I barking up the wrong tree here? Anyone have the solved exercise
> that they can pass on? It feels like cheating, but hey, I'd love to see
> 'the right way'
A tee is almost certainly not what you want here (it just provides the
same data on two pads, so it's not going to separate your audio and
video for example).
Could you describe exactly what problem you see when using the code you
posted?
-- Arun
More information about the gstreamer-devel
mailing list