Skip to content

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

@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

(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)
@thestinger thestinger force-pushed the main branch 2 times, most recently from 6b28894 to 00870f6 Compare February 19, 2025 15:56
@thestinger thestinger force-pushed the main branch 2 times, most recently from 18723e0 to 46ff422 Compare March 7, 2025 13:07
@MHShetty
Copy link
Member Author

MHShetty commented Jun 3, 2025

We might finally be able to have this feature in our app by the next CameraX release

@MHShetty
Copy link
Member Author

A fix is available for this in the latest release: https://issuetracker.google.com/issues/384146331#comment20

Will update this PR for the same once its implemented and tested on our end

@MHShetty
Copy link
Member Author

We have found some issues with the new API, could take a while before it gets resolved. Might need to drop persistency to support varying combinations of video settings correctly

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