Distorted Camera Feed in iOS Notification

Is anyone else seeing a distorted camera feed in iOS notifications? It’s like the feed is getting squeezed to a 1:1 format instead of it’s native resolution. Is that a bug, a feature, or a problem with my setup? Currently streaming at 640x360 (I tried 320x240 but my camera will only pull in a 640x360 feed at the minimum it seems).

Undistored View:

View in iOS Notification:

My camera setup:

camera:
  - platform: mjpeg
    mjpeg_url: http://<#ipaddress>:<#port>/wps-cgi/mjpg/video.cgi?camera=1&resolution=640x360&username=#####&password=#####
    name: Porch

My config:

- alias: Front Door Sensor Tripped
  trigger:
    - platform: state
      entity_id: sensor.zone_001
      to: 'Violated'
  condition:
    condition: or
    conditions:
      - condition: state
        entity_id: alarm_control_panel.alarm_com
        state: 'armed_away'
      - condition: state
        entity_id: alarm_control_panel.alarm_com
        state: 'armed_home'
  action:
    service: notify.mobile_app_iphone
    data:
      message: "Front Door Sensor Tripped!"
      data:
        attachment:
          content-type: jpeg
        push:
          sound:
            name: "Update.caf"
            critical: 1
            volume: 1.0
          category: camera
        entity_id: camera.porch
1 Like

I have this as well with Chromium on Android - the one thing in common is that we both have mjpeg cameras.

Hmm, I had thought it was the tablet I was using, but mjpeg looks like the source now.

1 Like

The distortion is referenced in this post below as well.

Github Issue:

Github Issue for Chromium, Chrome, Home Assistant App on Android, and Chromium on Xubuntu:

I’ve found a fix for this one:

By removing

stream:

from configuration.yaml

While keeping cameras with the camera_view: live in ui-lovelace.yaml .


Hope it’s applicable to your situation too :slight_smile:

I’ve updated the githubs.