*Old usb-webcam not working*

Good afternoon,

(Medion) Tevion MD9388
(ik like 20 years old but should do the job?)

The camera does not output an image. It is shown up in lsusb and stuff but i do not know wether i can get it to work at all.

I tried using -y -u and change the framrate/resolution in the octopi.txt but it did not work. Then I used lsusb to see wether the camera is connected and it is.

lsusb

Bus 001 Device 004: ID 05a9:a511 OmniVision Technologies, Inc. OV511+ Webcam
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I also used 4l2-ctl --list-formats-ext to see if I used the right settings.

ioctl: VIDIOC_ENUM_FMT

  •    Index       : 0*
    
  •    Type        : Video Capture*
    
  •    Pixel Format: 'O511' (compressed)*
    
  •    Name        : GSPCA OV511*
    
  •            Size: Discrete 320x240*
    
  •            Size: Discrete 640x480*
    

The Pixel Format is kinda weird? Is it even possible?

Logs webcamd.log

Found video devices:
/dev/video0
USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
<13>Oct 30 22:37:46 pi: Starting USB webcam
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
MJPG Streamer Version: git rev: ddb69b7b4f114f3c2ca01adf55712792ca8aed43

  • i: Using V4L2 device.: /dev/video0*
  • i: Desired Resolution: 640 x 480*
  • i: Frames Per Second.: 10*
  • i: Format............: JPEG*
  • i: TV-Norm...........: DEFAULT*
  • i: Could not obtain the requested pixelformat: MJPG , driver gave us: RGB3*
  • ... will try to handle this by checking against supported formats.*
    Init v4L2 failed !! exit fatal
  • i: init_VideoIn failed*

Additional information about your setup (OctoPrint version 1.3.12, OctoPi version 0.16.0, Raspberry Pi 3b+)

Logs syslog (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

Oct 30 22:40:47 octopi pi: Starting USB webcam
Oct 30 22:40:47 octopi MJPG-streamer [1841]: starting application
Oct 30 22:40:47 octopi MJPG-streamer [1841]: MJPG Streamer Version: git rev: ddb69b7b4f114f3c2ca01adf55712792ca8aed43
Oct 30 22:40:47 octopi MJPG-streamer [1841]: Using V4L2 device.: /dev/video0
Oct 30 22:40:47 octopi MJPG-streamer [1841]: Desired Resolution: 640 x 480
Oct 30 22:40:47 octopi MJPG-streamer [1841]: Frames Per Second.: 10
Oct 30 22:40:47 octopi MJPG-streamer [1841]: Format............: JPEG
Oct 30 22:40:47 octopi MJPG-streamer [1841]: TV-Norm...........: DEFAULT
Oct 30 22:40:47 octopi MJPG-streamer [1841]: init_VideoIn failed

dmesg

[ 1.411746] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[ 1.414461] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.417736] hub 1-1:1.0: USB hub found
[ 1.420416] hub 1-1:1.0: 4 ports detected
[ 1.678424] systemd[1]: System time before build time, advancing clock.
[ 1.741446] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.801666] NET: Registered protocol family 10
[ 1.805389] Segment Routing with IPv6
[ 1.819158] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.841261] random: systemd: uninitialized urandom read (16 bytes read)
[ 1.849456] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SEL INUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL + XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 1.858249] systemd[1]: Detected architecture arm.
[ 1.871756] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[ 1.871766] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber =0
[ 1.872367] hub 1-1.1:1.0: USB hub found
[ 1.872457] hub 1-1.1:1.0: 3 ports detected
[ 1.885279] systemd[1]: Set hostname to .

thanks in advance
sebastian

The easy answer is that webcam is not supported.

The longer answer is it might work with a driver, but it will be hard to find one for Raspberry Pi.

The simple truth is video from a 20 year old webcam is going to look shitty and not worth the trouble.

2 Likes

If you just want a simple picture to have an eye on your printer you can buy this webcam

Trust SpotLight 

the picture is nothing special but you can see what you need.
it just costs a few euros/dollars/whatever on ebay or amazon

pi@octopi:~ $ v4l2-ctl -D
Driver Info:
        Driver name      : uvcvideo
        Card type        : Trust Webcam: Trust Webcam
        Bus info         : usb-0000:01:00.0-1.3
        Driver version   : 4.19.71
        Capabilities     : 0x84a00001
                Video Capture
                Metadata Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : uvcvideo
        Model            : Trust Webcam: Trust Webcam
        Serial           : Trust Webcam
        Bus info         : 1.3
        Media version    : 4.19.71
        Hardware revision: 0x00000000 (0)
        Driver version   : 4.19.71
Entity Info:
        ID               : 1
        Name             : Trust Webcam: Trust Webcam
        Type             : V4L2 I/O
        Flags            : default
        Major            : 81
        Minor            : 0
        Pad              : 0: Sink
pi@octopi:~ $ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'YUYV' (YUYV 4:2:2)
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 352x288
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 176x144
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 160x120
                        Interval: Discrete 0.033s (30.000 fps)
                        Interval: Discrete 0.040s (25.000 fps)
                        Interval: Discrete 0.050s (20.000 fps)
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.100s (10.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 1280x1024
                        Interval: Discrete 0.111s (9.000 fps)
                        Interval: Discrete 0.200s (5.000 fps)

trust_cam
(yeah I know it's a mess :smiley: )

Thanks a lot for your answers.

Kind of what I expected so.i might look after the Logitech C270 or Something like this.

Best regards