Comments (16)
/dev/video1
is created by the v4l2loopback kernel extension and is needed to allow multiple access to the camera stream.
If /dev/video1
is not available, please verify that the camera is correctly connected to the RPi as shown in the wiki.
from hkcam.
I have the exact same issue with both my v2 v1 pi camera
I’m sure that the camera is connected to the RPi
It is able to see video and take picture with the “raspistill -o image.png” command
from hkcam.
@xd94402002 Did you install the pre-configured Raspbian image or just installed the hkcam binary?
from hkcam.
I installed on my pi3 through playbook
I found that it doesn’t install the v4l2loopback module
After manually install v4l2loopback the cam start streaming
from hkcam.
Additionally,the FPS just 5. Is that the performance limit on rpi ? The average cpu usage is under 5%. It seem like it doesn’t make full use of the resources.
from hkcam.
I've got the same /dev/video1 error, the camera cable wasn't plugged correctly.
from hkcam.
I facing the same issue. camera is plugged in correctly. I'm using the provided Image 0.0.8.
I guess it happened after I expanded the disk
from hkcam.
@benbeton - I also expanded my disk as I'm running on a 64GB card. I haven't had a chance to rebuild from scratch yet.
from hkcam.
hello @brutella I have the same problem with these specs:
- raspi 3
- suggeted image on 8gig sd
- raspi cam 1.3 well connected
I could connect it to wifi and ssh, I also could add the camera in “Home” but no image is shown. Then I connected another USB camera and that one did create the video1 and could stream from there, but the raspi cam seems to fail to work.
from hkcam.
So, a quick update. I've got this error a couple of times on a working camera after the reboot.
The solution I found was to kill the hkcam processes:
pi@raspicam:~ ps aux | grep hkcam
root 558 0.0 0.0 1684 364 ? Ss 14:15 0:00 runsv hkcam
root 564 0.0 0.0 1828 324 ? S 14:15 0:00 svlogd -tt /var/log/hkcam
root 565 0.7 1.3 801948 10256 ? Sl 14:15 0:00 hkcam --min_video_bitrate=2048 --data_dir=/var/lib/hkcam/data --verbose=true
pi 736 0.0 0.0 3492 396 pts/1 S+ 14:17 0:00 tail -f /var/log/hkcam/current
pi 742 0.0 0.0 4368 536 pts/0 S+ 14:17 0:00 grep --color=auto hkcam
pi@raspicam:~ sudo kill -9 558 564 565
hkcam will restart by itself and the error disappeared
from hkcam.
after killing the processes, did u rerun again the process?
from hkcam.
No, it restarts by itself. But now I have to do it after each reboot. It looks like a wrong order of operations.
from hkcam.
I'm seeing the same thing, and raspistill
gets the image just fine. I -also- did a disk expansion followed by an apt-get update/dist-upgrade. The loopback module is not being loaded properly in the kernel. The problem is that the version supplied with raspbian stretch is incompatible with the current raspbian-stretch kernel (the kernel developers removed a backwards compatible kernel API (setup_timer) during a linux point release).
@brutella solved this by picking up a new version from GitHub, instead of using v4l2loopback-dkms.
I think the correct solution, really, is to upgrade this whole mess to buster, since stretch is ancient anyway (and it will ensure we continue to get security updates).
However, the temporary way to solve this is to use the ansible playbook, or issue the commands from the playbook to download the version from GitHub and compile/install that version of v4l2loopback. You'll need to do this any time you update the kernel (which is an annoying problem).
from hkcam.
After manually install v4l2loopback the cam start streaming
Did this as well (on top of apt-get upgrade/update, and expanding my SD card) and that brought the camera back to life. Pretty much what @pleasantone said here.
from hkcam.
Yeah, getting the v4l2loopback kernel extension working is no fun.
from hkcam.
@pleasantone Is there any chance you could detail your fix a little more?
I flashed my Pi Zero W with the latest pre-built from this repo. Added Wifi and SSH to remote manage it. After first boot, I expanded the filesystem and ran apt-get update/upgrade.
I wound up with OP's problem but I'm having trouble following your repair steps. I've never used ansible and after installing it on the Pi and copying over the ansible folder-- it fails to run.
The error I get is:
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/home/pi/hkcam-master/ansible/roles/hkcam/tasks/configure.yml': line 41, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Reboot
^ here
The error appears to have been in '/home/pi/hkcam-master/ansible/roles/hkcam/tasks/configure.yml': line 41, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Reboot
^ here
from hkcam.
Related Issues (20)
- New Version for the RPi Zero 2 ? HOT 5
- How do I access the video stream remote, when I'm not on my local network? HOT 3
- Not working in Bullseye HOT 5
- Does the enclosure fit with the Raspberry Pi Zero WH? HOT 1
- No way to contact Repo Owner? HOT 1
- Setup command doesn't work HOT 7
- /dev/video99 not showing up HOT 1
- Running go task for hkcam fails with "esc": executable file not found in $PATH HOT 5
- /dev/video99: No such file or directory HOT 3
- Logitech C920 - Green video HOT 3
- Still image on Raspberry Pi HOT 1
- "404 Page not found" error on visiting Web Interface HOT 5
- No picture
- Support for two-way audio HOT 2
- Error: Invalid argument HOT 2
- Multiple Cameras
- Not an issue, but Question - PTZ Controls? HOT 1
- Error - Invalid Argument HOT 3
- SetupEndpoints issue in a special situation HOT 1
- connecting when not on the local wifi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hkcam.