Closed JIEgOKOJI closed 2 years ago
Hello, this is caused by the fact that nvenc doesn't include the max_num_reorder_frames
field into the H264 SPS, and therefore the server can't compute the initial offset between PTS and DTS (which is max_num_reorder_frames * 1 / fps
).
Without this initial offset, it happens that DTS > PTS.
FFmpeg uses an undocumented algorithm that allows to derive max_num_reorder_frames
when it is not present, that may be implemented in the server too:
i need to investigate.
fixed in v0.19.2.
This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.
Which version are you using?
latest
Which operating system are you using?
Describe the issue
When using lhls and starting stream from OBS with nvenc encoder. The Muxer crashes with logs " destroyed (muxer error: DTS is greater than PTS)"
Describe how to replicate the issue
Did you attach the server logs?
2022/06/13 17:21:30 INF [HLS] [muxer lhls/6] is converting into HLS 2022/06/13 17:21:32 INF [HLS] [muxer lhls/6] destroyed (muxer error: DTS is greater than PTS)
no
Did you attach a network dump?
no