<div dir="ltr">Hi,<div><br></div><div>I added it after line:</div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0);background-color:rgb(238,238,255)"><span class="">self</span><span class="">.</span><span class="">player</span><span class="">.</span><span class="">set_state</span><span class="">(</span><span class="">gst</span><span class="">.</span><span class="">STATE_PLAYING</span><span class="">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0);background-color:rgb(238,238,255)"><span class=""><br></span></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0);background-color:rgb(238,238,255)">
<span class="">Miroslav Misek</span></pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 25, 2013 at 9:14 AM, Ian Davidson <span dir="ltr"><<a href="mailto:id012c3076@blueyonder.co.uk" target="_blank">id012c3076@blueyonder.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 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<div><div class="h5"><br>
    <br>
    <div>On 24/07/2013 23:55, Miroslav Míšek
      wrote:<br>
    </div>
    <blockquote 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 href="http://pygstdocs.berlios.de/pygst-tutorial/playbin.html" target="_blank">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 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>
              <div>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 href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
            <a 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></fieldset>
      <br>
      <pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><div>-- <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>
  </font></span></div>

<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>