OnlyInAmerica / FFmpeg-Android

Script and Instructions for building FFmpeg for Android
83 stars 30 forks source link

avcodec_find_encoder returns null #6

Closed marudhupandiyang closed 7 years ago

marudhupandiyang commented 9 years ago

I tried recompiling ffmpeg with rtmp support with this https://github.com/OnlyInAmerica/FFmpeg-Android/blob/master/build_ffmpeg_with_librtmp_for_android.sh

However this line avcodec_find_encoder(CODEC_ID_H264); always returns me null. i useFFMpegwrapper.c from openwatch, but this avformat_write_header gives me invalid header

I also tried to print all codecs through the below code(ensured avcodec_register_all() is called before), but it returned empty?? while(codec = av_codec_next(codec)) { LOGI("Registered codec name %s" , codec->name); }

Any help on this..