|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: mjpg-streamer running on roboRIO
It's worse than I thought. My earlier comparison was with the MJPG streamer at 10 fsp and my robot program at 24fps. The MJPG streamer uses about 3 times the bandwidth as the WPILib streamer running on the robot.
It looks like I'm getting an MJPEG stream from my Logitech P930e (similar to the Logitech P920 but with a wider field of view), rather than an H.264 stream. Do you know if there's any way I can persuade input_uvc.so to get an H.264 or MPEG-4 stream from the camera? |
|
#17
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#18
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
For anyone who wants to read data from mjpg-streamer, I've posted python code that can read from the stream using urllib + opencv.
http://www.virtualroadside.com/blog/...-using-opencv/ We ended up not using any image processing at our competition, but because our dashboard was created using HTML/js, it was trivially easy to connect to the camera and display its output. Highly recommend mjpg-streamer as a solution if you're only needing to display output on the Driver Station. |
|
#19
|
|||
|
|||
|
Re: mjpg-streamer running on roboRIO
Quote:
I measured the bandwidth using the Windows task manager. Since there was nothing else on the WiFi between the laptop and the robot router (usual DLink 1522B), I believe the bandwidth measurements are reliable. |
|
#20
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
FYI, I packaged mjpg-streamer into an IPK file that can be installed by opkg. It includes an init script that automatically starts mjpg-streamer when the RoboRIO starts.
Installation: https://github.com/robotpy/roborio-packages Notes: https://github.com/robotpy/roborio-p.../mjpg-streamer Last edited by virtuald : 01-14-2016 at 10:58 AM. Reason: Bad URL |
|
#21
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
MikeA FRC #116 |
|
#22
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
I did update to the latest version of RobotPy on the robot. Thanks! |
|
#23
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
The opkg architecture has changed from 2015 to 2016, so if you don't have the 2016 image installed, then you will get that error.
|
|
#24
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Oh yea, I still have to update. So once I get it installed, do I just plug in the webcam and I will see it on the driver station? Or is there some other setup I have to do yet?
|
|
#25
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
I haven't tried to integrate mjpg-streamer with the LabVIEW dashboard (and it's not really something I'm planning to do).
To see the camera feed, point a web browser at http://roborio-4480-frc.local:5800/ and it should show up there. If it doesn't, then reboot your roboRIO with the camera plugged in. |
|
#26
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#27
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
Refer to the FMS Whitepaper for bandwidth approximations. Last year we were able to run two 120x160 streams at 10fps with no complaints from the FTAA (we doubled the display size of the image on our HTML dashboard). |
|
#28
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#29
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#30
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
With the "ps -Af | grep mjpg", I get Code:
1602 admin {grep} /bin/busybox.nosuid /bin/grep mjpg
Thanks for all the support! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|