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

The --fps option for video-stream doesn't work. #846

Open
kyoung-mo-yang opened this issue Aug 31, 2023 · 0 comments
Open

The --fps option for video-stream doesn't work. #846

kyoung-mo-yang opened this issue Aug 31, 2023 · 0 comments

Comments

@kyoung-mo-yang
Copy link

Description

If --fps option for video-stream is greater than 1, the option doesn't work.

Reproduction

The two scripts below have the same FPS applied.

idb video-stream --fps 30 --format mjpeg --compression-quality 1.0 --udid {UDID}
idb video-stream --fps 10 --format mjpeg --compression-quality 1.0 --udid {UDID}

Solution

Float64 frameTime = 1 / configuration.framesPerSecond.unsignedIntegerValue;

The above code should be modified as follows:

Float64 frameTime = 1.0 / configuration.framesPerSecond.unsignedIntegerValue;

Additional Information

@kyoung-mo-yang kyoung-mo-yang changed the title The options --fps for video-stream doesn't work. The --fps option for video-stream doesn't work. Sep 1, 2023
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

1 participant