Page 1 of 1

libvlc_media_get_stats from connected mms stream

Posted: 03 Apr 2012 05:14
by geostein8888
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

Re: libvlc_media_get_stats from connected mms stream

Posted: 03 Apr 2012 08:53
by Rémi Denis-Courmont
You need to fix the LibVLC stats code, I guess.

Re: libvlc_media_get_stats from connected mms stream

Posted: 03 Apr 2012 09:22
by geostein8888
Hello,
when i understand this correctly, there is a bug in the library?

Georg

Re: libvlc_media_get_stats from connected mms stream

Posted: 03 Apr 2012 11:05
by Rémi Denis-Courmont
Possibly.

Re: libvlc_media_get_stats from connected mms stream

Posted: 05 Feb 2014 16:11
by John Connah
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