Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Currently both the video bit-rate and resolution/quality can only be configured when initializing the
Recorder
, which means it needs to happen before Camera initialization.I'm working on a library where users can pass a custom video bit-rate to the
startRecording(..)
function, which would not work with CameraX as I'd need to re-build the session/use-cases to change the bit-rate at that point since the camera is already bound/running.As far as I'm aware, you are using an OpenGL pipeline to forward the frames to the actual Encoder/
MediaCodec
instance, so if I'm not missing something it would be possible to configure bit-rate after the Camera has been started as the MediaCodec has not yet been created by then (otherwiseasPersistentRecording()
wouldn't work, no?)I think it'd be great to have bit-rate and resolution/quality be configureable after the
VideoOutput
has already been created (but before we callstartRecording()
)