ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rviz - video recording

asked 2013-07-10 02:32:39 -0500

JaRu gravatar image

updated 2013-11-14 10:36:56 -0500

tfoote gravatar image

Hi all!

Is it possible to make a video recording from rviz displays?

Thanks for your help.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2013-07-10 03:45:44 -0500

allenh1 gravatar image

It's possible. Just use a screen capture utility. For Ubuntu, you can use something like Kazam.

sudo apt-get install kazam

Run it, then select the part of the window you wish to record.

edit flag offensive delete link more

answered 2016-02-22 10:57:29 -0500

130s gravatar image

updated 2016-02-22 11:02:56 -0500

In jsk_rviz_plugins package that is available via apt in some ROS distros, there's VideoCapture plugin.

edit flag offensive delete link more


I only get a huge video that shows only green pixels along with some noise.

stfn gravatar image stfn  ( 2019-04-09 07:21:25 -0500 )edit

VLC can fix that. ๐Ÿ˜‰

robbyHuelsi gravatar image robbyHuelsi  ( 2019-12-17 02:54:05 -0500 )edit

answered 2015-10-07 15:20:55 -0500

hsu gravatar image

just for reference, here's some other desktop video recording options in ubuntu I use to record graphical stuff (e.g. rviz, gazebo, etc):

  • recordmydesktop, and @scpeters has a script that lets you click on a window to record it:

    alias recordmywindow='window_id=`xwininfo | grep "Window id" | sed -e "s@.*Window id: \([0-9a-fA-Fx]*\).*@\1@"`; recordmydesktop --workdir /home/hsu/videos --no-sound --windowid $window_id'
  • vlc screen:// and piping --sout to a file or some other media.
edit flag offensive delete link more

answered 2016-02-11 05:19:53 -0500

lucasw gravatar image captures a parameter defined area of the screen and publishes it as a ros image. From there the image can be recorded to a bag and then exported to a video .

The other approach is publishing an image from a camera within rviz (if it isn't necessary to capture the user interface, or annoying to adjust the window position and screen capture settings to match each other). There isn't a good way to do that yet but there are some possibilities that might not take too much development

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-07-10 02:32:39 -0500

Seen: 13,933 times

Last updated: Feb 22 '16