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

This forum is about all development around libVLC.
heijmink
New Cone
New Cone
Posts: 4
Joined: 20 Sep 2012 13:00

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

Postby heijmink » 29 Dec 2014 16:28

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
Last edited by heijmink on 30 Dec 2014 12:28, edited 1 time in total.

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

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

Postby Rémi Denis-Courmont » 29 Dec 2014 18:34

The bandwidth module no longer exist, and even when it did exist, it was not compatible with RTSP.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

heijmink
New Cone
New Cone
Posts: 4
Joined: 20 Sep 2012 13:00

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

Postby heijmink » 30 Dec 2014 12:31

Thanks Rémi.
It look like I need to find a solution outside the VLC ActiveX then.

Regards, and a happy 2015.

heijmink
New Cone
New Cone
Posts: 4
Joined: 20 Sep 2012 13:00

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

Postby heijmink » 13 Jan 2015 18:09

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 40 guests