Go to Post This is probably one of the most important robots in FRC history and it never even was in an official event. - gyroscopeRaptor [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #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)
  #2   Spotlight this post!  
Unread 30-01-2016, 00:50
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,058
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Streaming Camera from Pi 2 Co-Processor to Driverstation

What problems are you experiencing with mjpg-streamer?
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #3   Spotlight this post!  
Unread 30-01-2016, 07:39
lalondma lalondma is offline
Registered User
AKA: Marc Lalonde
FRC #3990 (Tech for Kids)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Montreal
Posts: 5
lalondma is an unknown quantity at this point
Re: Streaming Camera from Pi 2 Co-Processor to Driverstation

I did some tests with a package called 'motion'. When installed on your co-processor, it can act as a video frame server (http) that streams the output of USB and IP cameras in mjpeg format. Great tool, very well maintained and documented.
http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
Closed Thread


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 00:39.

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