What is the problem?
I'm trying to get my Raspberry Pi V2 camera working but on the control tab on octoprint, I get the 'Webcam Steam Not Loaded' message and I'm struggling to resolve the issue.
What did you already try to solve it?
I first tried different stream urls but nothing worked. I have triple checked my cable and even tried two different cables now, they are correctly orientated and everything is connected properly.
I've run
sudo apt-get update
sudo apt-get upgrade
and
sudo raspi-config
to make sure the camera is enabled. I've then tried
raspistill -v -o test.jpg
but it gives me the following:
"raspistill" Camera App (commit 7cbfbd38d982 Tainted)
Camera Name imx219
Width 3280, Height 2464, filename test.jpg
Using camera 0, sensor mode 0GPS output Disabled
Quality 85, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Time delay 5000, Timelapse 0
Link to latest frame enabled no
Full resolution preview No
Capture method : Single capturePreview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Flicker Avoid Mode 'off'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
Looking up the ENOSPC I have tried increasing the gpu_mem from 128 to 144 and replaced the /boot/cmdline.txt:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait bcm2708.w1_gpio_pin=18
Lastly, I've run octoprint in safemode and still no luck. Worth noting, this is all very new to me. I wouldn't be suprised if I've missed something simple but have been carefull to follow instructions and have double checked everything I can think of now.
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log
, serial.log
or output on terminal tab, ...)
Prusa i3 MK3
Latest firmware
OctoPrint version : 1.3.10
OctoPi version : 0.15.1
Running over Wifi, everything else works fine (printing, etc)
lsusb:
Bus 001 Device 004: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
vcgencmd get camera:
supported=1 detected=1
/var/log/webcamd.log:
<13>Feb 2 11:22:57 pi: Starting Raspberry Pi camera
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_raspicam.so -fps 10
MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
i: fps.............: 10
i: resolution........: 640 x 480
i: camera parameters..............:Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
o: www-folder-path......: ./www-octopi/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: disabled
i: Starting Camera
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
camera couldn't be enabled
Please let me know if there's any more info that might help! Thanks