-
The problem and its cause that occurred when creating an RMTP to HLS streaming server using the nginx-rmtp module.
-
Problem
- In the nginx.conf file, hls_fragment was set to 1s to have each fragment in one-second intervals.
- However, when checking the .m3u8 file, each duration was around 4 seconds.
- Changing the value of hls_fragment did not affect the duration.
-
Cause
- When streaming with OBS, the minimum unit of GOP is automatically determined.
- If it exceeds 1 second, it takes precedence over the value of hls_fragment.
- The issue can be resolved by manually setting the GOP.