I just have a question about how to use ffmpeg/libavcodec/libstagfright.cpp
: I try to avcodec_open2(st->codec, codec)
when I have use ffmpeg to set codec->id
as CODEC_ID_H264,codec->name
as libstagefright_h264
,that means I will open
AVCodec ff_libstagefright_h264_decoder
.
but when Stagefright_init->OMXCodec::Create->configureCodec-> initOutputFormat(meta)
, the process just Quit ! It is a bazinga !
I knew that meta is Metadata, its data comes from codec->extradata
, and in here, it means sps and pps, am I right?
How can I use libstagefright
sucessfully in ffmpeg? Can somebody give me an example?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…