I am using below pipeline for livestreaming, I am able to find the end-to-end latency which is about 30-35s, is there a way I can identify per component latencies, like the latency at MediaLive and latency at MediaPackage?
OBS (Open broadcast) --RTMP--> MediaLive --HLS-> MediaPackage --HLS--> Cloudfront -> video.js player
The latency is everywhere, so it's important to find out which components introduced the latency. However, each component will introduce a piece of latency:
Use a small tool online stopwatch or others similar, then use OBS window capture to capture the stopwatch in livestream, and play the RTMP/HLS stream from MediaLive, and HLS from cloudfront, you will get the latency of each system.
Please use ffplay, flv.js, hls.js to play the stream, NEVER use VLC which has a huge latency itself.
There are some tips after you find the latency:
Please NEVER apply these settings, unless you finger out where the latency is introduced.