Replies: 2 comments 12 replies
-
That's a good question. The default config is currently using: - FFMPEG_FLAGS=-fflags +genpts+flush_packets+nobuffer+bitexact -flags +low_delay I wonder if we might be able to tweak some of those flags or if it's an issue with the camera sending/resending the frames in bursts? |
Beta Was this translation helpful? Give feedback.
-
I just received another V3 camera from Wyze (had a small gift certificate to use) and I have set this camera up just like the others (see above posts). The funny thing is, this camera works perfectly - there are no dropped frames or stutttering when displaying the video feed in 1080P. All four others cameras exhibit problems. Has Wyze changed something under the hood in the newer V3 cams? |
Beta Was this translation helpful? Give feedback.
-
I have a question that is not easily asked unless I briefly describe the entire setup for my 4 V3 Wyze Cams. Since I am using several addons, I'm not sure the appropriate forum to post this, but I will try here first.
My Setup
First of all, I am running wyze_mini_hacks on all 4 cameras and have the rtsp function enabled for LOW_RES (640x360). I use this stream for the detection role in frigate and it works flawlessly with extremely low cpu usage. The HIGH_RES streams in wyze_mini_hacs tend to have a lot of issues with tearing and pixelation in the video, so I have this disabled.
I am also running the Wyze Bridge addon with all 4 wyze cameras configured to get a high resolution rtsp stream. I use the rtsp streams from Wyze Bridge in frigate for the recording and rtmp roles.
I also have the go2rtc addon installed to get low latency WebRTC display for all cameras in Home Assistant. The frigate rtmp streams are used as the source streams for go2rtc.
Results
I have frigate configured to record from all 4 cameras when motion is detected. When viewing the recordings, there are no issues whatsoever. There is no stuttering, no tearing, and no skipping of frames.
When viewing the cameras in Home Assistant, there is extremely low latency on the cameras (less than 1 second). However, the display for all of the cameras occasionally stutter - the video stops for a short time (around a 1/4 to 1/2 second) and then either jumps forward to realtime, or plays faster for a short time to catch up. I have also tried to display the cameras directly from the Wyze Bridge rtsp stream (via go2rtc) with the same results.
My frigate recordings previously exhibited the same issue with stuttering. To fix this I changed the FFMPEG input_args in frigate from
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1
to
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000
I read about this change in the frigate forums, tired it, and it solved my problem - not sure why - I must confess to being a newbie with regards to FFMPEG.
My Question
In frigate the rtsp source streams come from Wyze Bridge, so I am trying to understand why recordings work flawlessly, but realtime display of the video stream does not. The frigate documentation states that the rtsp stream is passed unchanged as a rtmp output stream. So I'm wondering if there are ffmpeg flags I can set in Wyze Bridge or go2rtc that would help. I know this is a vague question, but I'm hoping that someone else is using the same addons with success and that they can share their experience with me.
Beta Was this translation helpful? Give feedback.
All reactions