winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.
BSD 2-Clause "Simplified" License
2.75k stars 571 forks source link

A-V out of sync when restream #234

Open moonlightes opened 1 year ago

moonlightes commented 1 year ago

I am using nginx for restreaming. Faced the problem of synchronizing audio and video. The problem manifests itself most of all when broadcasting on twitch.

At some point, the A-V in the statistics becomes positive and may continue to rise over time, while other streams continue to show synchronous A-V ranging from -20 to +20. On the stream, this is expressed in a second freeze of the video or sound and their out of sync. Tried to apply the sync settings and they did not give any results.

Build nginx + rtmp-flv compiled as in the manual: Generated by nginx-http-flv-module 1.2.10, nginx 1.23.4, pid 10496, built Mar 1 2023 20:49:31 cl

There is enough network bandwidth for broadcasts, I checked it through the "obs rtmp plugin", it has no problems with twitch.

Config file: nginx.conf

part of log: log

JuneoXIE commented 1 year ago

same problem.