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

Add support for setting video frame rate #436

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

MHShetty
Copy link
Member

@MHShetty MHShetty commented Jun 7, 2024

Adds support to set fps of the video being recorded (Issue #51)

(Needs testing to check if the set fps actually reflects in the video across different devices, especially at 60 fps for devices that support it)

@MHShetty MHShetty force-pushed the video_frame_rate branch 2 times, most recently from a8a8831 to 5322053 Compare June 25, 2024 04:00
@MHShetty MHShetty requested a review from muhomorr June 25, 2024 04:09
@MHShetty MHShetty force-pushed the video_frame_rate branch 2 times, most recently from c41cd08 to 499bcfc Compare June 28, 2024 09:29
@MHShetty MHShetty requested a review from muhomorr June 28, 2024 09:29
@MHShetty MHShetty force-pushed the video_frame_rate branch 2 times, most recently from 5712181 to 4d75174 Compare July 19, 2024 08:06
@MHShetty MHShetty marked this pull request as draft July 19, 2024 09:06
@MHShetty
Copy link
Member Author

The video frame rate despite being set correctly doesn't seem to reflect on the video currently. We could merge this PR once this gets resolved on CameraX

(for frame rate per second setting)
(in quick settings dialog)
(show appropriate options in dropdown and selection of default fps)
(and prevent crash when video mode is directly turned on)
(for frame rate per second setting)
@MHShetty
Copy link
Member Author

The latest changes made in the recent release does fix the issue with uncertainties with lower ranges on my Pixel 7A. However, the issue still persists for 60 fps, where recording a video while choosing a 60-fps range (from the list of supported ranges reported by the library) doesn't make the fps of the recorded video close to the selected range.

Have filed an issue for the same on CameraX's issue tracker: https://issuetracker.google.com/issues/384146331

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

Successfully merging this pull request may close these issues.

2 participants