Question

I'm using AS3 to live stream video, but whenever the webcam picks up movement the picture is pixelated. Does anyone know how I can get a better picture?

Here are my camera settings:

var bandwidth:int = 50000;
var quality:int = 0;

camera = Camera.getCamera();
camera.setQuality(bandwidth/8, quality);
camera.setMode(232,174,15); 
ns.attachCamera(camera);
addChild(video);
Was it helpful?

Solution

This is happening due to your SetQuality settings, most likely. According to the Adobe Documentation for this, Flash will reduce quality as necessary to meet your bandwidth requirements. Due to the fact that your bandwidth setting is below the default (which is 16384; 50000/8 = 6250), Flash is probably automatically reducing the quality of the stream to fit your bandwidth limitations.

Try upping the bandwidth settings, see if that doesn't help you. Alternatively, you could set a minimum quality, but make sure you don't hamstring your feed by setting both to very restrictive values.

Good luck.

OTHER TIPS

Change your quality from zero to a value closer to 100.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top