|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#46
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Change /etc/default/mjpg-streamer. The default contents look like this:
https://github.com/robotpy/mjpg-stre...it/default#L11 |
|
#47
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#48
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
You could use filezilla. Better in the long term to learn how to use vi. |
|
#49
|
||||||
|
||||||
|
Re: mjpg-streamer running on roboRIO
I got viewing the stream from mjpg-streamer working on the LabVIEW dashboard also. Use "BB_CameraDirectly from MJPG-Streamer.vi" from the attached zip.
|
|
#50
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Does anyone know how save the exposure settings? We are using the control panel in the web interface in mjpg-streamer. The settings work but they don't save over a reboot. Any ideas?
Thanks! |
|
#51
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
I was thinking that if we could find where those values are defined, we could manually set them. But I think they are in the hardware of the camera, so I'm not sure if we could set them. Or you could make a script to automatically set the values at start. I'm not sure how to do that either... |
|
#52
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
I will bring a camera home tonight and make it work.
|
|
#53
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
I've uploaded mjpg-streamer release 2016.2.0 to the ipkg repo, which will allow you to pass the following settings to the input plugin (via the INPUT[1] line of /etc/default/mjpg-streamer):
Code:
Optional parameters (may not be supported by all cameras): [-br ].................: Set image brightness (auto or integer) [-co ].................: Set image contrast (integer) [-sh ].................: Set image sharpness (integer) [-sa ].................: Set image saturation (integer) [-cb ].................: Set color balance (auto or integer) [-wb ].................: Set white balance (auto or integer) [-ex ].................: Set exposure (auto, shutter-priority, aperature-priority, or integer) [-bk ].................: Set backlight compensation (integer) [-rot ]................: Set image rotation (0-359) [-hf ].................: Set horizontal flip (true/false) [-vf ].................: Set vertical flip (true/false) [-pl ].................: Set power line filter (disabled, 50hz, 60hz, auto) [-gain ]...............: Set gain (auto or integer) [-cagc ]...............: Set chroma gain control (auto or integer) |
|
#54
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#55
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Thanks for this. Is this build specifically for running on the RoboRio? We use mjpg-streamer on the Raspberry Pi, but we'd like to use a build that has these image control options.
|
|
#56
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Quote:
|
|
#57
|
|||
|
|||
|
Re: mjpg-streamer running on roboRIO
I'm having connectivity issues when the mjpg-streamer daemon service starts at boot. I placed the files in /home/lvuser/mjpg-streamer-182. I tried to set it up so that the server would startup at boot by adding
Code:
#!/bin/sh cd /home/lvuser/mjpg-streamer-182/ sh start.sh Code:
$ update-rc.d /etc/init.d/start.sh defaults |
|
#58
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Sounds like you're going about it the hard way. Install the mjpg-streamer package from https://github.com/robotpy/roborio-packages and it'll automatically boot at startup.
|
|
#59
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
How would you connect opencv code running on the roboRIO to the jpeg stream. (in c++). I've seen your code in python, but where are you getting that IP from? I've tried numerous ips and can't seem to connect it. I can connect the the page fine and see the stream at http://roboRIO-2053-frc.local:5800/?action=stream, but I don't know what IP to enter in the code. do you have to set a static ip for the camera?
EDIT: I've also tried doing this (after looking on google for a bit): videoCapture.open("http://roborio-2053-frc.local:5800/?action=stream?dummy=param.mjpg"); Nothing. Any suggestions? Last edited by jreneew2 : 15-02-2016 at 11:58. Reason: added info |
|
#60
|
||||
|
||||
|
Re: mjpg-streamer running on roboRIO
Also, I know the code works, because it connected to an axis camera fine. I'm pretty sure it cannot recognize the stream or it is not "looking" for it in the right place.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|