Accessing hlsdemux stats

Srinath, Kamaldeep kasrinat at akamai.com
Thu Dec 18 08:45:38 PST 2014



On 12/18/14, 9:44 PM, "Tim Müller" <tim at centricular.com> wrote:

>On Thu, 2014-12-18 at 21:30 +0530, Srinath, Kamaldeep wrote:
>
>
>Hi,
>
>> I see in the hlsdemux source that it sends two kinds of information
>> under the ³adaptive-streaming-statistics² message name:
>>  (snip)
>> I want to access this information regularly for each
>> fragment/manifest, ideally in a downstream filter, or at least in the
>> pipeline bus message handler. Right now, I am not able to do either of
>> these. Any insight into how I can get this data would be really
>> helpful. I can explain how I am trying to listen for this data
>> currently if useful.
>
>These should show up on the pipeline's GstBus just like all other
>messages. These messages are of GST_MESSAGE_ELEMENT type, and then you
>need to do gst_message_get_structure() and gst_structure_has_name() to
>check if it's the one you're looking for.
>
>See:
>
>gst-launch-1.0 playbin -m
>uri=http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8


Hi Tim,

This is exactly what I have been doing. I try:
   gst_structure_to_string(gst_message_get_structure(msg)) inside
GST_MESSAGE_ELEMENT.

The execution does not seem to get here at all. Hence I was wondering if
it was some other message type. Let me look again to see why this may be.

Thanks
Kamal

>
>Cheers
> -Tim
>
>-- 
>Tim Müller, Centricular Ltd - http://www.centricular.com
>
>_______________________________________________
>gstreamer-devel mailing list
>gstreamer-devel at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list