Closed sebastian-tischer closed 9 months ago
This is usually a camera issue that occurs while decoding. Maybe try a different profile on the camera settings
As always thanks for the fast reply and your help :) I switched from h.264 to h.265 hevc profile on the cam and also higher compression - looks good so far.
Only question - do I need to change something in my config?
Furthermore - in your docu I only see this: hwaccel_args: preset-nvidia-h264 Can I also use => hwaccel_args: preset-nvidia-h265
Just found it, I used hwaccel_args: preset-nvidia-h265 with the high-profile h.265 hevc in the camera.
What else in the camera profile can cause this, saw it 1-2 times since the switch :(
Hi @NickM-27 I checked the last weeks and can't get rid of the image errors.
I tried to check the rtsp stream via VLC and it arrives great without any issues. Only in Frigate the issue comes up.
Profile in camera is h265: HEVC and 1280 kbps.
Anything I can check?! :)
you could try connecting with udp instead of tcp, this is what vlc does
Thanks, I just did it that way:
cameras:
Einfahrt:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/Einfahrt
input_args: preset-rtsp-restream preset-rtsp-udp
roles:
- record
- path: rtsp://127.0.0.1:8554/Einfahrt-Detect
input_args: preset-rtsp-restream preset-rtsp-udp
roles:
- detect
motion:
mask:
# - 108,131,140,126,129,75,95,83
- 176,221,184,272,285,266,278,219,268,154,177,169
objects:
filters:
person:
mask:
# - 106,132,138,128,130,84,96,87 #GeringeAuflösung
- 189,224,189,271,228,270,286,270,276,157,186,163
Strangely, I get a stream with mse in camera single view, but not in the overview.
oh you can't connect to the restream via udp, you need to connect to the camera using udp. This requires using ffmpeg in go2rtc, not 100% sure which input is used for udp but it will be in the go2rtc docs
I am not sure, but I might be one of the dumbest on earth... :D
I set the detect resolution to 1080p:
detect:
enabled: True
width: 1280
height: 720
But then I wrongly changed the detect and record URL (detect was 1440p and record was 1080p).
Might this be the issue - as of right now it looks good :)
Not there yet, but better 👍
I now adjusted the go2rtc config for udp and will check - for your reference maybe :)
go2rtc:
streams:
Einfahrt:
- rtsp://xx:xx@192.168.x.xxx/livestream/11#input=rtsp/udp
Wasn't the solution :(
In VLC I just enter the rtsp URL as above (without the #input...) and no issues at all. In Frigate I get these strange image errors :(
Any other idea I could try?
these types of issues are common with reolink cameras on rtsp, it is possible that vlc is doing something to handle the packet loss or just dropping frames that contain corruption
Unfortunately I don't have reolink 🤣 I have Instar from a German company.
I checked in the webinterface of the cam, the app of the cam, vlc => nothing like that :(
I might need to switch to webrtc or what do you think?
https://docs.frigate.video/configuration/live#webrtc-extra-configuration
ah gotcha, in any case it seems VLC may be doing something, as the image corruption is characteristic of packet loss / incorrect h.26X encoding
I might need to switch to webrtc or what do you think?
https://docs.frigate.video/configuration/live#webrtc-extra-configuration
that would have nothing to do with the decoded stream having artifacts
I changed it back to tcp (since it is better for cooping with packet loss, as I understand). In the camera, I deactivated the variable bitrate and increased compression. I will check, but looks good and seems to be a camera topic - I will write you latest tomorrow, if it fixed it :)
To bomb you further with messages here - that was not the solution 🤣
I now changed from H.265 to H.264 and this seems to work - as of now... keep you updated.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the problem you are having
Hey team,
I finally moved to unraid on HPE Microserver Gen 10plus v2 and solved a lot of my problems.
Unfortunately, I am having broken images, quite constantly - no idea why 🤣 I bet you have an idea and can help me.
Thank you and warm regards Sebastian
Version
0.12.1-367D724
Frigate config file
Relevant log output
Frigate stats
Operating system
UNRAID
Install method
Docker Compose
Coral version
USB
Any other information that may be helpful
No response