Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

60 FPS support #14

Open
StanislawMinksztym opened this issue Dec 19, 2020 · 7 comments
Open

60 FPS support #14

StanislawMinksztym opened this issue Dec 19, 2020 · 7 comments

Comments

@StanislawMinksztym
Copy link

Hi,

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

@alkapone312
Copy link

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

@mirh
Copy link

mirh commented Mar 1, 2021

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

@mangkoran
Copy link

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.

@minch-dev
Copy link

minch-dev commented Jan 11, 2022

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.

@Lunaero1
Copy link

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

@haze1986
Copy link

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;

@minch-dev
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants