Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/video0: No such file or directory && /dev/video1: Invalid argument #80

Closed
alexsalex opened this issue May 28, 2020 · 4 comments
Closed

Comments

@alexsalex
Copy link

2020-05-28_06:57:38.03941 [video4linux2,v4l2 @ 0x2363180] Cannot open video device /dev/video0: No such file or directory
2020-05-28_06:57:38.04072 /dev/video0: No such file or directory
2020-05-28_06:57:38.97661 ffmpeg version 3.2.14-1deb9u1+rpt1 Copyright (c) 2000-2019 the FFmpeg developers
2020-05-28_06:57:38.97809 built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
2020-05-28_06:57:38.97933 configuration: --prefix=/usr --extra-version='1
deb9u1+rpt1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
2020-05-28_06:57:38.98360 libavutil 55. 34.101 / 55. 34.101
2020-05-28_06:57:38.98481 libavcodec 57. 64.101 / 57. 64.101
2020-05-28_06:57:38.98598 libavformat 57. 56.101 / 57. 56.101
2020-05-28_06:57:38.98715 libavdevice 57. 1.100 / 57. 1.100
2020-05-28_06:57:38.98833 libavfilter 6. 65.100 / 6. 65.100
2020-05-28_06:57:38.98922 libavresample 3. 1. 0 / 3. 1. 0
2020-05-28_06:57:38.99006 libswscale 4. 2.100 / 4. 2.100
2020-05-28_06:57:38.99089 libswresample 2. 3.100 / 2. 3.100
2020-05-28_06:57:38.99185 libpostproc 54. 1.100 / 54. 1.100
2020-05-28_06:57:39.03760 [video4linux2,v4l2 @ 0x20352f0] ioctl(VIDIOC_G_FMT): Invalid argument
2020-05-28_06:57:39.03898 /dev/video1: Invalid argument
2020-05-28_06:57:51.15079 DEBUG 2020/05/28 07:57:51 resource.go:43: 10.0.1.100:55561 POST /resource
2020-05-28_06:57:52.59630 ffmpeg version 3.2.14-1deb9u1+rpt1 Copyright (c) 2000-2019 the FFmpeg developers
2020-05-28_06:57:52.59773 built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
2020-05-28_06:57:52.59867 configuration: --prefix=/usr --extra-version='1
deb9u1+rpt1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
2020-05-28_06:57:52.60280 libavutil 55. 34.101 / 55. 34.101

my camera located on /dev/video10

@alexsalex
Copy link
Author

Fixed, wrong connection

@0xPr0xy
Copy link

0xPr0xy commented Dec 28, 2020

how did you solve this?

@PvdGulik
Copy link

Yes, I also want to know. This exactly the problem I'm facing for days!
Please @alexsalex, how did you solve this?

@0xPr0xy
Copy link

0xPr0xy commented Jun 25, 2021

@PvdGulik For me it was indeed a wrong connection. Even if 'vcgencmd get_camera' shows connected camera, this is not actually checking the camera works, just that it detects the connected hardware. You should verify that making picture from command line using 'raspistill -v -o picture.jpg' works if both commands succeed hkcam should also work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants