Skip to content

Instantly share code, notes, and snippets.

@sepfy
Created March 23, 2019 15:52
Show Gist options
  • Save sepfy/31e8816e43cefbf17ca2aea4b8338f32 to your computer and use it in GitHub Desktop.
Save sepfy/31e8816e43cefbf17ca2aea4b8338f32 to your computer and use it in GitHub Desktop.
Study for rtmp streaming
H264包含多個NAL Unit
NAL Unit:
由 00 00 00 01開頭, 分為SPS, PPS, IFrame與PFrame
通常h264檔案內容會以SPS PPS IFrame...的方式排序
00 00 00 01接著是NAL Unit的類型, 可以用來判斷一個NAL Unit的類型
67: SPS
68: PPS
65: IFrame
41: PFrame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment