AnsweredAssumed Answered

vpuenc: request generation of the SPS/PPS header for H264

Question asked by Javier Jardon on Oct 1, 2013
Latest reply on Oct 21, 2013 by Juan Antonio Gutierrez Rosas
Branched to a new discussion

Hi, in a previous question [1] I asked about the parameter to generate a keyframe (I-frame) and setting forceIPicture=1 seems to do the work.


The problem I have now is that I think I have to send the SPS/PPS for any new segment I created, but currently I get this from the parser after the encoder:


gsth264parse.c:926:gst_h264_parse_handle_frame: no SPS/PPS yet, nal Type: 1 Slice, Size: 28105 will be dropped


The VPU generates the SPS/PPS headers during startup, but seems there is no apparent mechanism to trigger a new SPS/PPS header generation. The problem seems to be when a new segment occurs. Since the headers were created only once, only the previous segment ever saw headers - the new one didn't. h264parse apparently considers this an error, and expects SPS/PPS data for every segment.


Do you know if there is anything I can do to tell the vpu to generate new headers again?


Thanks


[1] https://community.freescale.com/message/353601

Outcomes