<div dir="ltr"><div><div><div><div><div>Hi,<br></div>It is probably a basic question but I didn't find a good answer.<br><br></div>I'm trying to write a Bin that it is something like:<br><br></div>v4l2src ! capsfilter! vaapijpegdec ! srcpad<br><br></div>I would like to add and remove jpeg decoder if my target resolution requires image/jpeg or x-raw. <br>For example, I have some camera that provides image/jpeg and other that provide I420.<br><br>How can I approach this problem?<br><br></div>Should I configure the caps filter with image/jpeg and I420 and use a probe query_downstream/upstream to dynamically link/remove the jpegdec?<br><br><div><div>There is a simpler approach for that?</div><div><br></div><div>Best</div><div>Matteo<br></div><div><div><div><div><div><div><div><div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”<br>- Tony Hoare</div>

</div></div></div></div></div></div></div></div></div></div>