How to get the SOUT counters..

Just have a drink and chat
gk
New Cone
New Cone
Posts: 2
Joined: 30 Aug 2006 00:21

How to get the SOUT counters..

Postby gk » 12 Oct 2006 03:35

Hello,

Kinda new to this & start using VLC.

I've started the VLC in the server with the following option
vlc -vvv --vlm-conf myplaylist.cfg -I telnet --telnet-password videolan --rtsp-host 10.10.10.1:554
Its all working fine & be able to play those playlists from other hosts.

My Question is, how do i get the SOUT counter value ? When i try to print the structure values from the main vlc.c file, it doesnt return any value.. I'm assuming that the structure input_stats_t , will gets updated automatically as the server starts streaming out. or do i have to initialize any thing prior to calling this structure directly. Any help is appreciated.

vlc.c
...
...
struct input_stats_t sout_ctr;
...

int main( .. )
{
...
...
while(1)
{
sleep(1);
printf("%d %d %f\n", sout_ctr.i_sent_packets, sout_ctr.i_sent_bytes, sout_ctr.f_send_bitrate);

}
...
...
}


Thanks

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 12 Oct 2006 23:33

Please don't double post.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “Coffee Corner”

Who is online

Users browsing this forum: No registered users and 8 guests