View Single Post
  #1   Spotlight this post!  
Unread 29-01-2016, 23:31
techplex's Avatar
techplex techplex is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 94
techplex is just really nicetechplex is just really nicetechplex is just really nicetechplex is just really nice
Streaming Camera from Pi 2 Co-Processor to Driverstation

Has anyone had success streaming images from a co-processor to the driverstation?

I'd think that a program could be developed to mimic the Axis camera and provide an mjpeg stream. I found a class TCPImageFetcher in the SmartDashboard project (https://git.io/vzxAS) but its not immediatly obvious what one would have to do to be compadible with the format it expects.

I've tried using mjpeg-streamer and pointing the driverstion at the Pi but no joy. https://github.com/robotpy/mjpg-streamer

Another route would be using VLC on the driverstation and streaming using cvlc but that seems to introduce nearly 3 seconds of delay.

Here is the command i'm using
raspivid -o - -t 0 -n -w 640 -h 480 -fps 24 | cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)