Skip to content

Software

foxglove_compressed_video_transport

By ros-misc-utilities, from github.com/ros-misc-utilities/foxglove_compressed_video_tra… (opens in a new tab)

  • Perception
  • Library
  • Apache-2.0

A ROS 2 image transport plugin that encodes camera frames into Foxglove CompressedVideo messages using FFmpeg, so they can be recorded in rosbags and viewed in Foxglove Studio.

Facts

GitHub stars
13read on 28 Nov 2026
Last update
29 Jun 2026Newest commit on master
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 5e475b3 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Encodes frames with FFmpeg libav encoders, defaulting to the CPU-based libx264 encoder.
  • Hardware-accelerated encoders such as h264_nvenc or h264_vaapi can be selected where available.
  • Encoding is configured through parameters under the foxglove block, including encoder, bit rate, and quantization limits.
  • The gop_size parameter must be set to 1 for Foxglove compatibility.
  • Output messages can be recorded in a rosbag for later processing.
  • The subscriber decoder is provided for testing only and is not supported.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Maintained, last commit on 29 Jun 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 5e475b3

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by ros-misc-utilities, at commit 5e475b3, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

ROS2 image transport for Foxglove CompressedVideo messages

This plugin provides a ROS2 image transport for encoding messages in Foxglove's CompressedVideo message format, using the FFMpeg library. These messages can be recorded in a rosbag for processing with e.g. Foxglove Studio.

Encoding is based on the ffmpeg_encoder_decoder repo (opens in a new tab), which explains the compression process in more detail. Looking at the ffmpeg_image_transport documentation (opens in a new tab) may also be helpful.

There is also an unsupported decoder provided for testing purposes. Use at your own peril.

Supported systems

Continuous integration is tested under Ubuntu with the following ROS2 distros:

Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab) Image: Build Status (opens in a new tab) (opens in a new tab)

Installation
From packages
sudo apt-get install ros-${ROS_DISTRO}-foxglove-compressed-video-transport
From source

Set the following shell variables:

repo=foxglove_compressed_video_transport
url=https://github.com/ros-misc-utilities/${repo}.git

and follow the instructions here (opens in a new tab)

Make sure to source your workspace's install/setup.bash afterwards. If all goes well you should see the transport show up:

ros2 run image_transport list_transports

should give output (among other transport plugins):

"image_transport/foxglove"
 - Provided by package: foxglove_compressed_video_transport
 - Publisher: 
      This plugin encodes frames into foxglove compressed video packets
    
 - Subscriber: 
      This plugin decodes frames from foxglove compressed video packets

Remember to install the plugin on both hosts, the one that is encoding and the one that is decoding (viewing).

Parameters
Publisher (camera driver)

Here is a list of the available encoding parameters:

  • encoder: the libav (ffmpeg) encoder being used. The default is libx264, which is on-CPU unaccelerated encoding. Depending on your hardware, your encoding options may include the hardware accelerated h264_nvenc or h264_vaapi. You can list all available encoders with ffmpeg --codecs. In the h264 row, look for (encoders).
  • preset: default is empty (""). Valid values can be for instance slow, ll (low latency) etc. To find out what presets are available, run e.g. ffmpeg -hide_banner -f lavfi -i nullsrc -c:v libx264 -preset help -f mp4 - 2>&1 Note: deprecated, set parameter via encoder_av_options instead.
  • profile: For instance baseline, main. See the ffmpeg website (opens in a new tab). Note: deprecated, set parameter via encoder_av_options instead.
  • tune: See the ffmpeg website (opens in a new tab). The default is empty(""). Note: deprecated, set parameter via encoder_av_options instead.
  • gop_size: The number of frames between keyframes. For foxglove, this must be set to 1. The larger this number the more latency you will have, but also the more efficient the transmission becomes.
  • bit_rate: The max bit rate [in bits/s] that the encoding will target. Default is ``8242880`.
  • encoder_av_options: Set comma-separated list of libav encoder options with : as assignment operator, e.g. tune:<foo>,delay:<bar>.
  • delay: Not sure what it does, but it doesn't help with delay. Default is empty (""). Note: deprecated, set parameter via encoder_av_options instead.
  • pixel_format: Forces a different pixel format for internal conversions. See the ffmpeg encoder/decoder repo (opens in a new tab) and the ffmpeg_image_transport repo (opens in a new tab) for more.
  • qmax: Max quantization rate. Defaults to 10. See ffmpeg documentation (opens in a new tab). The larger this number, the worse the image looks, and the more efficient the encoding.
  • measure_performance: For performance debugging (developers only). Defaults to false.

The parameters are under the foxglove variable block. If you launch your publisher node (camera driver), you can give it a parameter list on the way like so:

            parameters=[
                params_path,
                {
                    'image_raw.foxglove.encoder': 'h264_vaapi',  # 'libx264'
                    'image_raw.foxglove.profile': 'main',
                    'image_raw.foxglove.preset': 'll',
                },
            ],

See the example launch file for a V4L USB camera

Subscriber (viewer)

The subscriber plugin is used for debugging purposes and is not supported.

Setting encoding parameters when launching camera driver

The launch directory contains an example launch file cam.launch.py that demonstrates how to set encoding profile and preset for e.g. a usb camera.

License

This software is issued under the Apache License Version 2.0.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.