Hack to flip camera

From regional-training

Asus laptops install the camera upside down - dunno why but someone had to do it.

Make a dummy camera using the instructions to install a v4l2 module[1].

The hack is to create a dummy video device[2] and to feed an vertically flipped stream to it by ruuning ffmpeg -vf "vflip".

Open a root terminal via system terminal

  • become root
su -

passwd: XXX

  • create dummy video device /dev/video2
modprobe v4l2loopback exclusive_caps=1
  • send a flipped stream to it
ffmpeg -f v4l2 -i /dev/video0 -vf "vflip" -f v4l2 /dev/video2
  • open the VTC and select dummy video for the camera
https://padme.arising.com.au/tom

references

categories