diff --git a/pkg/h264/helper.go b/pkg/h264/helper.go index 1e623c46..a23eb847 100644 --- a/pkg/h264/helper.go +++ b/pkg/h264/helper.go @@ -9,6 +9,7 @@ import ( const ( NALUTypePFrame = 1 NALUTypeIFrame = 5 + NALUTypeSEI = 6 NALUTypeSPS = 7 NALUTypePPS = 8 ) diff --git a/pkg/h264/rtp.go b/pkg/h264/rtp.go index 9cca7bc2..389cca1e 100644 --- a/pkg/h264/rtp.go +++ b/pkg/h264/rtp.go @@ -53,6 +53,9 @@ func RTPDepay(track *streamer.Track) streamer.WrapperFunc { //println("new PPS") pps = unit continue + case NALUTypeSEI: + // some unnecessary text information + continue } // ffmpeg with `-tune zerolatency` enable option `-x264opts sliced-threads=1`