gtxaspec / wz_mini_hacks

wz camera mods... make your camera better.
1.33k stars 114 forks source link

Audio out of sync (delayed) with video using go2rtc #744

Open JingleheimerSE opened 8 months ago

JingleheimerSE commented 8 months ago

With a V3, I noticed the audio was delayed from the video when using the stock go2rtc configuration and viewing in VLC, Frigate, and the go2rtc webpage (the web page seems to have an extra issue where the delay grows the longer you watch the stream). v4l2rtspserver did not seem to have the same issue.

Version T31(WYZE_CAKP2JFUS) on 4.36.9.139 running wz_mini 2024-02-24_00:14:03

Config:

Only really enabled go2rtc and tweaked a couple of General settings,

#####VIDEO STREAM#####
RTSP_LOGIN="admin"
RTSP_PASSWORD=""
RTSP_PORT="8554"

RTSP_HI_RES_ENABLED="false"
RTSP_HI_RES_ENABLE_AUDIO="false"

RTSP_LOW_RES_ENABLED="false"
RTSP_LOW_RES_ENABLE_AUDIO="false"

RTSP_AUTH_DISABLE="false"

VIDEO_0_MAX_BITRATE=""
VIDEO_0_TARGET_BITRATE=""
VIDEO_0_ENC_PARAMETER=""
VIDEO_0_FPS=""

VIDEO_1_MAX_BITRATE=""
VIDEO_1_TARGET_BITRATE=""
VIDEO_1_ENC_PARAMETER=""
VIDEO_1_FPS=""

GO2RTC_SERVER_ENABLED="true"
GO2RTC_HI_RES_ENABLED="true"
GO2RTC_HI_RES_ENABLE_AUDIO="true"
GO2RTC_LOW_RES_ENABLED="true"
GO2RTC_LOW_RES_ENABLE_AUDIO="true"

....

#####GENERAL#####
DISABLE_FW_UPGRADE="true"
ENABLE_SELFHOSTED_MODE="true"