I need to rotate (90 degrees) the video feed of my laptop webcam to use it with skype/hangout.
It seems to be possible using the gstreamer infrastructure, but I don't know how.
I need to rotate (90 degrees) the video feed of my laptop webcam to use it with skype/hangout.
It seems to be possible using the gstreamer infrastructure, but I don't know how.
Take a look at this: https://unix.stackexchange.com/questions/408187/rotate-webcam-as-well-as-screen-portrait-mode
The answer by Lucio Anibal Criollo Rivera worked for me well.
I am bringing it here for the sake of clarity:
Install utilities:
$ sudo apt-get update $ sudo apt-get install v4l-utils $ sudo apt-get install v4l2loopback-utils
Download v4l2loopback
Uncompress 'v4l2loopback-master' folder
Compile v4l2loopback module:
$ make
Install:
$ sudo make install
Enable device:
$ sudo modprobe v4l2loopback exclusive_caps=1
Check if device is enabled:
$ v4l2-ctl --list-devices Dummy video device (0x0000) (platform:v4l2loopback-000): /dev/video1 USB2.0 UVC 2M WebCam: USB2.0 UV (usb-0000:00:1a.0-1.2): /dev/video0
Copy the webcam video stream to it via ffmpeg:
$ ffmpeg -f v4l2 -i /dev/video0 -vf "transpose=1,format=yuv420p" -f v4l2 /dev/video1
You can see for more details about paramters: