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

Streaming h265 / hevc from Unifi Protect doesn't work #1116

Closed
RaHehl opened this issue May 15, 2024 · 5 comments
Closed

Streaming h265 / hevc from Unifi Protect doesn't work #1116

RaHehl opened this issue May 15, 2024 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@RaHehl
Copy link

RaHehl commented May 15, 2024

If i try to stream a rtsp stream from Unifi Protect from a camera with h265 / hevc enabled it freezes and looks like this:

image

The same source RTSP url in VLC Works

image

image

Here's a log from the docker container with trace enabled:
h265.log

@RaHehl
Copy link
Author

RaHehl commented May 17, 2024

Frame.jpeg:
image

rtsp://192.168.7.10:8554/rtspx://192.168.7.8:7441/*********
Works in VLC

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label May 18, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 18, 2024

#1102

@AlexxIT AlexxIT closed this as completed May 18, 2024
@RaHehl
Copy link
Author

RaHehl commented May 18, 2024

@AlexxIT regarding #1102 (comment) my last comment was with 1.9.2 are u sure this is duplicate? This isn't fixed

@RaHehl
Copy link
Author

RaHehl commented May 18, 2024

@AlexxIT

Without knowing what I was doing, I noticed the following:
I have a G5 Bullet that doesn't cause any problems, and several G4s that have this problem.
I have " log.Printf("[HEVC] %v, len: %d", Types(buf), len(buf))" activated in the h265 rtp.go.

The broken stream from the G4 looks like this:

2024/05/19 00:28:51 [HEVC] [1], len: 158
2024/05/19 00:28:51 [HEVC] [1], len: 88
2024/05/19 00:28:51 [HEVC] [1], len: 141
2024/05/19 00:28:51 [HEVC] [1], len: 137
2024/05/19 00:28:51 [HEVC] [1], len: 72
2024/05/19 00:28:51 [HEVC] [1], len: 132
2024/05/19 00:28:51 [HEVC] [32 33 34 19], len: 5568
2024/05/19 00:28:51 [HEVC] [19], len: 4502

And with the functioning G5 like this:
2024/05/19 00:29:47 [HEVC] [1], len: 6354
2024/05/19 00:29:47 [HEVC] [32 33 34 19], len: 249579

I suspect it may be more of a problem with the source stream that comes from protect than a go2rtc problem, but vlc works, how could I describe the problem when I approach the UI? Unfortunately I have no idea about the HEVC internals

@AlexxIT
Copy link
Owner

AlexxIT commented May 19, 2024

This is duplicate about freezes from broken stream. Why it's broken - we don't know.
You can use transcoding via ffmpeg. Probably it will fix broken stream.

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