Some smaller issues with OctoPrint server on Ubuntu 17.10


#1

What is the problem?
Hey everyone, I Have some smaller Problems, setting up mjpg-streamer on my "headless Laptop"
But first I must thank all of you i got nearly evrey stone out of my way by this great wiki/community thumbsup

Problem: I cant reach my USB webcam via OctoPrint or directly via "http://laptop-ip:8080/?action=stream"
This is the Way i start it:

./mjpg_streamer -i "./input_uvc.so -f 5 -d /dev/video1" -o "./output_http.so"

/dev/video1" -o "./output_http.so"
MJPG Streamer Version: git rev: 8cc9d22c1e79905d529a248ccf05bbf0625e0bf3
i: Using V4L2 device.: /dev/video1
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: Could not obtain the requested pixelformat: MJPG , driver gave us: YUYV
... will try to handle this by checking against supported formats.
... Falling back to YUV mode (consider using -yuv option). Note that this requires much more CPU power
i: FPS coerced ......: from 5 to 30
i: Frame period time ......: 200 ms
UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: disabled
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled

but i cant reach it anyway..

What did you already try to solve it?
I first tried the "input_testpicture" mode witch i didn`t get to work.
I tried another device (dev/video0) the internal webcam
I did not "modify" octopi.txt because it is not OctoPI and i did not find any information on a Debian setup instead of Rasbian. (Wich i used before) maybe if you could point me somewhere in that direction...

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)
Octoprint v 1.3.6 on Ubuntu 17.10 Kernel 4.13.0-21-generic without X server on a Asus eee 1005 Atom processor 32bit..


sorry im not native english.


#2

What happens when you try? It actually looks like it is listening on the port (you could also verify that with netstat -tulpen), so instead of the webcam stream, what are you seeing?

Some browsers also don't like directly accessing the mjpg stream, so also try only "http://laptop-ip:8080/" (but be sure to enable the web interface for that: -w ./www)