This version of video recording has the following features:
Record to mp4 file
Record to ogv file
Record to avi file
Record to /dev/video (Xenial only) - Instructions below
Record to /dev/video
This feature requires a video 4 linux2 loopback device.
sudo apt-get install v4l2loopback-dkms
sudo modprobe v4l2loopback
At this point you should have a `/dev/video0` device file.
Start gazebo, and choose the v4l recording option
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.
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.
can I stream other cameras (non UserCamera)?
I'm still having the crash when recording AVI described on the previous pull request. Should we disable that for Trusty?
Hmm. It works for me on trusty. I'll try it again.
I could be missing something in my machine...
If so, we should check for it on cmake. I'm not sure what it would be yet.
I also have the crash if I try AVI on Trusty.
It's not worth debugging. I've removed AVI.
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.