Request key frame in vpuenc (Freescale)
Javier Jardón
jjardon at gnome.org
Tue Oct 1 15:56:39 PDT 2013
On 30 September 2013 17:11, Chuck Crisler <ccrisler at mutualink.net> wrote:
> I can't remember exactly, but there is an option in the encoder structure to
> instruct the VPU encoder to generate an I-Frame. Just make sure that you
> clear the flag after the I-Frame is generated. Of course, the structure item
> name may vary depending on which VPU you are using. Your encoder element
> probably already controls when to generate an I-Frame. When I worked with a
> Freescale VPU we had to determine the I-Frame rate ourselves, the encoder
> didn't count the frames.
Hi Chuck,
thanks for the hint. As you seggested, nForceIPicture=1 is the one
needed to generate the keyframe.
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:
0:00:20.366602668 23704 0x20120 WARN h264parse
gsth264parse.c:926:gst_h264_parse_handle_frame:<h264parse0> no SPS/PPS
yet, nal Type: 1 Slice, Size: 28105 will be dropped
I checked and seems that the headers are generated only one time in
the beggining of the stream, do you know if there is anything I can do
to tell the vpu to generate new headers again?
Thanks
>
> On Thu, Sep 26, 2013 at 8:25 PM, Javier Jardón <jjardon at gnome.org> wrote:
>>
>> Hi,
>>
>> I need to generate a keyframe in a specific time.
>> Looking to the code of vpuenc [1], seems that it doesnt handle events from
>> downstream (GST_EVENT_CUSTOM_DOWNSTREAM) to check if the event request
>> a keyframe:
>>
>> gst_video_event_is_force_key_unit (event)
>>
>> (and no, it doesnt derive from the GstVideoEncoder baseclass class)
>> This can be easily implementable but my question is:
>> Any of you know the specific option I have to pass to the vpu to
>> generate a keyframe? Or any other way? I read about
>> encparam->forceIPicture , but Im not sure Im looking in the correct
>> direction
>>
>> Could someone help me with this?
>>
>> Thanks
>>
>> [1]
>> http://download.ossystems.com.br/bsp/freescale/source/gst-fsl-plugins-3.0.7.tar.gz
>> --
--
Javier Jardón Cabezas
More information about the gstreamer-devel
mailing list