Adds skip SEI frame
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
NALUTypePFrame = 1
|
NALUTypePFrame = 1
|
||||||
NALUTypeIFrame = 5
|
NALUTypeIFrame = 5
|
||||||
|
NALUTypeSEI = 6
|
||||||
NALUTypeSPS = 7
|
NALUTypeSPS = 7
|
||||||
NALUTypePPS = 8
|
NALUTypePPS = 8
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ func RTPDepay(track *streamer.Track) streamer.WrapperFunc {
|
|||||||
//println("new PPS")
|
//println("new PPS")
|
||||||
pps = unit
|
pps = unit
|
||||||
continue
|
continue
|
||||||
|
case NALUTypeSEI:
|
||||||
|
// some unnecessary text information
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// ffmpeg with `-tune zerolatency` enable option `-x264opts sliced-threads=1`
|
// ffmpeg with `-tune zerolatency` enable option `-x264opts sliced-threads=1`
|
||||||
|
|||||||
Reference in New Issue
Block a user