By the way, ITU-T-REC H264 , section 7.3.2.1 "Sequence parameter set RBSP syntax" and 7.3.2.2 "Picture parameter set RBSP syntax" do not look like they contain information about picture dimensions.
 
https://www.itu.int/rec/T-REC-H.264-200305-S/en
 
And func ff_h264_decode_extradata() called by avcodec_open() doesn't fill H264Context->width and height .

What if decoder just receives dimensions from the "gop_header" ?
 
-- 
С уважением,
Слободенюк Александр Игоревич
 
контактный телефон: +7-925-050-64-62
 
 
 
30.05.2016, 12:24, "Sampsa Riikonen" <[email protected]>:



On 30.05.2016 11:49, Carl Eugen Hoyos wrote:

 Sampsa Riikonen <sampsa.riikonen@...> writes:

 I do not want to decode anything, just to get the codec
 parameters from sps and pps.
 What other word than "decoding" would you use to get the
 codec parameters from sps and pps?


Sorry I was not clear enough..

I pass sps and pps packets to the decoder => the AVFormatContext that is
handled by the decoder is empty

Only when I pass the following IFrame, the AVFormatContext is being
populated

(i.e. i need sps,pps & iframe, instead of just sps and pps)

I was wondering if there is a way to avoid that I frame decoding.


 Carl Eugen

 _______________________________________________
 Libav-user mailing list
 [email protected]
 http://ffmpeg.org/mailman/listinfo/libav-user


_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to