[Libav-user] streaming raw H.264 to HLS

He Lei helei0908 at hotmail.com
Wed Oct 10 07:08:10 EEST 2018

The first byte of each nalu is the header, and the lower 5 bits of this byte are of nalu type:

type_value = head_byte & 0x1F;

switch( type_value){
5:  // idr.
7: //sps
8: //pps

helei0908 at hotmail.com<mailto:helei0908 at hotmail.com>

在 2018年10月10日,上午6:58,Evan Odabashian <eodabash at gmail.com<mailto:eodabash at gmail.com>> 写道:

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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181010/659dca16/attachment.html>

More information about the Libav-user mailing list