You are not logged in.

#1 2024-07-09 18:35:00

sebastian-65
Member
Registered: 2021-11-08
Posts: 40

Flip external camera upside down

I have external logitech BRIO which I need to mount upside down. Is there any way to flip this camera to be used with Vivaldi browser in online conferences unfliped?

Any ideas are welcome.


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch Linux | ZFS | systemd | Xfce/X11/SDDM | ASUS S435 | Intel CPU 11th gen | Intel TigerLake-LP GT2 | 16GB RAM

Offline

#2 2024-07-09 19:20:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: Flip external camera upside down

Something along the lines of

sudo v4l2-ctl -d /dev/video0 --set-ctrl=rotate=180

should™ work. Adjust video0 should it be something else

Offline

#3 2024-07-10 09:19:11

sebastian-65
Member
Registered: 2021-11-08
Posts: 40

Re: Flip external camera upside down

Thanks for reply! In my case device is /dev/video2. I'm getting error though:


sebastian@nuvo:~$ sudo v4l2-ctl -d /dev/video2 --set-ctrl=rotate=180
unknown control 'rotate'

I can't even find rotate control:

sebastian@nuvo:~$ v4l2-ctl --list-ctrls

User Controls

                     brightness 0x00980900 (int)    : min=0 max=100 step=1 default=50 value=50
                       contrast 0x00980901 (int)    : min=0 max=100 step=1 default=50 value=50
                     saturation 0x00980902 (int)    : min=0 max=100 step=1 default=50 value=50
                            hue 0x00980903 (int)    : min=0 max=100 step=1 default=50 value=50
        white_balance_automatic 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=100 step=1 default=50 value=50
           power_line_frequency 0x00980918 (menu)   : min=0 max=3 default=2 value=2 (60 Hz)
      white_balance_temperature 0x0098091a (int)    : min=2500 max=6500 step=10 default=4500 value=4500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=100 step=1 default=50 value=50

Camera Controls

                  auto_exposure 0x009a0901 (menu)   : min=0 max=3 default=3 value=3 (Aperture Priority Mode)
         exposure_time_absolute 0x009a0902 (int)    : min=50 max=10000 step=1 default=166 value=166 flags=inactive
     exposure_dynamic_framerate 0x009a0903 (bool)   : default=0 value=1

I have installed v4l2-ctl in version 1.26.1.


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch Linux | ZFS | systemd | Xfce/X11/SDDM | ASUS S435 | Intel CPU 11th gen | Intel TigerLake-LP GT2 | 16GB RAM

Offline

#4 2024-07-10 15:18:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: Flip external camera upside down

If the cam doesn't have such a control, you might be able to create a secondary v4l2 device with v4l2-loopback that you stream the flipped image through ffmpeg or so: https://stackoverflow.com/a/63943783 https://wiki.archlinux.org/title/V4l2loopback

Offline

#5 2024-07-12 16:54:17

sebastian-65
Member
Registered: 2021-11-08
Posts: 40

Re: Flip external camera upside down

Thank you V1del, since it gets complicated, I'm rather going to disassembly the camera and create a special mount that would allow to attach it to the bottom of the monitor, while being rotated upwards.

I do appreciate your effort, though. Thanks, you're a legend!


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch Linux | ZFS | systemd | Xfce/X11/SDDM | ASUS S435 | Intel CPU 11th gen | Intel TigerLake-LP GT2 | 16GB RAM

Offline

Board footer

Powered by FluxBB