I recording video to FMS dvr I want to improve quality of video sending to FMS. How could I do this?
After you get the camera, you can configure it with the and setMode() and setQuality() methods. The documentation for these methods is worth reading.
First, I suggest you play with the setMode()
method. This sets the capture resolution of the camera. The default resolution is 160x120.
For a better quality picture, you want to specify a capture resolution that is the same or similar to the dimensions that you will apply to the Video
object. I would also suggest using values in a 4:3 ratio, like 480x360:
var camera:Camera = Camera.getCamera();
camera.setMode(480,360,24); // 480x360 resolution at 24 fps
var video:Video = new Video(480,360);
video.attachCamera(camera);
Play with the dimensions, but try to keep them in 4:3 ratio for best results. This will be a big improvement, you might even stop here.
Optionally, you can fine tune the streaming experience with the setQuality()
method. This lets you specify a preference for bandwidth use or picture quality. For highest quality you could do:
camera.setQuality(0,100); // please read the docs before doing this :)
Be aware that as you increase the capture resolution and the quality, you also increase the file size/bandwidth of your video. You will find the right balance!