[Red5] Webcam and quality !!!
Walter Tak
walter at waltertak.com
Tue Oct 13 02:29:38 PDT 2009
You don't really have control over the webcam of your clients.
They start their webcam and the Flash client sets the resolution, quality,
fps and bandwidth like in your example below on the lines:
>> cam.setMode(320, 240, 30);
>> cam.setQuality(0,90);
0,90 means maximum bandwidth, each frame should "meet" 90% quality. You can
play with that setting like entering 32000,0 which would
always use 32 kb of bandwidth and a flexible amount of quality (in practise
the video will be near perfect when the user is sitting still and the video
will show lots of blocks when the user is moving fast)
32 kb + audio will need about 40-45 Kbytes/sec of upstream bandwidth (aka
400 kbit) so keep in mind that the client's upstream capacity is actually
the limiting factor of the quality in real world scenarios.
W.
----- Original Message -----
From: "Steph Steph" <stephane.artois at gmail.com>
To: <red5 at osflash.org>
Sent: Tuesday, 13 October 2009 10:04
Subject: Re: [Red5] Webcam and quality !!!
> up
>
> Please, I would to improve the quality of the webcam, how can I do
> server side, how can I manage the bandwidth server side :: any
> document ??
>
> Please
> Thank you very much in advance
>
>
>
> On Fri, Oct 9, 2009 at 9:24 PM, Steph Steph <stephane.artois at gmail.com>
> wrote:
>> Hi Red5 team :),
>>
>> I connecte my webcam from my own flash application to oflaDemo server
>> side.
>> But the quality is realy so bad. Video and audio is not synchronised,
>> sometimes the video is frozen, and the number of images per second is
>> low.
>>
>> Flash side, I am using the basic setting :
>> var ns:NetStream = new NetStream(nc);
>> var nc:NetConnection = new NetConnection();
>> cam = Camera.get();
>> cam.setMode(320, 240, 30);
>> cam.setQuality(0,90);
>> mic = Microphone.get();
>> mic.setRate(44);
>> ns.setBufferTime(4);
>> (I am using NetStream because my flash application can record my webcam)
>>
>> Server side, I also use the default setting defined into the
>> red5.properties
>> # RTMP
>> rtmp.host=0.0.0.0
>> rtmp.port=1935
>> rtmp.event_threads_core=16
>> rtmp.event_threads_max=64
>> # event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue
>> rtmp.event_threads_queue=0
>> rtmp.event_threads_keepalive=60
>> rtmp.send_buffer_size=271360
>> rtmp.receive_buffer_size=65536
>> rtmp.ping_interval=1000
>> rtmp.max_inactivity=60000
>> rtmp.tcp_nodelay=true
>>
>> # RTMPT
>> rtmpt.host=0.0.0.0
>> rtmpt.port=8088
>> rtmpt.ping_interval=5000
>> rtmpt.max_inactivity=60000
>> rtmpt.max_keep_alive_requests=-1
>> rtmpt.max_threads=20
>> rtmpt.acceptor_thread_count=2
>> rtmpt.processor_cache=20
>>
>> How can I improve the performance of my webcam ? Which parameter can I
>> calibrate in order to improve the performance ?
>>
>> Thank you very very much to consider my issue, it is really really
>> important for me to manage the quality of my webcam properly
>>
>> Bests regards
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
More information about the Red5
mailing list