From 9f0153e2a870ddefafdc832049fe334cd62fedaa Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Fri, 9 Sep 2022 19:32:56 +0300 Subject: [PATCH] Adds skip SEI frame --- pkg/h264/helper.go | 1 + pkg/h264/rtp.go | 3 +++ 2 files changed, 4 insertions(+) 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`