libvlc_media_get_stats from connected mms stream

This forum is about all development around libVLC.
geostein8888
Cone that earned his stripes
Cone that earned his stripes
Posts: 142
Joined: 15 Dec 2010 11:32

libvlc_media_get_stats from connected mms stream

Postby geostein8888 » 03 Apr 2012 05:14

Hello,
how can i get the stream information from a connected mms video stream.When i use the "libvlc_media_get_stats" while the stream is connected and running this function gives me only zero values back. I also tried to make first a parse with the same result

i do something like this, after the stream is connected:

Code: Select all

libvlc_media_stats_t pstats; int stat = libvlc_media_get_stats(curMedia, &pstats); float dmuxBitrate = pstats.f_demux_bitrate; int demuxCorrupted = pstats.i_demux_corrupted; int demuxDiscontinuity = pstats.i_demux_discontinuity; int lostPics = pstats.i_lost_pictures; int abuffers = pstats.i_lost_abuffers;
Georg

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_media_get_stats from connected mms stream

Postby Rémi Denis-Courmont » 03 Apr 2012 08:53

You need to fix the LibVLC stats code, I guess.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

geostein8888
Cone that earned his stripes
Cone that earned his stripes
Posts: 142
Joined: 15 Dec 2010 11:32

Re: libvlc_media_get_stats from connected mms stream

Postby geostein8888 » 03 Apr 2012 09:22

Hello,
when i understand this correctly, there is a bug in the library?

Georg

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_media_get_stats from connected mms stream

Postby Rémi Denis-Courmont » 03 Apr 2012 11:05

Possibly.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

John Connah
New Cone
New Cone
Posts: 5
Joined: 17 Jan 2014 14:03

Re: libvlc_media_get_stats from connected mms stream

Postby John Connah » 05 Feb 2014 16:11

Sorry to resurrect an old thread but for anyone looking at stats and getting zeros returned, take a look at VLCLibrary.m in VLCKit and look for the _defaultOptions

comment out the --no-stats in the vlcParams as below

Code: Select all

vlcParams = @[@"--no-color", @"--no-osd", @"--no-video-title-show", //@"--no-stats", @"--avcodec-fast", @"--verbose=0", @"--text-renderer=quartztext"];
Hope this helps
John


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 35 guests