jschmid1 / gopro_as_webcam_on_linux

Allows to use your GoPro camera as a webcam on linux
Apache License 2.0
517 stars 64 forks source link

Rotate video 180degrees #51

Open trojanGoat opened 1 year ago

trojanGoat commented 1 year ago

Hello All,

My camera is mounted upside down. Is there a way to rotate the video?

fatihkaan22 commented 1 year ago

Hey,

You can add ffmpeg vflip filter to vertically flip the video. Here's how I modified the ffmpeg command:

ffmpeg -nostdin -threads 1 -i 'udp://@0.0.0.0:8554?overrun_nonfatal=1&fifo_size=50000000' -f:v mpegts -fflags nobuffer -vf format=yuv420p,hflip,vflip -f v4l2 /dev/video42