[Red5] Dynamic video quality
Walter Tak
walter at waltertak.com
Mon Dec 3 03:37:36 PST 2007
>Hi,
>would it be possible to dynamically change the video quality, depending on each user's bandwidth?
>I have webcam streams.
>--
>lp,
>Anže
You can change the quality of a webcam with setQuality. You already knew that probably.
To test the amount of available bandwidth use some sort of ping-mechanism right after the client has connected and
measure the the time it takes to send say 1000 calls with a 'payload' (large string of say 100 characters) from the client to the server and vice versa.
This is no perfect solution since bandwidth changes over time while a client is 'surfing' on the net, the time of the day and the load on the server.
That way you can 'measure' the available bandwidth. This is no automated process, you have to code this yourself or rip it from examples.
For optimum performance you should measure once a minute the available bandwidth for a client and change the quality of the (sending) webcam.
I'm not sure if the default examples of Red5 use such a bandwidth-test, maybe someone else on the list could confirm that (and in which example) ?
Regards,
Walter
--
I am using the free version of SPAMfighter for private users.
It has removed 13763 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071203/b060df5e/attachment.html
More information about the Red5
mailing list