potential-engine streams using the h.264 video codec. h.264 video is (generally) far smaller than Motion JPEG, which is the default (and, to my personal knowledge) only “codec” supported by the WPI Camera Server.
h.264 is technically more difficult to produce, but hardware acceleration exists! And costs USD$35!
We saw this in the manual:
and ran with it.
How do I use it?
Did you read the README and install all the dependencies first?
git clone https://github.com/BHSSFRC/potential-engine.git && cd potential-engine
mkdir build && cd build && cmake ..
- Retrieve your user’s manual with
If you want to make the program available from anywhere on the system (i.e. install it) just use
sudo make install from within the
To retrieve video, you’ll need software beyond what FIRST provides. (We’re working on a version of SmartDashboard with this functionality, but it’s not 100% ready for distribution yet.) If you have FFmpeg on your driver station, you can display the video with
ffplay -fflags nobuffer "rtsp://SE.R.V.ER:1181/stream" (assuming you left the port and url options at their defaults.)
Can I make it better?
Yes, absolutely! Please note that this project is licensed under the GNU General Public License v3 which requires you to keep your version at least source-available in the event that you distribute your modified version.
Pull requests are also entirely welcome, of course!
- The address option will not accept IPv6 addresses.
Why was this tagged as pi?
The server has explicit support for the Raspberry Pi camera module, and we imagine most teams will use a Raspberry Pi to run this server on their robot as well. (Props to anyone crazy enough to install it onto a roboRIO though.)