How to receive the input bitrate?

This forum is about all development around libVLC.
uKCuH
New Cone
New Cone
Posts: 5
Joined: 12 Jul 2010 11:19
Location: Russian, Saint-Petersburg

How to receive the input bitrate?

Postby uKCuH » 21 Jul 2010 11:09

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.
Last edited by uKCuH on 21 Jul 2010 22:56, edited 1 time in total.

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

Re: How to receive the input bitrate?

Postby Rémi Denis-Courmont » 21 Jul 2010 16:54

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

uKCuH
New Cone
New Cone
Posts: 5
Joined: 12 Jul 2010 11:19
Location: Russian, Saint-Petersburg

Re: How to receive the input bitrate?

Postby uKCuH » 21 Jul 2010 22:59

i_read_bytes is an integer.
Sorry, I meant f_input_bitrate.

DsChAeK
Blank Cone
Blank Cone
Posts: 59
Joined: 01 Mar 2008 14:54
VLC version: newest
Operating System: windows

Re: How to receive the input bitrate?

Postby DsChAeK » 22 Jul 2010 08:52

I calculate kb/s with: f_demux_bitrate * 1000


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest