Replies: 3 comments 27 replies
-
what are your video and audio encoding settings in the camera ui |
Beta Was this translation helpful? Give feedback.
-
I see an error about missed packets a lot of the time when manually recording using ffmpeg. After some Googling it was suggested to increase the buffer size [rtsp @ 00000183f4156580] max delay reached. need to consume packet Is this the correct way to enter the ffmpeg argument? I've entered this and it's accepted it without any errors:
|
Beta Was this translation helpful? Give feedback.
-
I'm making some progress. I used Wayback Machine and found the example config before presets were introduced so I now know how to enter ffmpeg arguments.
I added -buffer_size 10000K and decided to try it with UDP.
The sound stays in sync, but the video is very jumpy and not smooth at all. I then experimented by manually recording with ffmpeg and removing arguments. It seems using -fflags +genpts+discardcorrupt and -use_wallclock_as_timestamps 1 with -buffer_size 10000K makes the video jumpy. I then ran the below for a day. I decided to reinstate TCP. The video was absolutely fine, but the sound did go very slightly out of sync, only by a second or so. It's a huge improvement on the 10+ seconds I was seeing before.
I've decided to try UDP again. All seems good at the minute, but it will probably go out of sync again.
Do you have any suggestions for any other arguments to try? |
Beta Was this translation helpful? Give feedback.
-
I've posted previously about issues with audio sync with my Dahua camera. The video ends up around 10 seconds behind the audio after a day or so. I don't have any ffmpeg errors in the Frigate logs though. I decided to play the stream using ffplay to see what would happen. It threw up quite a few errors:
Does anybody have any ideas on what could be causing these errors and how I would go about resolving them?
The http stream from my Reolink POE doorbell doesn't give any errors at all:
Beta Was this translation helpful? Give feedback.
All reactions