Skip to content

Commit 9f0153e

Browse files
committed
Adds skip SEI frame
1 parent b2eaf03 commit 9f0153e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/h264/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
const (
1010
NALUTypePFrame = 1
1111
NALUTypeIFrame = 5
12+
NALUTypeSEI = 6
1213
NALUTypeSPS = 7
1314
NALUTypePPS = 8
1415
)

pkg/h264/rtp.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ func RTPDepay(track *streamer.Track) streamer.WrapperFunc {
5353
//println("new PPS")
5454
pps = unit
5555
continue
56+
case NALUTypeSEI:
57+
// some unnecessary text information
58+
continue
5659
}
5760

5861
// ffmpeg with `-tune zerolatency` enable option `-x264opts sliced-threads=1`

0 commit comments

Comments
 (0)