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
}
LeiHe
[email protected]<mailto:[email protected]>
在 2018年10月10日,上午6:58,Evan Odabashian
<[email protected]<mailto:[email protected]>> 写道:
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?
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user