Page 1 of 1

Help me about video streaming

Posted: Sun Sep 10, 2017 11:02 pm
by Cornholio
How would I know the value for maximum or minimum packet length for video streaming? :D

Re: Help me about video streaming

Posted: Mon Sep 11, 2017 1:42 pm
by d3fz
Not sure i understand your question. What are you trying to do ?

Is this related to your previous post ?
Cornholio wrote: I need help on limiting any video streaming to a specific wireless client.

Looks like Layer 7 proto for HTTP AUDIO and VIDEO doesn't work as I've tried it on my computer.
Layer 7 Protocol is currently broken, don't use it. It will very likely put your router into a bootloop.

Re: Help me about video streaming

Posted: Tue Sep 12, 2017 2:14 am
by Cornholio
@d3fz

I am trying to throttle specific devices if they're going to watch some video streams and I'm wondering if I will be able to do that by using Minimum or Maximum packet lengths for video streaming. It's like I'm limiting them to just web browsing only.

Re: Help me about video streaming

Posted: Tue Sep 12, 2017 7:07 am
by encro
You could manage it with a separate QoS channel dedicated to streaming. I used to do this with 2 Chromecast and a Boxee Box by limiting the max bandwidth to 2500 kbps with would force the stream sent to be 720p.

You would need to specify IP ranges in CIDR format for the common sites such as YouTube and Netflix but it's hard to create a catch-all throttling rule for Streaming and not so easy to do devices like phones where you don't want to restrict bandwidth for everything.

Apps and websites generally have settings for choosing the bandwidth also if it's not set to Automatic.

YouTube Bitrates
240p 360p 480p 720p 1080p
Resolution 426 x 240 640 x 360 854x480 1280x720 1920x1080
Video Bitrates Maximum 700 Kbps 1000 Kbps 2000 Kbps 4000 Kbps 6000 Kbps
Recommended 400 Kbps 750 Kbps 1000 Kbps 2500 Kbps 4500 Kbps
Minimum 300 Kbps 400 Kbps 500 Kbps 1500 Kbps 3000 Kbps
http://stackoverflow.com/questions/2419 ... p-1080p-in

Netflix is similar Bitrates:
https://help.netflix.com/en/node/306

Re: Help me about video streaming

Posted: Tue Sep 12, 2017 2:38 pm
by d3fz
Cornholio wrote:I am trying to throttle specific devices if they're going to watch some video streams and I'm wondering if I will be able to do that by using Minimum or Maximum packet lengths for video streaming.
Video streaming is just like any regular download, so download/upload speeds will also be affected. The devices will be throttled no matter what kind of traffic is going through.
It's like I'm limiting them to just web browsing only.
If you just want to throttle specific devices for "browsing only" capabilities, you can easily do that using Quotas + QoS Classes.

1) Go to Firewall > QoS (Download).
2) Create a new service class called "Throttle", for example.
Set "Percent Bandwidth At Capacity:" to 1%.
Set "Bandwidth Maximum:" to 300kbps (or any other value, according to your needs). Note: remember that we're working with kbps, so 300kbps = 37.5 kB/s.

If you need to throttle upload speed as well, the above also applies.

3) Now go to Firewall > Quotas.
4) Create new quota based on the image below.
Image

Where "Applies to" should be set to "Only the following Host(s)", and you can add whatever device(s) IP you want to throttle.

Under "Throttle Bandwidth", Upload/Download limit classes should be set to "Throttle".

And that's it.

Re: Help me about video streaming

Posted: Fri Apr 13, 2018 9:15 am
by Cornholio
Thanks mate! Will check all of these. :D