how to use ffmpeg/libavcodec/libstagefright

前端 未结 2 1496
栀梦
栀梦 2020-12-14 10:35

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

2条回答
  •  轮回少年
    2020-12-14 11:20

    Im actually working on providing stagefright to my ffmpeg library on Android. I made some changes to original libstagefright.cpp from ffmpeg/libav but it is still not stable. After stabilizing it I will create pull request for ffmpeg/libav team. You can look around on my project: in "hwaccel" branch.

    It is available at AndroidFFmpeg/FFmpegLibrary/jni/ffstagefright.cpp directory.

    To use this library you have call standard ffmpeg methods and open insteed of standard h264 codec libstagefright_h264 codec:

    AVCodec *codec = avcodec_find_decoder_by_name("libstagefright_h264");
    

提交回复
热议问题