bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.84k stars 1.49k forks source link

rpiCameraHFlip flips vertically and rpiCameraVFlip flips horizontally #3472

Closed mdPlusPlus closed 1 month ago

mdPlusPlus commented 3 months ago

Which version are you using?

v1.8.3

Which operating system are you using?

Describe the issue

rpiCameraHFlip and rpiCameraVFlip are switched around

Describe how to replicate the issue

Raspberry Pi Zero 2 W
Raspbian Bullseye 64-bit
Raspberry Camera Module v3

paths:
  cam:
    source: rpiCamera
    rpiCameraWidth: 1920
    rpiCameraHeight: 1080
    rpiCameraFPS: 30
    rpiCameraBitrate: 8000000
    rpiCameraHFlip: true

flips vertically (left/right)

paths:
  cam:
    source: rpiCamera
    rpiCameraWidth: 1920
    rpiCameraHeight: 1080
    rpiCameraFPS: 30
    rpiCameraBitrate: 8000000
    rpiCameraVFlip: true

flips horizontally (top/bottom)

Did you attach the server logs?

no

Did you attach a network dump?

no

aler9 commented 1 month ago

Hello, i checked rpiCameraHFlip and rpiCameraVFlip, and their behavior is exactly the same as the --hflip and --vflip flags of libcamera-jpeg and libcamera-vid. Since we want our settings to be as close as possible to the ones of libcamera-apps, these flags won't be changed.

mdPlusPlus commented 1 month ago

But you can confirm that the options flip unintuitively?