Skip to content

Commit 410c246

Browse files
committed
updated docs
1 parent 8b90c21 commit 410c246

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,17 @@ conincides with the frame number.
6060
### Extract frames from a rosbag
6161
The ``bag_to_frames`` decodes the ffmpeg-generated packets from a rosbag into frames:
6262
```
63-
bag_to_frames -b input_bag -t topic [-o out_dir] [-d decoder][-T timestamp_file] [-s start_time] [-e end_time]
63+
ros2 run ffmpeg_image_transport_tools bag_to_frames -b input_bag -t topic [-o out_dir] [-d decoder][-T timestamp_file] [-s start_time] [-e end_time]
6464
```
6565
The frames are written to ``out_dir`` with the ros header stamps embedded in the file name. A suitable decoder is usually guessed from the encoding used in the packet, but you can specify a valid ffmpeg decoder by using the ``-d decoder`` option. For start and stop times and the timestamp file see ``bag_to_file``.
6666

67+
### Compress images in a rosbag
68+
Use ``compress_bag`` to encode a video stored as Image messages into FFMPEGPacket format.
69+
```
70+
ros2 run ffmpeg_image_transport_tools compress_bag -i input_bag -o output_bag -t /first_image_topic -t /next_image_topic [-O encoder=hevc_vaapi] [-s start_time] [-e end_time]
71+
```
72+
There are various other encoder options you can set. Run with the ``-h`` option to see them all.
73+
6774
## License
6875

6976
This software is issued under the Apache License Version 2.0.

0 commit comments

Comments
 (0)