Page 1 of 1

How to implement 'bandwidth limiter' in ActiveX in VB .Net?

Posted: 29 Dec 2014 16:28
by heijmink
Hi,
I have a small Windows utility in VB, to play the H.264 stream from an IP camera.

Dim lowres As String = ""
Dim options As String = ":rtsp-tcp"
If CheckBox4.Checked = True Then lowres = "/now.mp4?res=low"
Form2.AxVLCPlugin21.playlist.add("rtsp://" + TextBox1.Text + lowres, "name", options)
Form2.AxVLCPlugin21.playlist.play()

This play the stream from the camera just fine, and the :rtsp-tcp option is in effect.

I'm now trying to find a way to limit the bandwidth of the stream.
I found there is a VLC option called 'access-bandwidth <integer>'
See: https://wiki.videolan.org/Documentation ... bandwidth/

Bandwidth limiter
--access-bandwidth=<integer>
Bandwidth limit (bytes/s)
The bandwidth module will drop any data in excess of that many bytes
per seconds.

Apparently, this Bandwidth limiter is part of a module. (access-filter?)

When I try to apply the option 'access-bandwidth=10000' it has no effect.

When I use VLC from the command line like:
vlc --access-filter bandwidth --access-bandwidth 131072 rtsp://10.120.2.19
It says:
"VLC medial player could not start. Either the command line options were invalid or no plugins were found."

My questions:
- How can I load the module or plugin that allows me to use access-bandwidth for VLC ?
- How can I use this module or plugin in the VLC ActiveX component?

Thanks in advance!
Henk

Re: How to implement 'bandwidth limiter' in ActiveX in VB .N

Posted: 29 Dec 2014 18:34
by Rémi Denis-Courmont
The bandwidth module no longer exist, and even when it did exist, it was not compatible with RTSP.

Re: How to implement 'bandwidth limiter' in ActiveX in VB .N

Posted: 30 Dec 2014 12:31
by heijmink
Thanks Rémi.
It look like I need to find a solution outside the VLC ActiveX then.

Regards, and a happy 2015.

Re: How to implement 'bandwidth limiter' in ActiveX in VB .N

Posted: 13 Jan 2015 18:09
by heijmink
So I understand the --access-bandwidth=<integer> doe no longer exist.
In the link https://wiki.videolan.org/Documentation ... bandwidth/ it is not mentioned that this no longer exists.
How can you tell what controls and parameters are actually in effect in the current version of VLC?
I just want to make sure I don't count on something that is no longer there..
Thanks in advance for your help,
Kind regards