How to implement 'bandwidth limiter' in ActiveX in VB .Net?
Posted: 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
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