[Libav-user] Getting SPS and PPS-information from x264 encoding
Kalileo
kalileo at universalx.net
Wed May 30 04:07:50 CEST 2012
On May 29, 2012, at 20:26 , Christian Brümmer wrote:
> "Cant be that hard - or? "
>
> Okay now im pretty sure it is:
>
> I read AVCodecContex.extradata contains the informations i need. For decoding i used that code -> http://cgit.lscube.org/cgit.cgi/feng/tree/src/media/parser/h264.c#n218 - in a slightly modified way (replaced glib functions with e.g. libavs base64.h). Finally the decoding stuff is running - BUT...
>
> my AVCodecContext.extradata_size == 0 <- what the heck?!? So no data for decoding and really no idea left how to get those informations.... WHAA!
>
> I make desperate efforts but i cant get into that...
>
> At least i need another hint. Im not asking for complete solution - its enough to know roughly the right way!
From what I think I understood extradata contains what you expect when your source is a video format with a global header.
What's the source format you use for your tests?
More information about the Libav-user
mailing list