core icon indicating copy to clipboard operation
core copied to clipboard

Camera stream orentation is ignored on WebRTC streams

Open TrasteCC opened this issue 1 year ago • 27 comments

Checklist

  • [X] I have updated to the latest available Home Assistant version.
  • [X] I have cleared the cache of my browser.
  • [X] I have tried a different browser to see if it is related to my browser.
  • [X] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I'm struggling with this same issue, which seems to be back after HA 2024.11:

https://github.com/home-assistant/core/issues/81089

"When setting a orientation on the camera, it briefly changes position, but then reverts to the standard, and the value is not saved."

Describe the behavior you expected

Rotate the camera stream in the front-end in a grid card

Steps to reproduce the issue

  1. Load the dashboard
  2. Click the video stream on the card
  3. Set upt "camera strem orientation" to "rotate righ"
  4. Click "Update"

image

What version of Home Assistant Core has the issue?

2024.11.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome 130.0.6723.117

Which operating system are you using to run this browser?

Windows 11

State of relevant entities

State: idle

Problem-relevant frontend configuration

cards:
      - type: grid
        square: false
        columns: 1
        cards:
          - show_state: false
            show_name: false
            camera_view: live
            type: picture-entity
            entity: camera.reolink_rlc_510wa_clear
            camera_image: camera.reolink_rlc_510wa_clear

Javascript errors shown in your browser console/inspector

http://192.168.1.144:8123/unknown/src/scoped-custom-element-registry.js 404 (Not Found)

Additional information

No response

TrasteCC avatar Nov 15 '24 10:11 TrasteCC

Fixed with 2024.11.2

TrasteCC avatar Nov 19 '24 11:11 TrasteCC

Problem is back with 2024.11.3

Some other people struggling with the same issue:

https://community.home-assistant.io/t/help-camera-rotation-stopped-working/793325/1

TrasteCC avatar Nov 25 '24 12:11 TrasteCC

Same problem. :(

andrewigali avatar Dec 02 '24 14:12 andrewigali

Updated to 2024.12.1. Problem persists.

TrasteCC avatar Dec 07 '24 18:12 TrasteCC

Is there any workarounds now?

iglooom avatar Dec 08 '24 05:12 iglooom

Is there any workarounds now?

Not that I know of :-(

TrasteCC avatar Dec 09 '24 11:12 TrasteCC

Problem still exists in 2024.12.2

TixoRebel avatar Dec 11 '24 05:12 TixoRebel

Was it fixed in 2024.12.3 ? Mine is working okay now.

iglooom avatar Dec 18 '24 06:12 iglooom

Updated to 2024.12.4. Issue still persists for me

TrasteCC avatar Dec 18 '24 06:12 TrasteCC

If i changed the preload setting at the same time (i enabled it) the orientation setting seem to persist (for now...)

margorjon avatar Dec 18 '24 10:12 margorjon

If i changed the preload setting at the same time (i enabled it) the orientation setting seem to persist (for now...)

Not working for me 😭

Screenshot_2024-12-18-11-53-37-101_io homeassistant companion android

TrasteCC avatar Dec 18 '24 10:12 TrasteCC

If you disable it first, then enable it again together with the orientation setting, does that work? I tried this after updating to 12.4

margorjon avatar Dec 18 '24 10:12 margorjon

If you disable it first, then enable it again together with the orientation setting, does that work? I tried this after updating to 12.4

Kind of. I only works when I press the play button and the window pops up. But it does not rotate when I first access the tab (target behavior).

Thanks, though

TrasteCC avatar Dec 18 '24 11:12 TrasteCC

Yeah, same as for me, and it rotated correctly in my picture glance card which was the goal for me. But clearly there seems to be some sort of bug here. Edit: Now after a restart, i can't seem to get it to work again...

margorjon avatar Dec 18 '24 11:12 margorjon

Anybody can take a look at this please? Some others users experiencing this behavior: https://community.home-assistant.io/t/help-camera-rotation-stopped-working/793325/5

TrasteCC avatar Jan 05 '25 09:01 TrasteCC

If you disable it first, then enable it again together with the orientation setting, does that work? I tried this after updating to 12.4

This unfortunately didn't work for me

hasibb7 avatar Jan 10 '25 19:01 hasibb7

If you disable it first, then enable it again together with the orientation setting, does that work? I tried this after updating to 12.4

This unfortunately didn't work for me

Yeah, I've encountered times when it does not work to.

If I do som repeat reloads and disable+enable efter what I've done what i did above with the setting, then it usually starts to work eventually. But it resets after every reboot of the os.

margorjon avatar Jan 10 '25 19:01 margorjon

Still not working in 2025.1.3

Anyone got it working?

Thanks!

TrasteCC avatar Jan 22 '25 08:01 TrasteCC

FINALLLY FIXED with OS 14.2 and Supervisor 2025.1.4.

TrasteCC avatar Jan 27 '25 16:01 TrasteCC

Update: issue still persists:

https://community.home-assistant.io/t/help-camera-rotation-stopped-working/793325/18?u=marcecastro

TrasteCC avatar Feb 17 '25 12:02 TrasteCC

Still broken for me.

` Core 2025.2.5

Supervisor 2025.02.4

Operating System 14.2

Frontend 20250221.0`

jrentsch avatar Feb 28 '25 17:02 jrentsch

same - to follow

dathosim avatar Mar 09 '25 17:03 dathosim

Still broken

mesut3000 avatar Mar 10 '25 19:03 mesut3000

Any help here, please?

TrasteCC avatar Mar 10 '25 20:03 TrasteCC

Same issue, really anoying...

FirewizzNL avatar Mar 18 '25 10:03 FirewizzNL

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (go2rtc) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of go2rtc can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign go2rtc Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


go2rtc documentation go2rtc source (message by IssueLinks)

home-assistant[bot] avatar Mar 25 '25 12:03 home-assistant[bot]

The described issue only happens if you use a WebRTC stream, which has been available and has been the preferred stream since 2023.11+. I will look into it in the next days.

edenhaus avatar Mar 25 '25 12:03 edenhaus

The described issue only happens if you use a WebRTC stream, which has been available and has been the preferred stream since 2023.11+. I will look into it in the next days.

Hi! Any news about this? sorry, no pressure, just curious :-) Thanks!

TrasteCC avatar May 13 '25 13:05 TrasteCC

I'm working on it; it's not so easy to solve without transcoding it. Currently looking around for a good solution If possible, the easiest solution is to change the orientation directly on the camera and disable it on HA for now.

edenhaus avatar May 21 '25 07:05 edenhaus

I'm working on it; it's not so easy to solve without transcoding it. Currently looking around for a good solution If possible, the easiest solution is to change the orientation directly on the camera and disable it on HA for now.

Thanks for the update! I'll wait for the fix, since my Reolink camera does not offer a 90 degree rotation feature (it sucks!).

TrasteCC avatar May 22 '25 10:05 TrasteCC