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

Can't get higher than 5FPS #42

Open
torindkflt opened this issue Dec 9, 2022 · 7 comments
Open

Can't get higher than 5FPS #42

torindkflt opened this issue Dec 9, 2022 · 7 comments

Comments

@torindkflt
Copy link

Greetings. I have a Windows 10 system with two 1080p webcams connected to it running cam2ip for both cameras. The cameras support up to 30FPS at 1080p, but cam2ip will not run them at any higher than 5FPS no matter what value I use for the -delay option. I don't need to run them at the full 30FPS, but I'd like to be able to run them at at least 10FPS. Is there an additional setting I'm overlooking?

Thank you.

@gen2brain
Copy link
Owner

That sounds strange. Are you using the OpenCV or VfW build? Though it was reported here #15 that VfW doesn't work for every cam. You can also try to disable WebGL.

@torindkflt
Copy link
Author

torindkflt commented Dec 9, 2022

I'm using the 64-bit OpenCV version, as the VfW version indeed does not seem to work with my cameras. Disabling WebGL had no effect. I'm streaming the MJPEG streams to Agent DVR (replacement for iSpy security), and have verified that Agent is configured to read the stream at 10FPS, so the bottleneck seems to be with cam2ip. The computer it's running on is holding at about 40% CPU usage and 60% RAM usage with both instances of cam2ip running, so it's seemingly not a CPU or RAM limitation. Closing one of the instances does not increase the FPS of the other still-running instance, which further supports it not being a CPU or RAM limitation.

@gen2brain
Copy link
Owner

Looks like you can set the delay to 0 then, and you should probably increase that Agent FPS.

@torindkflt
Copy link
Author

No luck. I set the delay to 0 and configured Agent to record at 30FPS (although eventually I only need 10-15FPS), and the cameras are still only being streamed at 5FPS. I know the cameras do support 30FPS because if I open them directly on that computer using ffplay, it displays them at 30FPS just fine.

Network bandwidth isn't an issue. Both this computer and the one running Agent are connected to Gig-E, and Task Manager shows the system running cam2ip only streaming at 30mbit/sec, so plenty of bandwidth left over.

@gen2brain
Copy link
Owner

What is the FPS if you try it on localhost without Agent, i.e. ffplay -i http://localhost:56000/mjpeg?

@torindkflt
Copy link
Author

Using ffplay through localhost still returns about 5FPS. If I close cam2ip and connect ffplay directly to the camera (ffplay -f dshow -video_device_number 0 -i video="@device_pnp_\\?\usb#vid_32e4&pid_9230&mi_00#6&2ba1ddea&1&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"), it plays at full 30FPS.

@fluoroom
Copy link

fluoroom commented Jan 5, 2023

I'm facing this issue too using Windows x64 build

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

3 participants