<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    Where did you add your code?<br>
    <br>
    Did you allow the software to open the media file before you
    examined the property?<br>
    <br>
    Regards<br>
    <br>
    <div class="moz-cite-prefix">On 24/07/2013 23:55, Miroslav Míšek
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFkvf3qg_emrcg3nYE-2vqBeHfmETKWFmBF4RCgWiG_unUyNFQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>thanks for replay.</div>
        <div>I tried that and it does not work for me unfortunatelly.</div>
        <div>num = self.player.get_property('n-audio')<br>
        </div>
        <div>return 0, even if avi file has 2 audio streams.</div>
        <div><br>
        </div>
        <div>I just added this to Example 2.3 of <a
            moz-do-not-send="true"
            href="http://pygstdocs.berlios.de/pygst-tutorial/playbin.html">http://pygstdocs.berlios.de/pygst-tutorial/playbin.html</a></div>
        <div><br>
        </div>
        <div>Any idea what I am doing wrong please?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Miroslav Misek</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Jul 23, 2013 at 2:50 PM,
          Tim-Philipp Müller <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:t.i.m@zen.co.uk"
              target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="HOEnZb">
              <div class="h5">On Tue, 2013-07-23 at 13:14 +0200,
                Miroslav Míšek wrote:<br>
                <br>
                Hi,<br>
                <br>
                > I am new to gstreamer, I would like to write simple
                vidoe player in<br>
                > it, but I found one problem. I have movie file
                (avi) with more than<br>
                > one audio track. Is it possible somehow to get list
                of these audio<br>
                > tracks and choose one of them for output?<br>
                <br>
              </div>
            </div>
            Yes, playbin (playbin2 in 0.10) has properties for that,
            like "n-audio",<br>
            and "current-audio", and you can get more information about
            the tracks<br>
            via the action signals, see gst-inspect-1.0 playbin.<br>
            <br>
            Cheers<br>
             -Tim<br>
            <br>
            <br>
            _______________________________________________<br>
            gstreamer-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
              target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      --<br>
      Ian Davidson<br>
      <i>239 Streetsbrook Road, Solihull, West Midlands, B91 1HE</i><br>
      --<br>
      Facts used in this message may or may not reflect an underlying
      objective reality. Facts are supplied for personal use only.<br>
      Recipients quoting supplied information do so at their own risk.
      Facts supplied may vary in whole or part from widely accepted
      standards.<br>
      While painstakingly researched, facts may or may not be indicative
      of actually occurring events or natural phenomena.<br>
      The author accepts no responsibility for personal loss or injury
      resulting from memorisation and subsequent use.
    </div>
  </body>
</html>