No version for distro humble showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro rolling showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro ardent showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro bouncy showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro crystal showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro eloquent showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro dashing showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro galactic showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro foxy showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro iron showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

No version for distro lunar showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.1
Last Updated 2026-10-29
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

Version 3.0.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-10-31
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.0 (2026-10-29)

  • Merge pull request #1826 from k-okada/ros2-support Add ROS2 support to jsk_ros1_ros2_compat, dynamic_tf_publisher, jsk_topic_tools, jsk_tools, audio_video_recorder, jsk_data, image_view2, jsk_rosbag_tools
  • [jsk_rosbag_tools] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION (ROS1-original lines inside the if("$ENV{ROS_VERSION}" ...) blocks, including catkin_download(...), left at their original indentation to minimize diff against master). Adds rosbag_compat.py, a local rosbag1/rosbag2 (sqlite3-backed) compat shim, and rewrites bag_to_audio.py/compress.py/ extract.py/info.py/merge.py/video.py/tf_static_to_tf.py as single ROS1/ROS2 dual-support scripts on top of it. Co-Authored-By: Claude Sonnet 5 <<noreply@anthropic.com>>
  • touching AMENT_IGNORE some packages
  • Merge branch 'master' into fix-python3-shebang
  • Merge pull request #1819 from k-okada/update_travis_0.5.28 update jsk_travis 0.5.28 (new ROS repository key)
  • jsk_rosbag_tools: pin to proglog==0.1.11
  • Merge pull request #1816 from k-okada/noble-ros-o enable noble techfak ros-o test #1814
  • jsk_rosbag_tools: add libjpeg and libwebp-dev pip install moviepy/Pillow requires dev libraries 2025-04-05T10:29:31.1856757Z warning: no previously-included files found matching '.readthedocs.yml' 2025-04-05T10:29:31.1856903Z warning: no previously-included files found matching 'codecov.yml' 2025-04-05T10:29:31.1857118Z warning: no previously-included files matching '.git*' found anywhere in distribution 2025-04-05T10:29:31.1857331Z warning: no previously-included files matching '.pyc' found anywhere in distribution 2025-04-05T10:29:31.1857650Z warning: no previously-included files matching '.so' found anywhere in distribution 2025-04-05T10:29:31.1857788Z no previously-included directories found matching '.ci' 2025-04-05T10:29:31.1857874Z adding license file 'LICENSE' 2025-04-05T10:29:31.1858004Z writing manifest file 'src/Pillow.egg-info/SOURCES.txt' 2025-04-05T10:29:31.1858070Z running build_ext 2025-04-05T10:29:31.1858076Z 2025-04-05T10:29:31.1858080Z 2025-04-05T10:29:31.1858205Z The headers or library files could not be found for jpeg, 2025-04-05T10:29:31.1858340Z a required dependency when compiling Pillow from source. 2025-04-05T10:29:31.1858343Z 2025-04-05T10:29:31.1858435Z Please see the install instructions at: 2025-04-05T10:29:31.1858586Z https://pillow.readthedocs.io/en/latest/installation.html
  • jsk_rosbag_tools: imageio: downloading ffmpeg is no longer supported, see https://github.com/Zulko/moviepy/issues/493
  • Contributors: Kei, Kei Okada, Yoshiki Obinata

2.2.16 (2025-01-06)

  • [ROS-O] fix for ROS-O (#1802)
    • jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
    • jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
  • Contributors: Kei Okada

2.2.15 (2024-12-13)

2.2.14 (2024-12-12)

  • [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
  • .github/forkflows/config.yml: add ROS-O test (#1809)
  • [jsk_rosbag_tools] Fixed pillow version (#1799)
  • Contributors: Iori Yanokura, Yoshiki Obinata

2.2.13 (2023-11-09)

  • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used (#1784)
    • [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
  • set python2 for jsk_rosbag_tools (#1781)
  • catch StopIteration when all images do not have stamp (#1767)
  • jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
  • [jsk_rosbag_tools] Fixed a bug when the specified fps is less than

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange