|
Edited by toxuin at 2015-10-31 22:30
Red error message "nothing to stop" means streaming server (mjpg-streamer) was not started properly.
Do you see camera on /dev/video0? You can try to start your camera manually and debug the parameters you need to start the streamer.
Do the
- sudo su octoprint
- cd ~/mjpg-streamer
- nano run.sh
Copy code This script consists of just two or three lines. First is saying that all plugins are stored in current folder, second is actually the line you want to change.
Copy both lines somewhere like notepad and run the first line once
then, run the second line, but delete the -b key (that makes streamer run in the background).
You should see something like this:
- MJPG Streamer Version: svn rev:
- i: Using V4L2 device.: /dev/video0
- i: Desired Resolution: 640 x 480
- i: Frames Per Second.: 1
- i: Format............: YUV
- i: JPEG Quality......: 80
- o: output folder.....: ./tests
- o: input plugin.....: 0: ./input_uvc.so
- o: delay after save..: 5000
- o: ringbuffer size...: no ringbuffer
- o: command...........: disabled
Copy code (this isn't my actual output, just a referrence what you should expect. Do not look on values – they're not relevant for this case).
If you have any error there it will be pretty descriptive. Maybe you'll get an error about stream format – try adding -y key (this is actually very bad. Means camera does not support MJPG mode and poor little Pi needs to do conversion for every frame. Better replace camera if possible).
Once you'll find a right configuration line to start the streaming server you can add the -b key back to it and replace the second line in the ~/mjpg-streamer/run.sh.
Oh, by the way you can kill the streaming server with Ctrl-C. And you don't have to retype the long command again, just press up arrow on the keyboard and do the changes. |
|