Motion doesn't detected my webcam : UNABLE TO OPEN VIDEO DEVICE
1
vote
1
answer
2162
views
I would use a USB webcam with Motion software, installed in Ubuntu on my Windows PC (WSL2 ) But when I started Motion as a service and i check on browser at the address [LOCALHOLST:port 8080 or 8081 ] it appears the Motion interface but never has been detected my webcam. Always It is showed a gray screen, for the MyCam1 option, with written at the top on the left "UNABLE TO OPEN VIDEO DEVICE".
I tried many types of configurations in the camera1-dist.conf and motion.conf files, but unfortunately they still doesn't work
Someone who could suggest me what type of configurations and in wich file, do I have to use to detected a USB webcam with Motion software ?
Thank you in advance.
Hi, many thanks your indications has been very useful!
I have followed all the steps and I have attached the webcam to my Ubuntu distribution and now Ubuntu 'lsusb' comand gives the following output
root@LAPTOP-5OFK2AK7:/home/daniele# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 3443:950a SHENZHEN AONI ELECTRONIC CO.,LTD NexiGo N950P 4K Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Unfortunately it still doesn't work..Motion still showes a grey screen and the UNABLE TO OPEN VIDEO DEVICE..
I think now the problem is in the camera1-dist.conf file.
I'd like to set the webcam in localhost:8080 (port) or ( 8081 ) but i don't understand, it still doesn't work what and where I have to write in this camera1-dist.conf file
# This config file was generated by motion 4.2.2
###########################################################
# Configuration options specific to camera 1
############################################################
# User defined name for the camera.
camera_name MyCam1
# Numeric identifier for the camera.
camera_id 101
# The full URL of the network camera stream.
netcam_url http://127.0.0.1:8080
# Image width in pixels.
width 1280
# Image height in pixels.
height 720
# Text to be overlayed in the lower left corner of images
text_left CAMERA 1
# File name(without extension) for movies relative to target directory
movie_filename CAM01_%t-%v-%Y%m%d%H%M%S
Asked by DanielePP
(11 rep)
Apr 15, 2022, 09:37 PM
Last activity: May 13, 2025, 05:06 AM
Last activity: May 13, 2025, 05:06 AM