You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,13 @@ and follow the [instructions here](https://github.com/ros-misc-utilities/.github
30
30
## About encoders, decoders, and pixel formats
31
31
32
32
The tools in this package often have many parameters related to encoders, decoders, and pixel formats.
33
-
It is important to understand the terminology, and how single-channel images (like ``mono8`` and Bayer images) handled. Please consult the [ffmpeg\_encoder\_decoder repo](https://github.com/ros-misc-utilities/ffmpeg_encoder_decoder) for more information.
33
+
It is important to understand the terminology, and how single-channel images (like ``mono8`` and Bayer images) are handled.
34
+
Please consult the [ffmpeg\_encoder\_decoder repo](https://github.com/ros-misc-utilities/ffmpeg_encoder_decoder) for more information.
34
35
35
36
## Programs for processing rosbags
36
37
37
38
### bag\_to\_file
38
-
The ``bag_to_file`` tool simply concatenates the FFMPEGPacket message content from a rosbag into a file, and runs the ``ffmpeg`` tool to
39
-
embed the stream into a an ``mp4`` container.
39
+
The ``bag_to_file`` tool concatenates the FFMPEGPacket message content from a rosbag into a file, and runs the ``ffmpeg`` tool to embed the stream into a an ``mp4`` container.
@@ -78,6 +78,7 @@ For example if the codec is ``hevc`` and a bayer image (``bayer_rggb8``) has bee
78
78
[INFO] [1753428586.070137592] [bag_to_frames]: using decoder: hevc
79
79
[WARN] [1753428586.406598438] [Decoder]: hardware frame transfer failed for pixel format yuv420p
80
80
```
81
+
81
82
Before the image is written a final conversion to the ``output_format`` is performed. The default is ``bgr8``.
82
83
The format string must follow [ROS convention](https://docs.ros.org/en/jazzy/p/sensor_msgs/generated/program_listing_file_include_sensor_msgs_image_encodings.hpp.html) rather than the libav convention, i.e. ``bgr8`` rather than ``bgr24``.
The ``uncompress\_bag`` program can be used to convert a bag with ffmpeg-encoded images (FFMPEGPacket message type) into images.
143
+
The ``uncompress\_bag`` program can be used to convert a bag with ffmpeg-encoded images (FFMPEGPacket message type) into a bag with regular (sensor_msgs/Image) messages.
0 commit comments