<div dir="auto"><div dir="auto"></div>Ah yes. Properties is highly useful. However, n-audio is by default 0, which is strange because I have 5 audio tracks<div dir="auto"><br></div><div dir="auto">Also setting </div><div dir="auto">pipeline.set_property("current-audio",&2) doesn't change the track. I'm pretty sure it's because I'm giving the wrong second argument</div><div dir="auto"><br></div><div dir="auto">How can I get n_audio to give the correct amount and set audio? Is it because I'm doing it from the pipeline and not through an audio source?</div><div dir="auto"><br></div><div dir="auto">File is mkv</div><div dir="auto"><br></div><div dir="auto">Many thanks</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, 16 Dec 2020, 14:29 Sebastian Dröge, <<a href="mailto:sebastian@centricular.com" target="_blank" rel="noreferrer">sebastian@centricular.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, 2020-12-16 at 14:25 +0000, Michael Johnson wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto">Then this has no relation to flags surely? (In terms of switching streams)</div></blockquote><div><br></div><div>Check the playbin docs for details what the flags are doing. The flags are for completely disabling audio, for example. Or for enabling/disabling other features of playbin.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div dir="auto">Yes I read through that page too and again found no counterpart in gstreamer-rs. Is it in glib then?</div></div></blockquote><div><br></div><div>For doing what exactly? You can use the playbin API (GObject properties, signals, action signals) like any others. That would be via the GLib bindings.</div><div>The <a href="http://playbin.rs" rel="noreferrer noreferrer" target="_blank">playbin.rs</a> example I linked earlier makes use of various of such APIs.</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"></blockquote><div><br></div><div><span><pre>-- <br></pre><div style="width:71ch">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer noreferrer" target="_blank">https://www.centricular.com</a></div><div style="width:71ch"><br></div></span></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>