Hey. On the raster screen (debian os), the wrong color rendition of the image from your camera (endoscope). On a computer under ubuntoy on the same player mplayer everything is fine. I tried to twist the contrast, brightness - to no avail. Also connected through a cord with additional power. What is the problem? If with drivers, then how to drag them from ubunt to debian? Thank you in advance)

enter image description here

raspberry pi 2 b

lsusb Bus 001 Device 005: ID 1908:2311 GEMBIRD dmesg usb 1-1.5: new high-speed USB device number 5 using dwc_otg usb 1-1.5: New USB device found, idVendor=1908, idProduct=2311 usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-1.5: Product: USB2.0 PC Camera usb 1-1.5: Manufacturer: Generic uvcvideo: Found UVC 1.00 device USB2.0 PC Camera (1908:2311) input: USB2.0 PC Camera as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/input/input2 usbcore: registered new interface driver uvcvideo USB Video Class driver (1.1.1) 
  • Models, versions, write at least .. - Kromster
  • @kromster pointed). updates are fresh. - zohei
  • Also indicate the model of the endoscope and its version / firmware, what drivers did you install for it? And while it is visible only that it is "USB2.0 PC Camera". As a whole, it looks like an incorrectly chosen video format - do you have the opportunity to update the driver or to select the format of the displayed / displayed picture using some kind of software? - Kromster
  • @kromster, android camera AN97. No other information. - zohei
  • Mplayer tv: // -tv driver = v4l2: device = / dev / video0 - zohei

1 answer 1

It turned out that mplayer was just resetting the chroma settings.

Decision:

  1. We put v4l2-ctl
  2. Create a v4l2.conf file in / etc / mplayer / with the following contents:
 run "v4l2-ctl --set-ctrl brightness=60" run "v4l2-ctl --set-ctrl contrast=70" run "v4l2-ctl --set-ctrl saturation=30" run "v4l2-ctl --set-ctrl hue=0" run "v4l2-ctl --set-ctrl gamma=100" 

We start the video player with the command:

mplayer tv: // -input file = "/ etc / mplayer / v4l2.conf" –tv driver = v4l2: device = / dev / video0

For different cameras, the settings will most likely be different.

ADD color settings for ffmpeg.

Configurable via v4l2.

List of parameters: v4l2-ctl -d / dev / video0 –L

Setting parameters: v4l2-ctl -d / dev / video0 - set-ctrl brightness = 60