Comments (6)
It's because the test chosen in the script doesn't find the device
pi@raspberrypi:~/camera/RaspiVWS $ ls -ld /dev/video0
crw-rw----+ 1 root video 81, 3 May 7 23:59 /dev/video0
pi@raspberrypi:~/camera/RaspiVWS $ [[ -f /dev/video0 ]] && echo "It is a file"
pi@raspberrypi:~/camera/RaspiVWS $ [[ -e /dev/video0 ]] && echo "It exists"
It exists
From the bash man page ...
-a file
True if file exists.
-b file
True if file exists and is a block special file.
-c file
True if file exists and is a character special file.
-d file
True if file exists and is a directory.
-e file
True if file exists.
-f file
True if file exists and is a regular file.
-g file
True if file exists and is set-group-id.
-h file
True if file exists and is a symbolic link.
-k file
True if file exists and its ``sticky'' bit is set.
-p file
True if file exists and is a named pipe (FIFO).
-r file
True if file exists and is readable.
-s file
True if file exists and has a size greater than zero.
-t fd True if file descriptor fd is open and refers to a terminal.
-u file
True if file exists and its set-user-id bit is set.
-w file
True if file exists and is writable.
-x file
True if file exists and is executable.
-G file
True if file exists and is owned by the effective group id.
-L file
True if file exists and is a symbolic link.
-N file
True if file exists and has been modified since it was last read.
-O file
True if file exists and is owned by the effective user id.
-S file
True if file exists and is a socket.
This works ...
pi@raspberrypi:~/camera/RaspiVWS $ [[ -c /dev/video0 ]] && echo "characer special file"
characer special file
Referring to code at bottom of script ...
if [ -e "${WEBCAM_DEVICE}" ] ; then
VLC_C920_STREAM "${VIDEO_DEVICE_NB}" "${HTTP_PORT}" "${MOVIES_FOLDER}"
else
from raspivws.
I can confirm this.
I too see the excact same error and changing -f
to -e
makes the check work as intended.
But more problems surface after this fix. v4l2-ctl --all
does not contain the LED controls so the script complains on this.
These things maybe linked to the fact that lsb_release -a
reveals Raspbian GNU/Linux 10 (buster)
is the current os level.
Anyway - thankyou for the work you put into this @LoneWanderer-GH I hope that you find a wee bit of sparetime to test/fix your project on Buster :-)
My setup:
- RPi Model B+ V1.2
- WiPi USB wifi dongle
- and a C920 ;-)
from raspivws.
Thanks @London-Lass changing -f to -e on line 416 helped
from raspivws.
Hi,
Thanks for the analysis @London-Lass . I'll put that into release, as soon as I have some time to check in my environment.
(That's surprising this test behaves differently on my raspi/distrib.)
from raspivws.
I'm having this issue also. When I edit line 416 of the script as suggested, it returns "Error [99]: I require ssmtp but it's not installed. Aborting." (regardless of if SSMTP is installed).
Project owner said a fix would be published in July last year, but seeing as the only commits in 2020 were adding Patreon details (lol) that this repo should be considered abandoned?
from raspivws.
@edmanning555 : I've had other things at hand lately, and as you mentioned somewhat, this project is not something that feeds me whatsoever (not a penny, and that was not the point anyway).
Long story short : if you have the time that I don't have right now for this, feel free to open a branch for this issue, and submit a merge request.
Any contributions are welcomed, this is an open project.
(Concerning the ssmtp, it was a planned feature for sending an email whenever a streaming started.)
I'll provide some hints : the fix revolves around the following lines
RaspiVWS/Raspi_VLC_Webcam_Stream.sh
Line 349 in 8a5eaaa
RaspiVWS/Raspi_VLC_Webcam_Stream.sh
Line 352 in 8a5eaaa
RaspiVWS/Raspi_VLC_Webcam_Stream.sh
Line 356 in 8a5eaaa
RaspiVWS/Raspi_VLC_Webcam_Stream.sh
Line 357 in 8a5eaaa
from raspivws.
Related Issues (6)
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 raspivws.