selim: computers


V4L webcam upside down hack (Linux)

Saturday, 25-Jun-2016 07:17:41 CEST

I own a laptop where the webcam's image (using Linux UVC webcam driver) is upside down. After a lot of googling I found a way to fix this. You have to preload the library that reacts to an obscure environment variable:

$ env LIBV4LCONTROL_FLAGS=2 LD_PRELOAD=/path/to/ <your program here>