WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Built-in webcam was not initialized  (Read 9853 times)

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Built-in webcam was not initialized
« on: December 28, 2020, 03:01:51 AM »
Hi, I can't make my webcam work which is Silicon Motion WebCam SC-0311139N for SAMSUNG N150 Plus. I have downloaded and put onboot the v412-utils.tcz and manually loading usbutils.tcz. By the way this netbook has no dedicated FN keys to manually enable/disable the webcam.

Code: [Select]
tc@box:~$ dmesg | grep uvc
uvcvideo: Found UVC 1.00 device WebCam SC-0311139N (2232:1020)
uvcvideo 1-8:1.0: Entity type for entity Processing 3 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Extension 2 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Camera 1 was not initialized!
usbcore: registered new interface driver uvcvideo
tc@box:~$ tce-load -i usbutils.tcz
libusb.tcz: OK
usbutils.tcz: OK
tc@box:~$ dmesg | grep uvc
uvcvideo: Found UVC 1.00 device WebCam SC-0311139N (2232:1020)
uvcvideo 1-8:1.0: Entity type for entity Processing 3 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Extension 2 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Camera 1 was not initialized!
usbcore: registered new interface driver uvcvideo
tc@box:~$ cd /sys/bus/pci/drivers/ehci_hcd
sh: cd: can't cd to /sys/bus/pci/drivers/ehci_hcd: No such file or directory
tc@box:~$ lsusb
Bus 001 Device 002: ID 2232:1020 Silicon Motion
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 413c:301a Dell Computer Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
tc@box:~$

P.S. I have also found this kernel driver for the said hardware

http://80.87.195.87/index.php?id=usb:2232-1006

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Built-in webcam was not initialized
« Reply #1 on: December 28, 2020, 03:12:33 AM »
What does this give:
Code: [Select]
$ v4l2-ctl --list-devices

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11654
Re: Built-in webcam was not initialized
« Reply #2 on: December 28, 2020, 10:01:34 AM »
Hi cute curtis
... P.S. I have also found this kernel driver for the said hardware

http://80.87.195.87/index.php?id=usb:2232-1006
Right driver, wrong device. You have the 1020:
http://80.87.195.87/index.php?id=usb:2232-1020

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #3 on: December 28, 2020, 10:34:19 AM »
@juanito
Code: [Select]
tc@box:~$ v4l2-ctl --list-devices
WebCam SC-0311139N (usb-0000:00:1d.7-8):
        /dev/video0
        /dev/video1

@Rich
ok, thanks for the reference, how should I compile this kernel driver?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Built-in webcam was not initialized
« Reply #4 on: December 28, 2020, 10:36:21 AM »
It doesn't look like you need an additional kernel driver - your webcam should be ready to go at /dev/video0 and/or /dev/video1.

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #5 on: December 29, 2020, 05:26:58 PM »
how?

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #6 on: December 30, 2020, 12:37:45 AM »
Code: [Select]
tc@box:~$ v4l2-ctl -D --info
Driver Info:
        Driver name      : uvcvideo
        Card type        : WebCam SC-0311139N
        Bus info         : usb-0000:00:1d.7-8
        Driver version   : 5.4.3
        Capabilities     : 0x84a00001
                Video Capture
                Metadata Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
tc@box:~$ modprobe uvcvideo
tc@box:~$ ls -l /dev/ | grep video
crw-rw----    1 root     staff      81,   0 Dec 30 13:30 video0
crw-rw----    1 root     staff      81,   1 Dec 30 13:30 video1
tc@box:~$ dmesg | grep uvc
uvcvideo: Found UVC 1.00 device WebCam SC-0311139N (2232:1020)
uvcvideo 1-8:1.0: Entity type for entity Processing 3 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Extension 2 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Camera 1 was not initialized!
usbcore: registered new interface driver uvcvideo
tc@box:~$ tce-load -i usbutils.tcz
libusb.tcz: OK
usbutils.tcz: OK
tc@box:~$ modprobe uvcvideo
tc@box:~$ ls -l /dev/ | grep uvc
tc@box:~$ dmesg | grep uvc
uvcvideo: Found UVC 1.00 device WebCam SC-0311139N (2232:1020)
uvcvideo 1-8:1.0: Entity type for entity Processing 3 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Extension 2 was not initialized!
uvcvideo 1-8:1.0: Entity type for entity Camera 1 was not initialized!
usbcore: registered new interface driver uvcvideo

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Built-in webcam was not initialized
« Reply #7 on: December 30, 2020, 04:14:18 AM »
You should be able to use ffmpeg, guvcview or cheese to access your webcam.

With ffmpeg, something like:
Code: [Select]
$ ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #8 on: December 30, 2020, 06:06:48 AM »
@juanito
Code: [Select]
tc@box:~$ ffmpeg
sh: ffmpeg: not found
tc@box:~$ ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0
sh: ffmpeg: not found
tc@box:~$ tce-load -i usbutils.tcz
libusb.tcz: OK
usbutils.tcz: OK
tc@box:~$ modprobe uvcvideo
tc@box:~$ ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr/local --disable-static --enable-gpl --enable-vers     ion3 --enable-shared --disable-debug --disable-doc --enable-bzlib --enable-fontc     onfig --enable-libass --enable-libfreetype --enable-libpulse --enable-libspeex -     -enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-     libv4l2 --enable-libvpx --enable-vdpau --enable-libx264 --enable-libwebp --enabl     e-libpulse --enable-libspeex --enable-libbluray --enable-libcdio --enable-libxvi     d --enable-libopus --enable-libx265 --enable-openal --enable-lto --enable-librsv     g --enable-gnutls --enable-avresample
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 466.185941, bitrate: 147456 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 k     b/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
At least one output file must be specified

I'm trying to get skype before I have already chosen all options
Code: [Select]
Please check the serviceability of Internet connection
Otherwise need to tell the maintainer about this issue

Would be offered the last known Skype version 4.0.0.8
Press any key to continue...

Choose Skype version for installation

    1) Current Skype 4.0.0.8
    2) Current Skype 4.0.0.8 (Static)
    3) Old stable Skype 2.2.0.35
    4) Old stable Skype 2.2.0.35 (Static)
    5) Eldest stable Skype 2.0.0.72 (OSS)

    Q) Quit installation

Please make selection (1 - 5 or Quit)

Is selected Skype 2.0 OSS (2.0.0.72-oss)
Press any key to continue...

Downloading skype_static-2.0.0.72-oss.tar.bz2
ERROR: Downloading skype_static-2.0.0.72-oss.tar.bz2 failed
Press any key to exit...
« Last Edit: December 30, 2020, 06:10:35 AM by cute curtis »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Built-in webcam was not initialized
« Reply #9 on: December 30, 2020, 06:32:37 AM »
You could try:
Code: [Select]
$ ffmpeg -f video4linux2 -input_format h264 -i /dev/video0 out.h264
$ ffplay out.h264

Edit: with gtk3 loaded, this shows the webcam directly:
Code: [Select]
$ ffplay -f video4linux2 -video_size 640x480 -i /dev/video0
« Last Edit: December 30, 2020, 06:41:13 AM by Juanito »

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #10 on: December 30, 2020, 11:03:57 AM »
just a blackout window when gtk3 loaded

Code: [Select]
tc@box:~$ tce-load i usbutils.tcz
Version 11.0
Usage: tce-load [ -i -w -wi -wo -wil -ic -wic -wicl]{s} extensions
  -i   Loads local extension
  -w   Download extension only
  -wi  Download and install extension
  -wo  Download and create an ondemand item
  Adding -c to any -i option will force a one time copy to file system
  Adding -l to any -i option indicates load only - do not update onboot or ondemand
  Adding -s to any option will suppress OK message used by apps GUI

Example usage:
 Load local extension:
   tce-load -i /mnt/hda1/tce/optional/nano.tcz
 Download into tce/optional directory, updates OnBoot and installs:
   tce-load -w -i nano.tcz
 Download only into tce/optional directory:
   tce-load -w nano.tcz
tc@box:~$ tce-load -i usbutils.tcz
libusb.tcz: OK
usbutils.tcz: OK
tc@box:~$ modprobe uvcvideo
tc@box:~$ ffmpeg -f video4linux2 -input_format h264 -i /dev/video0 out.h264
sh: ffmpeg: not found
tc@box:~$ ffplay out.h264
sh: ffplay: not found
tc@box:~$ ffmpeg -f video4linux2 -input_format h264 -i /dev/video0 out.h264
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr/local --disable-static --enable-gpl --enable-version3 --enable-shared --disable-debug --disable-doc --enable-bzlib --enable-fontconfig --enable-libass --enable-libfreetype --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-vdpau --enable-libx264 --enable-libwebp --enable-libpulse --enable-libspeex --enable-libbluray --enable-libcdio --enable-libxvid --enable-libopus --enable-libx265 --enable-openal --enable-lto --enable-librsvg --enable-gnutls --enable-avresample
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[video4linux2,v4l2 @ 0x8ec91c0] Cannot find a proper format for codec 'h264' (id 27), pixel format 'none' (id -1)
Assertion *codec_id != AV_CODEC_ID_NONE failed at libavdevice/v4l2.c:815
Aborted
tc@box:~$ ffplay out.h264
ffplay version 4.2.2 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr/local --disable-static --enable-gpl --enable-version3 --enable-shared --disable-debug --disable-doc --enable-bzlib --enable-fontconfig --enable-libass --enable-libfreetype --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-vdpau --enable-libx264 --enable-libwebp --enable-libpulse --enable-libspeex --enable-libbluray --enable-libcdio --enable-libxvid --enable-libopus --enable-libx265 --enable-openal --enable-lto --enable-librsvg --enable-gnutls --enable-avresample
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
out.h264: No such file or directory
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
tc@box:~$ tce-load -i gtk3.tcz
gtk3 is already installed!
tc@box:~$ ffplay -f video4linux2 -video_size 640x480 -i /dev/video0
ffplay version 4.2.2 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr/local --disable-static --enable-gpl --enable-version3 --enable-shared --disable-debug --disable-doc --enable-bzlib --enable-fontconfig --enable-libass --enable-libfreetype --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-vdpau --enable-libx264 --enable-libwebp --enable-libpulse --enable-libspeex --enable-libbluray --enable-libcdio --enable-libxvid --enable-libopus --enable-libx265 --enable-openal --enable-lto --enable-librsvg --enable-gnutls --enable-avresample
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, video4linux2,v4l2, from '/dev/video0':B sq=    0B f=0/0   
  Duration: N/A, start: 314.713656, bitrate: 147456 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
 378.33 M-V:  0.000 fd=   1 aq=    0KB vq=    0KB sq=    0B f=0/0   
tc@box:~$ ffplay -f video4linux2 -video_size 640x480 -i /dev/video1
ffplay version 4.2.2 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr/local --disable-static --enable-gpl --enable-version3 --enable-shared --disable-debug --disable-doc --enable-bzlib --enable-fontconfig --enable-libass --enable-libfreetype --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-vdpau --enable-libx264 --enable-libwebp --enable-libpulse --enable-libspeex --enable-libbluray --enable-libcdio --enable-libxvid --enable-libopus --enable-libx265 --enable-openal --enable-lto --enable-librsvg --enable-gnutls --enable-avresample
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[video4linux2,v4l2 @ 0xb0e00640] ioctl(VIDIOC_G_INPUT): Inappropriate ioctl for device
/dev/video1: Inappropriate ioctl for device
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   


Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #11 on: December 30, 2020, 11:14:36 AM »
just a blackout window when gtk3 loaded

my bad, i just need a very good lighting but I Omegle.com can't detect my webcam

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Built-in webcam was not initialized
« Reply #12 on: January 01, 2021, 02:19:24 AM »
I think I need to install flash player for browser webcam to work but I'm getting error getting version for both getFlash10 and getFlash kindly fix the extension. Thanks.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: Built-in webcam was not initialized
« Reply #13 on: January 01, 2021, 05:28:13 AM »
It would help people to help you if you could paste the error message here.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11654
Re: Built-in webcam was not initialized
« Reply #14 on: January 01, 2021, 08:48:33 AM »
Hi cute curtis
You can forget about flash:
Quote
Since Adobe will no longer be supporting Flash Player after December 31, 2020 and Adobe will block Flash content from running in Flash Player beginning January 12, 2021, Adobe strongly recommends all users immediately uninstall Flash Player to help protect their systems.

Since we are not allowed to distribute flash player, it needs to be downloaded from Adobe.

Will you be able to download it after 2020:
Quote
No.  Adobe will remove Flash Player download pages from its site after the EOL Date. Adobe will block Flash content from running in Flash Player beginning January 12, 2021.

Found here:
https://www.adobe.com/products/flashplayer/end-of-life.html

So the extensions can not be fixed.