Skip to content

Conversation

@Chrislai502
Copy link

This tool now supports .db3 and .mcap bags seamlessly. Boolean to use compressed images added in multi_extract.sh

Copy link
Owner

@amansrf amansrf left a 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
Copy link
Owner

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

Copy link
Owner

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
Copy link
Owner

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:
Copy link
Owner

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…
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