#2443 Merged at ab035f2
  1. Nate Koenig

This version of video recording has the following features:

  1. Record to mp4 file
  2. Record to ogv file
  3. Record to avi file
  4. Record to /dev/video (Xenial only) - Instructions below

Record to /dev/video

This feature requires a video 4 linux2 loopback device.

  1. sudo apt-get install v4l2loopback-dkms
  2. sudo modprobe v4l2loopback

    At this point you should have a `/dev/video0` device file.
  3. Start gazebo, and choose the v4l recording option

  4. In a terminal start xawtv to see the output (sudo apt-get install xawtv)

This will not work on trusty because the available version of ffmpeg does not support output to a video4linux loopback device. You can try compiling and installing a new version of ffmpeg from source.

Comments (15)

  1. John Hsu

    works for me. One minor note is that the stream aspect ratio doesn't change when gzclient window is resized, leading to distortion, but we can create an issue and address the problem for the future.


  2. Carlos Agüero

    Minor GUI details:

    • I click on the video button, the encoding starts.
    • I click on the icon again, and the small window with the stop button shows up. Sometimes, there's an orange frame around the window but I don't see it all the times. Also, if I move the mouse pointer outside of the close window and go back again, the orange frame disappears.
    • The p from Stop looks a little cut on my screen, and looks like a D.
  3. Louise Poubel

    Another minor detail for later: GUI overlays get rendered as black rectangles, this is the timer_gui.world:


  4. Louise Poubel

    I'm trying to think of a way to quantify this... It feels to me that the OGV videos are playing back a bit too fast.