Go to Post My code mentors once told me, "A good programmer can look at a library, decide he hates it, and code everything from scratch. An amazing programmer can look at a library, decide he hates it, but realize the time it will save him and learn to use it." - slavik262 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-01-2016, 23:31
Techwiz's Avatar
Techwiz Techwiz is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 85
Techwiz will become famous soon enough
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)
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi