this post was submitted on 24 Feb 2024
5 points (100.0% liked)

homeassistant

12107 readers
64 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

Hi all, I'm pretty new to HA and Frigate. When I installed the cameras (they are all vertical, 9:16), they were correct, I could see all the vertical images. Since about a week they are all shrinked in a 16:9 images/videos, even if they are 9:16

Here is my config

  host: 192.168.31.5

detectors: # <---- add detectors
  coral:
    type: edgetpu
    device: usb

#go2rtc:
#  streams:
#    camera_fronte_ingresso:
#      - rtsp://127.0.0.1:8554/cam/realmonitor?channel=1&subtype=2
#    camera_lato:
#    camera_portico:  
#  log:
#    exec: trace

objects:
  track:
    - person
    - car
    - cat
    - dog
    - truck

cameras:
  camera_fronte_ingresso:
    ffmpeg:   
      inputs:
        - path: rtsp://USER:PW@192.168.31.201:554/cam/realmonitor?channel=1&subtype=2 #rtsp://127.0.0.1:8554/camera_fronte_ingresso  #rtsp://USER:PW@192.168.31.201:554/cam/realmonitor?channel=1&subtype=1
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://USER:PW!@192.168.31.201:554/live # <----- Add stream you want to record from
          roles:
            - record
      hwaccel_args: preset-vaapi
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
    record: # <----- Enable recording
      enabled: True
    snapshots: # <----- Enable snapshots
      enabled: True
  camera_fronte_garage:
    ffmpeg:   
      inputs:
        - path: rtsp://USER:PW@192.168.31.201:554/cam/realmonitor?channel=1&subtype=1
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://USER:PW!@192.168.31.202:554/live # <----- Add stream you want to record from
          roles:
            - record
      hwaccel_args: preset-vaapi
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution
    record: # <----- Enable recording
      enabled: True
    snapshots: # <----- Enable snapshots
      enabled: True

What the heck is going on? Thanks!

top 3 comments
sorted by: hot top controversial new old
[–] peregus@lemmy.world 3 points 9 months ago

I've found the problem: In the configuration I've setup detect to use a 16:9 resolution instead of 9:16: Wrong configuration:

      width: 1280
      height: 720

Correct configuration:

      width: 720
      height: 1280
[–] d2k1@feddit.de 1 points 9 months ago (1 children)

Please format your config so it is readable. What you have posted here is completely unintelligible, especially on mobile. Use code blocks for formatting or link to a pastebin or Github Gist.

[–] peregus@lemmy.world 1 points 9 months ago

Sorry, I've realized that as soon as I posted it, but I got banned straight away.