-
Notifications
You must be signed in to change notification settings - Fork 302
Add bitrate param to camera video recorder system #864
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
Conversation
Signed-off-by: Ian Chen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## locked_entities_camera_record #864 +/- ##
================================================================
Coverage ? 65.74%
================================================================
Files ? 240
Lines ? 17835
Branches ? 0
================================================================
Hits ? 11726
Misses ? 6109
Partials ? 0 Continue to review full report at Codecov.
|
@@ -379,7 +386,8 @@ void CameraVideoRecorderPrivate::OnPostRender() | |||
&CameraVideoRecorderPrivate::OnImage, this); | |||
|
|||
this->videoEncoder.Start(this->recordVideoFormat, | |||
this->tmpVideoFilename, width, height); | |||
this->tmpVideoFilename, width, height, 25, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about adding fps
as a parameter too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge this PR, and add fps this to the locked_entities_camera_record
PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about adding fps
as a parameter too ?
…862) * Support locked entities, and headless video recording using sim time Signed-off-by: Nate Koenig <[email protected]> * Spelling Signed-off-by: Nate Koenig <[email protected]> * Add bitrate (#864) Signed-off-by: Ian Chen <[email protected]> * Changing Locked name and adding fps Signed-off-by: Nate Koenig <[email protected]> * Rename to unpin Signed-off-by: Nate Koenig <[email protected]> * Fix codecheck Signed-off-by: Nate Koenig <[email protected]> Co-authored-by: Nate Koenig <[email protected]> Co-authored-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen [email protected]
🎉 New feature
Summary
By default the video recorder records at a bit rate of 2Mbps. The PR adds a
<bitrate>
param so users can specify custom bitrate.Test it
edit
camera_video_record_dbl_pendulum.sdf
example world file, and add<bitrate>8000000</bitrate>
to the plugin to record a video at 8Mbps.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge