Closed zhishiheng closed 5 months ago
Is there any good way to solve this problem?
this is the log [Uploading log.txt…]()
@zhishiheng Generally speaking is not possible to sync two live feeds (eg. the same exact feed) and have 100% sync accuracy. That's because of the timestamps, it could be possible if their timestamps were based on the actual world time. But currently Flyleaf does not support to sync two different inputs like that. The best way it would be with MaxLatency but if you talk for the same input/stream why do you open it twice and don't just use the replica player?
(Can't see the log but in this case it wouldn't be really helpful)
@SuRGeoNix what about syncing the players to an external time reference? I believe ffmpeg has some support for this using ntp timestamps in the rtc sender reports for rtsp . it could be useful for a few different situations and use cases.
@t3therdev I've already mention "That's because of the timestamps, it could be possible if their timestamps were based on the actual world time. But currently Flyleaf does not support to sync two different inputs like that."
There is indeed an option in FFmpeg which is "use_wallclock_as_timestamps=1". Never test it though, not sure if it would work as it supposed to (how it could identify the send and time -not the recv- accurately so it can sync different demuxers/streams)
how to use replica player?
how to use replica player?
Check the samples
How to play a stream, with four playback interfaces and synchronized playback interfaces. I created four players to play the same stream. At the beginning, the screen was basically synchronized, but over time, it could cause the screen to be out of sync. One of the playback will still get stuck and need to be replayed before it can be played again