Page 1 of 1

1920 x 1080 resolution

PostPosted: Wed Apr 12, 2017 2:30 pm
by huseyinyalcin
Hi
I'm using Aforge.net for a camera application. When I use the 1920 * 1080 (30fps) VideoResolution to open a VideoSourcePlayer for previewing video.
The delay of the real-time video is too huge, at least 2-3 second.

thank you

Re: 1920 x 1080 resolution

PostPosted: Mon Apr 17, 2017 10:51 am
by andrew.kirillov
Hello,

Do you have same issue when using this resolution from any other application (Skype, for example)?

Re: 1920 x 1080 resolution

PostPosted: Sun Jul 30, 2017 2:18 pm
by Vlad Anoshin
Hi.
I have same problem. If resolution in high, as sample 1920x1080, the delay from camera to PictureBox near 1.5...2 sec.
I checked Skype with this camera. Have not delay in Skype.
Is this problem AForge?

Re: 1920 x 1080 resolution

PostPosted: Sat Nov 11, 2017 1:57 am
by parsa.engz
Vlad Anoshin wrote:Hi.
I have same problem. If resolution in high, as sample 1920x1080, the delay from camera to PictureBox near 1.5...2 sec.
I checked Skype with this camera. Have not delay in Skype.
Is this problem AForge?




I have exactly the same problem. is there any way to reduce the dimensions on the Image frame?

Re: 1920 x 1080 resolution

PostPosted: Sat Nov 11, 2017 2:38 pm
by andrew.kirillov
parsa.engz wrote:is there any way to reduce the dimensions on the Image frame?

Yes. Check documentation - there is a property to set camera resolution (VideoCaptureDevice.VideoResolution).

Re: 1920 x 1080 resolution

PostPosted: Sun Nov 12, 2017 12:20 am
by parsa.engz
Thats great Andrew. Thanks for your response. It works for me and I'm very happy for that. I gonna share my code for those you have the same problem;

_videoSource = new VideoCaptureDevice(CurrentDevice.MonikerString);

_videoSource.VideoResolution = _videoSource.VideoCapabilities[0]; //It selects the default size
int a =_videoSource.VideoCapabilities.Length;
for (int i = 0; i < _videoSource.VideoCapabilities.Length; i++)
{

string resolution = "Resolution Number " + Convert.ToString(i);
string resolution_size = _videoSource.VideoCapabilities[i].FrameSize.ToString();

Console.WriteLine("resolution , resolution_size>> " + resolution + "" + resolution_size);
}

/* The output of the function above:
resolution , resolution_size>> Resolution Number 0{Width=640, Height=480}
resolution , resolution_size>> Resolution Number 1{Width=320, Height=180}
resolution , resolution_size>> Resolution Number 2{Width=320, Height=240}
resolution , resolution_size>> Resolution Number 3{Width=424, Height=240}
resolution , resolution_size>> Resolution Number 4{Width=640, Height=360}
resolution , resolution_size>> Resolution Number 5{Width=848, Height=480}
resolution , resolution_size>> Resolution Number 6{Width=960, Height=540}
resolution , resolution_size>> Resolution Number 7{Width=1280, Height=720}
resolution , resolution_size>> Resolution Number 8{Width=1920, Height=1080}


_videoSource.NewFrame += video_NewFrame;
_videoSource.Start();