Question
Problems with camera resolution...
Hi everyone,
I've acquired a security cam to test a video-chat with FMS2 and encounter a problem with the resolution of my cam. It's a CPcam CPC371P and It is said to have a resolution of 510*492 (certain sites speak of standard resolution?).
I wrote two simple applications, one to send the cam stream and one to receive it, here is the code of both my applications :
Send.fla:
var my_nc = new NetConnection();
cam = Camera.get(IndexCam);
cam.setQuality(0,80);
cam.setMode(510,492,15,false);
my_vid.attachVideo(cam);
my_nc.connect("rtmp://server.no-ip.org/tchat_cam/");
ns = new NetStream(my_nc);
ns.attachVideo(cam);
ns.publish("webcam","live");
receive.fla
var my_nc = new NetConnection();
my_nc.connect("rtmp://server.no-ip.org/tchat_cam/");
ns = new NetStream(my_nc);
my_vid.attachVideo(ns);
ns.play("webcam");
As you can see, nothing really complicated. The applications work perfectly but no matter the resolution I choose, the image seems to be extrapolated and pixellised. I tried 512*384, 510*492(supposed to be the cam res) and 240*160.
In any case, the image quality is still really poor...
If anyone could help me on this, Is it a problem with the camera, I may have forgotten an option in my stream ???
Thanks in advance.
Guaca666.
I've acquired a security cam to test a video-chat with FMS2 and encounter a problem with the resolution of my cam. It's a CPcam CPC371P and It is said to have a resolution of 510*492 (certain sites speak of standard resolution?).
I wrote two simple applications, one to send the cam stream and one to receive it, here is the code of both my applications :
Send.fla:
var my_nc = new NetConnection();
cam = Camera.get(IndexCam);
cam.setQuality(0,80);
cam.setMode(510,492,15,false);
my_vid.attachVideo(cam);
my_nc.connect("rtmp://server.no-ip.org/tchat_cam/");
ns = new NetStream(my_nc);
ns.attachVideo(cam);
ns.publish("webcam","live");
receive.fla
var my_nc = new NetConnection();
my_nc.connect("rtmp://server.no-ip.org/tchat_cam/");
ns = new NetStream(my_nc);
my_vid.attachVideo(ns);
ns.play("webcam");
As you can see, nothing really complicated. The applications work perfectly but no matter the resolution I choose, the image seems to be extrapolated and pixellised. I tried 512*384, 510*492(supposed to be the cam res) and 240*160.
In any case, the image quality is still really poor...
If anyone could help me on this, Is it a problem with the camera, I may have forgotten an option in my stream ???
Thanks in advance.
Guaca666.
