how to get the audio number in the file

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to get the audio number in the file

DBOYaoao
Hi :
    Can anybody help me?
thanks
Reply | Threaded
Open this post in threaded view
|

Re: how to get the audio number in the file

Tim-Philipp Müller-2
On Wed, 2012-09-12 at 19:10 -0700, DBOYaoao wrote:

>     Can anybody help me?

If you're using playbin2, wait for the ASYNC_DONE message on the
pipeline's GstBus, then do:

  int num_audio;

  g_object_get (playbin2, "n-audio", &num_audio, NULL);

If you're not using playbin2, you need to tell us what you are
using/doing instead, because without any context whatsoever we can only
guess.

 Cheers
  -Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to get the audio number in the file

DBOYaoao
I use filesrc-decodebin-xvimagesink , how can do this?
Reply | Threaded
Open this post in threaded view
|

Re: how to get the audio number in the file

Stefan Sauer
On 09/14/2012 04:32 AM, DBOYaoao wrote:
> I use filesrc-decodebin-xvimagesink , how can do this?
Well look at what playbin2 does and implement this yourself. Allthough
if you already use filesink!decodebin!xvimagesink you can also use
playbin2. Finally, I am not sure why you can about audio, if you don't
use an audiosink to play it.

Stefan

>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-to-get-the-audio-number-in-the-file-tp4656289p4656301.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel