View Single Post
  #63   Spotlight this post!  
Unread 15-02-2016, 14:13
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,106
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: mjpg-streamer running on roboRIO

Quote:
Originally Posted by jreneew2 View Post
Alright, thanks. I'm not sure what you mean when you said "If you're connecting to the stream separately then that would work too". Are you saying that over a web browser?

So, running the vision code with mjpg streamer on the roboRIO is out of the question at the moment? If so, would the next logical step to have vision run on the driver station computer? If so, how would I go about doing that?

Thanks again,
Drew
Well, you said you could connect to an Axis stream? If you can connect to that, then the mjpg-streamer stream should work too, if you have the right URL.

When I say "separately", I mean roll your own code to make the HTTP connection. Like this python code. It's pretty easy in python because it's fairly easy to create http connections... I'm not sure what I would use in C++, it's been too long.

FWIW, the last time that I used OpenCV to connect to an mjpg stream (an Axis, actually) via ffmpeg, I ran into this bug: https://trac.ffmpeg.org/ticket/2343
__________________
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