<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
The first byte of each nalu is the header, and the lower 5 bits of this byte are of nalu type:
<div class=""><br class="">
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>type_value = head_byte & 0x1F;</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>switch( type_value){</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>5: <span class="Apple-tab-span" style="white-space: pre;">
</span>// idr.</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>7:<span class="Apple-tab-span" style="white-space:pre">
</span>//sps</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>8:<span class="Apple-tab-span" style="white-space:pre">
</span>//pps</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>}</div>
<div class=""><br class="">
<div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
LeiHe</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="mailto:helei0908@hotmail.com" class="">helei0908@hotmail.com</a></div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">在 2018年10月10日,上午6:58,Evan Odabashian <<a href="mailto:eodabash@gmail.com" class="">eodabash@gmail.com</a>> 写道:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">It
 appears my problem was due to lack of IDR frames - playing the segments with ffplay gave me some more error messages to google ;-) I was able to get it working by forcing nvenc to emit an IDR frame at the beginning of each GOP. I can't figure out if there's
 a way to tell from the parser whether the current frame is an IDR frame or just a regular I frame though, should this be possible to detect?</span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>