Skip to content

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

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Jun 17, 2021

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

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <[email protected]>
@codecov
Copy link

codecov bot commented Jun 18, 2021

Codecov Report

❗ No coverage uploaded for pull request base (locked_entities_camera_record@cd3106b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                       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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd3106b...457c12f. Read the comment docs.

@@ -379,7 +386,8 @@ void CameraVideoRecorderPrivate::OnPostRender()
&CameraVideoRecorderPrivate::OnImage, this);

this->videoEncoder.Start(this->recordVideoFormat,
this->tmpVideoFilename, width, height);
this->tmpVideoFilename, width, height, 25,
Copy link
Contributor

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 ?

Copy link
Contributor

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.

Copy link
Contributor

@ahcorde ahcorde left a 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 ?

@nkoenig nkoenig merged commit 5b5b3da into locked_entities_camera_record Jun 18, 2021
@nkoenig nkoenig deleted the camera_record_bitrate branch June 18, 2021 15:53
nkoenig added a commit that referenced this pull request Sep 23, 2021
…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]>
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.

3 participants