[HW Accel Support]: Frigate + WebRTC + h264/cuda transcoding results in inconsistent non-live playback #15273
Unanswered
spikeygg
asked this question in
Hardware Acceleration Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem you are having
I have a Frigate machine with a Nvidia RTX 3060 for transcoding and a Reolink Duo2 camera. The duo2 has an h.265 video stream but that doesn't play nicely with WebRTC so I set up a transcode to convert it to h.264, like this:
Since setting up the transcode, the live stream is clear and seems to work well (smooth video feed playback) but any past or recorded footage comes back with very inconsistent framerate. It seems to play smoothly for like 500ms, then slow down to half speed for about 500ms, then speed up. This pattern repeats the whole time the video plays. This happens in the browser playback as well as exported videos, I can supply one here if requested (however, they are VERY large so it will have to be quite short). Smooth motion like cars driving down the road or people walking look like they are going/stopping/going/stopping.
I'm curious if there is something I can do to the process (insert a command perhaps) to make the transcoded result smooth, like it should be.
When viewing an exported video with VLC, I found that I could open "Current Media Information" and click on the "Statistics" tab, and open the "Input/Read"-->"Input bitrate" and while playing the video, the chart looks like this:
which appears to track with the footage slowing down and speeding up. Here's another example:
Version
0.14.0-da913d8
Frigate config file
docker-compose file or Docker CLI command
Relevant Frigate log output
Relevant go2rtc log output
FFprobe output from your camera
Install method
Docker Compose
Object Detector
TensorRT
Network connection
Wired
Camera make and model
Reolink Duo2
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