-
Notifications
You must be signed in to change notification settings - Fork 4
MCAP databags support and use_compressed_images feature #4
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
base: main
Are you sure you want to change the base?
Conversation
Mcap support with compressed selection feature done
Bugfixes for ffmpeg tool
amansrf
left a comment
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.
Approved, but left some minor suggestions! Thanks for improving this!
| ROSBAG_NAME=$(basename "$d") | ||
| root_dir=$(pwd) | ||
| sleep 2s | ||
| # find "$DATA_DIR" \( -iname "*.db3" -o -iname "*.mcap" \) -print0 | xargs -0 -I file dirname file | while read d; do |
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.
Why leave it commented? What you have added right after seems to be an improvement. If this is for backwards compatibility, either version the script or add a flag? Preference is to delete
| for camera_output_dir in "$OUTPUT_DIR"/*/; do | ||
| base_name=$(basename "$camera_output_dir") | ||
| ffmpeg -framerate 50 -pattern_type glob -i '*.jpg' -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p ../$base_name.mp4 | ||
|
|
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.
Hahahaha. Interesting!
multi_extract.sh
Outdated
| done < /tmp/tempfile.txt | ||
|
|
||
| done | ||
| rm /tmp/tempfile.txt No newline at end of file |
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.
Nit: newline
| exit() | ||
|
|
||
| # Iterator dictionary to go over camera messages | ||
| # with Reader(ROSBAG_FILE) as reader: |
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.
Delete instead of commenting as much as possible. This is a git repo, can be recovered later if really needed.
…tain image topics. Cleaned up all error messages
Handling edge cases where ROSBAG does not have images, or missing cer…
cleanup, tested
This tool now supports .db3 and .mcap bags seamlessly. Boolean to use compressed images added in multi_extract.sh