Here's a code snippet to check the available modes for your cam.
fps=15; //Try other values
cam = Camera.get();
for (w=100;w<1000;w=w+20){
for (h=100;h<1000;h=h+20){
cam.setMode(w,h,fps);
if ((w + "x" + h)==(cam.width + "x" + cam.height)){
trace(cam.width + "x" + cam.height + " @ " + cam.fps);
}
}
I found this on Fabio Sonnati's blog @ http://
flashvideo.progettosinergia.com
Thijs
On Aug 23, 2007, at 12:16 AM, Dominick Accattato wrote:
Right, if you choose a width that your camera can handle, you
should have no problems. When you choose a setting higher than
what the camera can handle, it automagically chooses the highest
you can do.
On 8/22/07, Lenny Sorey <[EMAIL PROTECTED]> wrote:
Thanks Walter,
I will give it a try and let you know how it goes.
Regards,
Lenny
On 8/22/07, Walter Tak <[EMAIL PROTECTED] > wrote:
You are limited to the resolution your camera/webcam can handle.
Some webcams do 160x120, 320x200 320x240 and that's it.
Some can do 352x288, 640x480 or even 800x600.
This totally depends on the driver (in case of a capturecard/
external videosource) or on the webcam.
Try to use the native FPS of the source (using Camera.setMode
(width,height,Camera.fps) ) to select as safe as possible the
desired resolution. Check afterwards the width and height to see if
you actually were able to
switch to the desired resolution.
Regards,
Walter
----- Original Message -----
From: Lenny Sorey
To: [email protected]
Sent: Wednesday, August 22, 2007 7:33 PM
Subject: [Red5] Question about recording from webcam
Can someone tell me where to change the size of the video that will
be recorded?
I have been playing with the SimpleRecorder and have change the
camera to 400 X 300.
Yet when I check the size width and height of the recorded flv it
always shows
352 X 264..
Where can I change this default size to be 400 X 300
Thanks,
Lenny
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
I am using the free version of SPAMfighter for private users.
It has removed 10825 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
Dominick Accattato, CTO
Infrared5 Inc.
www.newviewnetworks.com
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org