PS3EyeDirectShow icon indicating copy to clipboard operation
PS3EyeDirectShow copied to clipboard

60 FPS support

Open StanislawMinksztym opened this issue 4 years ago • 7 comments

Hi,

Would it be possible to have this driver set the ps3 eye framerate to 60fps?

StanislawMinksztym avatar Dec 19 '20 11:12 StanislawMinksztym

I'm writing openCV program and there is an option to change camera fps or resolution, i would rather suggest somehow allowing to mess with gain, exposure and other values too. But anyways, without this driver i would be lost. So thanks @jkevin :D

alkapone312 avatar Dec 23 '20 04:12 alkapone312

https://github.com/jkevin/PS3EyeDirectShow/blob/1.0b2/DirectShowFilter/PS3EyePushPin.cpp#L64L87 It seems hardcoded here.. maybe it's just one line to adjust?

mirh avatar Mar 01 '21 10:03 mirh

Is there any way how to do this? I want to use this driver as it supports webcam usage, but the frame rate holds me back.

mangkoran avatar Sep 10 '21 06:09 mangkoran

Is there any way how to do this? I want to use this driver as it supports webcam usage, but the frame rate holds me back.

Just fix the hardcoded values mentioned above and compile, should work.

minch-dev avatar Jan 11 '22 14:01 minch-dev

Is there any way how to do this? I want to use this driver as it supports webcam usage, but the frame rate holds me back.

Just fix the hardcoded values mentioned above and compile, should work.

exactly what values do I change? I see several FPS values in the cpp file but I do not know WHAT EXACTLY is to be changed for 60fps support image

Lunaero1 avatar Apr 29 '22 01:04 Lunaero1

Is there any way how to do this? I want to use this driver as it supports webcam usage, but the frame rate holds me back.

Just fix the hardcoded values mentioned above and compile, should work.

exactly what values do I change? I see several FPS values in the cpp file but I do not know WHAT EXACTLY is to be changed for 60fps support image


	int fps = 10;
	if (iPosition / 3 == 0) {
		// 640x480, {30, 60, 15} fps
		pvi->bmiHeader.biWidth = 640;
		pvi->bmiHeader.biHeight = 480;
		fps = iPosition == 2 ? 15 : 30 * (iPosition+1);
	}
	else  {
		// 320x240, {30, 60, 15} fps
		pvi->bmiHeader.biWidth = 320;
		pvi->bmiHeader.biHeight = 240;

		fps = iPosition == 5 ? 15 : 30 * (iPosition-2);
	}

based on the code: for 480p: if iPosition = 0, 1, 2 fps will be 30, 60, and 15 fps respectively, for 240p: if iPosition = 3, 4, 5 fps will be 30, 60, and 15 fps respectively

If i'm not wrong just overide would work? fps = 60;

haze1986 avatar May 31 '22 07:05 haze1986

You just need to set iPosition = 1 for 640x480/60 fps, I would just change the value provided to the function where it's getting called, but you can do it in a function body as well. Just overriding the value altogether should work too, although it's a bit less elegant of a solution here.

minch-dev avatar May 31 '22 14:05 minch-dev