Page 1 of 1

How to receive the input bitrate?

Posted: 21 Jul 2010 11:09
by uKCuH
I need receive input bitrate. I use function libvlc_media_get_stats () and I receive input bitrate from libvlc_media_stats_t:: f_input_bitrate.
But the received value is less than zero (float). How to convert this value in kb/s?

For example the value 0.58737 received by me, and in VLC during the same moment 2475 kb/s.

Re: How to receive the input bitrate?

Posted: 21 Jul 2010 16:54
by RĂ©mi Denis-Courmont
i_read_bytes is an integer.

Re: How to receive the input bitrate?

Posted: 21 Jul 2010 22:59
by uKCuH
i_read_bytes is an integer.
Sorry, I meant f_input_bitrate.

Re: How to receive the input bitrate?

Posted: 22 Jul 2010 08:52
by DsChAeK
I calculate kb/s with: f_demux_bitrate * 1000