[Support]: Message: “Restarting ffmpeg...” #22069
Replies: 1 comment
-
|
The "Restarting ffmpeg..." message indicates that Frigate's watchdog is detecting ffmpeg process crashes and automatically restarting them(1). Based on your logs, the root cause is network connectivity issues between Frigate and your cameras(2)(1). Primary IssuesNetwork Timeouts and Connection Failures Your go2rtc logs show repeated connection errors(2):
Your Frigate logs confirm the same issue(1):
Audio Stream Timestamp Issues The
These invalid timestamps indicate the camera's audio stream has discontinuities that ffmpeg cannot process(1). Solutions1. Fix Network ConnectivityCheck your network infrastructure(2)(1):
2. Optimize Camera SettingsFor your Reolink cameras, adjust firmware settings(3):
3. Fix Audio ConfigurationYour cameras are outputting H.265 video with AAC audio(2). For the cameras experiencing audio timestamp issues, modify your go2rtc configuration to handle audio more reliably(2): go2rtc:
streams:
daire-giris_right_main:
- rtsp://admin:*******@192.168.200.34:554/h264Preview_01_main
- "ffmpeg:daire-giris_right_main#audio=aac"
daire-giris_right_sub:
- rtsp://admin:*******@192.168.200.34:554/h264Preview_01_sub
- "ffmpeg:daire-giris_right_sub#audio=aac"Alternatively, if audio issues persist, you can disable audio for problematic cameras(2): go2rtc:
streams:
daire-giris_right_main:
- ffmpeg:rtsp://admin:*******@192.168.200.34:554/h264Preview_01_main#video=copy
daire-giris_right_sub:
- ffmpeg:rtsp://admin:*******@192.168.200.34:554/h264Preview_01_sub#video=copy4. Consider Using HTTP StreamsBased on a similar Reolink 12MP camera configuration, HTTP streams may be more stable than RTSP for some Reolink models(4). You could try: go2rtc:
streams:
daire-giris_right_main:
- "ffmpeg:http://192.168.200.34/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=*******#video=copy#audio=aac"
daire-giris_right_sub:
- "ffmpeg:http://192.168.200.34/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=admin&password=*******"5. Monitor System ResourcesYour system shows recording cache warnings(1):
This suggests your storage may not be keeping up with the write load. Consider:
The network connectivity issues are the primary cause of your ffmpeg restarts. Fix those first, then address audio configuration and system resources as needed. 📚 Sources: Have another question? Just tag @inkeep. |
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
I keep getting the message “Restarting ffmpeg...” in the logs. There are also other error messages, but why?
Can anyone help me?
Version
0.16.2-4d58206
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
Install method
Docker Compose
docker-compose file or Docker CLI command
Object Detector
CPU (no coral)
Network connection
Wired
Camera make and model
Reolink
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