Skip to content
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

iOS App Clips Video Frame #227

Closed
kspearrin opened this issue Dec 22, 2021 · 6 comments
Closed

iOS App Clips Video Frame #227

kspearrin opened this issue Dec 22, 2021 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@kspearrin
Copy link

kspearrin commented Dec 22, 2021

Sorry if this is a duplicate, I was not able to find the same issue posted already.

I have the WebRTC camera card running on my home assistant install. Everything seems to be working well when viewing from my desktop PC:

type: custom:webrtc-camera
url: >-
  rtsp://username:password@amcrest_camera_name.local:554/cam/realmonitor?channel=1&subtype=1

I am using substream 1 with my Amcrest (Dahua) IP cameras, configured with a 704x480 (D1) resolution and frame rate of 10.

image

image

However, when viewing these cards from the Home Assistant iOS app, the videos are clipped and I cannot see the entire area. It appears that the clipping is only along the width (x) of the frame.

image

Even when viewing the stream in full screen, it is clipped the same.

image

If I change the resolution to something that is 16:9, it seems to display correctly on both platforms, however, I need this lower resolution to save on bandwidth for live viewing of 10 cameras.

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Dec 23, 2021
@AlexxIT
Copy link
Owner

AlexxIT commented Dec 23, 2021

I think problem the same #21

@kspearrin
Copy link
Author

kspearrin commented Dec 23, 2021

@AlexxIT I reviewed #21, but this seems like it might be different. #21 discusses the wrong aspect ratio (4:3 instead of 16:9), however, the entire frame is still visible (just squished). Here, the frame is actually trimmed on the sides and part of the image is missing. I did not see any part of the image missing in #21 like I am experiencing.

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 23, 2021

You can check this stream in another software. Example VLC

@kspearrin
Copy link
Author

Aspect ratio is correct and the full frame is visible in VLC.

image

@kspearrin
Copy link
Author

Looking at the screenshots again, it appears that on desktop (Chrome) the aspect ratio is changed and the image is squished, however, the full frame is still visible. On iOS, it appears that is is trying to keep the correct aspect ratio, however, that results in the frame being trimmed.

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 23, 2021

I think is same problem as 21. Camera sends wrong pixel size. VLC can read it. WebRTC don't support wrong pixel size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants