how get audio track sample rate,
Tim Müller
tim at centricular.com
Sun Feb 12 15:59:22 UTC 2017
On Fri, 2017-02-10 at 08:48 +0000, zare laky wrote:
Hi,
> I want to know, how to get audio track sample rate, when
> pipeline constructing, such as get it when 'on_pad_added' invoking.
Depends a bit on the details of the pipeline, but in general you'd do
caps = gst_pad_get_current_caps (new_pad);
..
gst_caps_unref (caps);
And check the sample rate there (get_structure(caps,0) then
gst_structure_get_int()).
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list