bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
10.78k stars 1.4k forks source link

Be less harsh on B-Frames #3196

Closed neilyoung closed 2 months ago

neilyoung commented 3 months ago

Changes the behaviour on seemingly detected B-frames (ignore instead of break)

Relevant discussion: https://github.com/bluenviron/mediamtx/discussions/2818

aler9 commented 2 months ago

Hello, the problem of this PR is that it produces corrupted streams. If you have a decoder which outputs access units with the same timestamp, open an issue and provide a sample file that allows to replicate the problem, since the server may be improved in order to merge or skip these duplicate timestamps before passing them to the output muxer.