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

homeassistant

11701 readers
41 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:[email protected]:554/cam/realmonitor?channel=1&subtype=2 #rtsp://127.0.0.1:8554/camera_fronte_ingresso  #rtsp://USER:[email protected]:554/cam/realmonitor?channel=1&subtype=1
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://USER:[email protected]: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:[email protected]:554/cam/realmonitor?channel=1&subtype=1
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://USER:[email protected]: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
[–] [email protected] 3 points 5 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
[–] [email protected] 1 points 6 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.

[–] [email protected] 1 points 5 months ago

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