AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

1920 x 1080 resolution

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

1920 x 1080 resolution

Postby huseyinyalcin » Wed Apr 12, 2017 2:30 pm

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
huseyinyalcin
 
Posts: 1
Joined: Wed Apr 12, 2017 2:19 pm

Re: 1920 x 1080 resolution

Postby andrew.kirillov » Mon Apr 17, 2017 10:51 am

Hello,

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


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: 1920 x 1080 resolution

Postby Vlad Anoshin » Sun Jul 30, 2017 2:18 pm

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?
Vlad Anoshin
 
Posts: 1
Joined: Sun Jul 30, 2017 2:05 pm

Re: 1920 x 1080 resolution

Postby parsa.engz » Sat Nov 11, 2017 1:57 am

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?
parsa.engz
 
Posts: 7
Joined: Fri Sep 30, 2016 1:36 pm

Re: 1920 x 1080 resolution

Postby andrew.kirillov » Sat Nov 11, 2017 2:38 pm

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).
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: 1920 x 1080 resolution

Postby parsa.engz » Sun Nov 12, 2017 12:20 am

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();
parsa.engz
 
Posts: 7
Joined: Fri Sep 30, 2016 1:36 pm




Return to AForge.NET Framework

cron