[Config Support]: #20399
Replies: 3 comments 5 replies
-
Looking at your configuration and the logs showing "Non-monotonic DTS" errors, the issue is related to timestamp problems in your video streams. The logs show FFmpeg is constantly correcting timestamps, which causes the stuttering you're experiencing. Here are several configuration changes to address this issue: 1. Update FFmpeg Input ArgumentsYour current ffmpeg:
hwaccel_args: preset-vaapi
input_args: preset-rtsp-generic
output_args:
record: preset-record-generic-audio-aac 2. Configure go2rtc Streams ProperlyFor Tapo cameras, you should use the ffmpeg module in go2rtc to handle the stream processing (2). Update your go2rtc configuration: go2rtc:
webrtc:
candidates:
- frigate.sipnplay.cafe:8555
- 192.168.50.109:8555
- stun:8555
ice_servers:
- urls: [stun:stun.l.google.com:19302]
- urls: [stun:stun1.l.google.com:19302]
streams:
kitchen:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1#video=copy#audio=copy#audio=aac#hardware
u2:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1#video=copy#audio=copy#audio=aac#hardware
u1:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1#video=copy#audio=copy#audio=aac#hardware
g1-01:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1#video=copy#audio=copy#audio=aac#hardware
g1-02:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1#video=copy#audio=copy#audio=aac#hardware
g2-01:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1#video=copy#audio=copy#audio=aac#hardware 3. Update Camera ConfigurationUpdate your camera inputs to use the restream properly (1): cameras:
kitchen:
enabled: true
detect:
enabled: false
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/kitchen
input_args: preset-rtsp-restream
roles:
- record
- audio
motion:
enabled: true
threshold: 35 4. Consider Additional FFmpeg SettingsIf the issue persists, you may need to use the ffmpeg module approach in go2rtc (2): go2rtc:
streams:
kitchen:
- ffmpeg:rtsp://administrator:[email protected]:554/stream1 The "Non-monotonic DTS" errors in your logs indicate timestamp issues that are common with some camera streams. Using go2rtc's ffmpeg module with proper parameters should resolve the stuttering by handling the timestamp corrections at the go2rtc level rather than during Frigate's processing (2). 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
Ive implemented all the changes the AI suggested and it didnt work. |
Beta Was this translation helpful? Give feedback.
-
Ive changed config to ffmpeg:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
All live streams and recordings in Frigate have noticeable jitter/stutter, but the same RTSP streams play perfectly smooth in VLC. This affects both local access (http://192.168.50.109:5000) and remote access through Cloudflared NPM.
Version
0.16.1-e664cb2
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
Frigate stats
No response
Operating system
UNRAID
Install method
Docker Compose
docker-compose file or Docker CLI command
/frigate HOST_CONTAINERNAME=frigate FRIGATE_RTSP_PASSWORD=enterpassword TZ=Asia/Bangkok HOST_OS=Unraid HOST_HOSTNAME=AkuTower PATH=/usr/local/go2rtc/bin:/usr/local/tempio/bin:/usr/local/nginx/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NVIDIA_VISIBLE_DEVICES=all NVIDIA_DRIVER_CAPABILITIES=compute,video,utility TOKENIZERS_PARALLELISM=true TRANSFORMERS_NO_ADVISORY_WARNINGS=1 OPENCV_FFMPEG_LOGLEVEL=8 HAILORT_LOGGER_PATH=NONE DEFAULT_FFMPEG_VERSION=7.0 INCLUDED_FFMPEG_VERSIONS=7.0:5.0 S6_LOGGING_SCRIPT=T 1 n0 s10000000 T S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
Object Detector
CPU (no coral)
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
Camera Setup
All Tapo C310 running on Wifi
What Works
✅ VLC playback via : rtsp://administrator:[email protected]:554/stream1 on tailscale and remote location is perfectly smooth
✅Both direct LAN and Cloudflare proxy show same jitter
✅ Recordings are being created successfully - still has the jitter though
✅ Hardware acceleration has been tested and works but did not achieve any differences other than slightly less CPU load
Ive tested many configurations with Claude but still no help.
Beta Was this translation helpful? Give feedback.
All reactions