New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera Stream to Google Hub has wrong orentation #36290
Comments
cast documentation |
Hey there @emontnemery, mind taking a look at this issue as its been labeled with a integration ( |
This comment has been minimized.
This comment has been minimized.
I'm able to stream, but it still has the wrong orientation. |
This comment has been minimized.
This comment has been minimized.
Seeing the same results in 0.111.0b5. |
@silfa718 Which is same result, that the stream still has wrong orientation or do you now see same issue as cydia2020 and codelica? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This seems to only happen to specific cameras, namingly Hikvision ones. |
Wrong orientation. |
Are your cameras configured directly (no NVR) using Home Assistant's Generic IP Camera configuration (vs ONVIF) ? I have Hikvision cameras and NVRs connected via Generic IP Camera config and they all have the correct orientation in Google Hub streams. So trying to see if it's maybe a certain HA integration, or certain newer/older Hikvision models, etc. For configuration I use URLs like: And have the following Hikvision models: |
Manual Configuration works (streams) fine using RTSP streams, only Hikvision cameras added using the Onvif integration stream in wrong orientation. I have these cameras: |
Similar orientation issue for me using ONVIF with Reolink E1 Pro |
Mine are configured with the Axis integration (official) and Reolink via a custom integration. |
@silfa718 Can you confirm the orientation is correct if you go back to 0.108? |
@emontnemery Went back to .109 and.108 and the issue is still happens, wrong orientation. Restored my oldest snapshot which was .103 and the issue still happens, wrong orientation. Perhaps something changed with how Google Hub handles the stream? |
Temp. solution is to add the camera's rtsp stream with the ffmpeg integration |
I also have this problem with hikvision camera I just purchased. Old cheaper TP-Llink camera works fine using ONVIF. |
Yeah you should remove the onvif integration and use the camera with an rtsp stream only before the problem is fixed |
just did that and still getting rotated videos.
|
Not sure if this is Hikvision model/firmware dependent, but you may want to try the Generic IP Camera route -- https://www.home-assistant.io/integrations/generic_ip_camera/ That works for me without rotated video on Google Hubs. |
I got Hikvision DS-2CD2347G1-LU camera. |
no update on how to overcome this? tried generic and ffmpeg without success. Would love to have a front door camera display without changing to a new camera. |
Unsure, I would assume the version mentioned above, where the image was rotated 90° but now doesn't show at all. The camera is the Reolink RLC-420 5MP |
This comment has been minimized.
This comment has been minimized.
onvif documentation |
Labeled this as ONVIF because #36290 (comment) shows that configuring the camera as a generic camera works, but when streamed via ONVIF the orientation is wrong. |
Turn debug logging for stream on and configure the generic camera with the RTSP stream URL from the logs. Also check that stream URL in VLC. Lastly, did this clear up with the latest version using the new Home assistant cast app? |
I've found that generic camera and onvif are both the same in this case. Both cast streams with the image rotated clockwise. Maybe the ffmpeg arguments are not being passed correctly?
{'rtsp_transport': 'tcp'} stream {'rtsp_flags': 'prefer_tcp', 'stimeout': '5000000', 'rtsp_transport': 'tcp'} This could be an issue with the stream/media_player component (or maybe even its a bug with the Chromecast itself) as whenever I play a recorded camera video via the new media player functionality, the video is rotated. Images are oriented correctly |
@timmo001 When I play the lower resolution video I get the correct rotation is this something you experience as well _substream |
Yep, the lower resolution and bitrate seems to solve it. (with the fix above)
Is there a place to raise this to Google? Unless we are planning to workaround this somehow with our own implementation of a receiver which I've seen mentioned for media playback. |
FWIW, I'm using 1080P 5 Mbit h.264 primary (aka "clear") streams from Hikvision cameras and a Hikvision NVR to my Google Home Hubs just fine -- proper rotation. I see other brands mentioned here (Reolink), but as far as Hikvision goes, it seems like it's probably firmware/model/etc dependent. I'm using the Generic IP camera integration. Also, probably a long-shot, but Hikvision's do have a "rotate" option in their camera configuration parameters in case that's somehow involved. |
Hi, I'm having this rotation issue, when casting to my google nest hub max, but when i cast to a regular device, like my vizio p55 cast enabled device, it is buffering indefinitely. The way I have the cameras streaming to my devices is via the synology_dsm plugin that has been recently been updated to allow streaming cameras via surveillance station natively, so now it exposes my camera easily and natively via google home. |
I can confirm that using the lower-resolution substream on my Hikvision cameras is a workaround. |
I came across this issue today after upgrading one of my UnifiProtect cameras and casting to a Google Nest Home Hub Max. The workaround for UnifiProtect was to disable the maximum RTSP resolution stream in the controller and enable the medium resolution (1280x720) in it's place. |
I've the same issue with a Hikvision DS-2CD2142FWD-I. With all options I've tried and mentioned the rotation is incorrect except with the substream, but that's low quality. |
@royduin I'm using a variety of Hikvision DS-2CD models including several DS-2CD2042WD-I. (notice no F) set to 1080P/30fps for the full stream which work fine with my Google Hub Minis. I am using HA's Generic IP Camera route though, not ONVIF. Might be worth a try if you're not using that. |
Using the generic camera now with the substream as the main stream has a higher resolution for Zoneminder. Main stream is rotated. |
I'm just here to me too! All cameras come from a shinobi instance from my own server and display properly within Home Assistant. |
The rotation bug is an issue with the Google chromecast media app, as of right now it appears the intent is "Won't fix" |
Also having this problem with a google nest hub. using generic camera platform and an rtsp stream source. Cameras are Dahua and the rstp stream is from an NVR I have a cheap camera of whic h i dont have the model on me at the moment, also using rstp but directly from the camera, and it works. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This is still a problem for me with HA 2021.5.2 ,the ONVIF cameras seem to be the most problematic for me, however a single Amcrest (non-ONVIF) camera seems to be working fine. |
It is a problem for me with Hikvision DS-HD1 via ONVIF Integration and Amcrest Camera IP4M-1051 via Amcrest Integration, when casting to Google Home Hub with firmware 241809 and cast firmware 1.52.241809. I don't have this issue with a Wyze Cam V2 with the Official RTSP firmware and ffmpeg Integration. Version | core-2021.7.1 Installation Type | Home Assistant Supervised |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
When streaming a camera live view to the Google Hub Display the camera is shown in the wrong orientation (landscape instead of portrait)
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
I can confirm this was working up until .108, I can't remember if it worked on .109.
Tested with two different cameras (Axis and reolink) and two different Google Hubs, which I know worked up before.
If I log into the camera's web UI the orientation is correct and it is shown correctly in HA Lovelace UI.
My doorbell camera (Doorbird) streams correctly.
The text was updated successfully, but these errors were encountered: