Adds mp4 module

This commit is contained in:
Alexey Khit
2022-09-09 19:31:52 +03:00
parent 76b352d67f
commit 8b54444c89
17 changed files with 568 additions and 339 deletions
+11
View File
@@ -17,6 +17,17 @@ func NALUType(b []byte) byte {
return b[4] & 0x1F
}
func IsKeyframe(b []byte) bool {
return NALUType(b) == NALUTypeIFrame
}
func GetProfileLevelID(fmtp string) string {
if fmtp == "" {
return ""
}
return streamer.Between(fmtp, "profile-level-id=", ";")
}
func GetParameterSet(fmtp string) (sps, pps []byte) {
if fmtp == "" {
return