WebRTC
WebRTC copied to clipboard
Feature: add rotate camera image
please can you add a function to rotate the image of the camera similar to
style: | ha-card { transform: rotate(90deg); }
Yes, please. That would be awesome.
Is your code works? Do you check it?
His code kinda works with the lovelace-card-mod: https://github.com/thomasloven/lovelace-card-mod
But the user experience is horrible. What we want is a rotation of the video feed itself, not the entire card. For instance, if I use the Tapo: Cameras Control integration and set 'Extra arguments for ffpmeg' to '-vf "transpose=1"' and untick 'Use Stream from Home Assistant', the picture-entity card will show the video feed as rotated. Unfortunately the same thing does not happen in your webrtc-camera card.
ffmpeg not good idea because it use unnecessary transcoding with high CPU activity
Yeah, I don't want to use ffmpeg. Can you ad an option for rotation in webrtc instead? I have cameras on the beds of my children so it's much more convenient if the video was portrait mode instead of landscape.
I'm not so good with JS. It should be some browser feature.
Any option to rotate will be awesome
Should be fixed in v3
What's the syntax to do this in v3? I tried style: 'video {rotate: -90deg;}'
and it rotates, but the image is then cropped at top and bottom. There's also a large black bar on left and right side.
I'll try to write example