[Camera Support]: Cannot get live view to work with H264+ (Hikvision's own codec tweak) - how to enable jsmpeg for live view instead? #13369
Replies: 1 comment 4 replies
-
I'm not quite sure what magic Hikvision is doing, but you're correct - it definitely sounds like an i-frame issue. We recommend an i-frame interval that matches your frame rate if using standard H.264. The live view type is not user-selectable in Frigate 0.14, but if you want to go back to jsmpeg, the easiest way would be to change the name of your camera or go2rtc stream so that they don't match, and remove any Edit: The jsmpeg player in 0.13 always defaulted to the stream with the |
Beta Was this translation helpful? Give feedback.
-
Describe the problem you are having
Hello,
I hope this is in the right place, perhaps it's better off in the general support area. Apologies in advance if I am in the wrong place.
Ever since Frigate 14 I haven't been able to view the live view of one Hikvision camera 95% of the time. The 5% when it does work it seems totally random, even then it can be a bit intermittent sometimes getting stuck. This is on Android or desktop Chrome browsers. This camera is using Hikvision's H264+ codec to save on storage space. If I switch to H264 it does work fine but it really does use over twice as much storage and I'm not sure if it'd still use more bandwidth for live streaming with go2rtc doing it's thing?
Hikvision's blurb:
I am using go2rtc internal with this main stream.
Of course it might just be that I need to disable this codec, but it did work OK in the previous Frigate for live viewing, it may have only been with jsmpeg before I cannot recall fully now.
Are there any tweaks recommended to try and get this working? Unfortunately I cannot change the i-frame interval at all with this codec version enabled, I have tried various bandwidth, FPS and quality settings but none have helped.
I have tested using VLC via network stream and it has similar issues, sometimes working instantly, sometimes within a few seconds and sometimes even up to 30 seconds before it works. I assume this might be some kind of i-frame issue?
Before we could manually switch to jsmpeg to ensure you can view the stream regardless to see what is happening or just to check in and it would remember the setting so it always worked. How can I enable jsmpeg in Frigate 14?
Another idea I just had is to try and set the detect substream as the live view if that is possible, but I'd imagine the quality of this would probably be even worse than jsmpeg?
I know I could try to restream it but I'd like to leave that as a last resort to avoid additional constant CPU usage, it might not work either.
To note that recordings and event viewings work perfectly fine.
I guess the ideal world would be I keep this h264+ codec and can get some form of live view that works without stressing my server CPU always ideally!
Thank you!
Version
0.14.0-da913d8
What browser(s) are you using?
No response
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Other Linux
Install method
Docker Compose
Object Detector
OpenVino
Network connection
Wired
Camera make and model
Hikvision
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions