ffmpeg - av_guess_format h264 returns NULL on Android -


executing code:

av_log_set_callback(_log_callback); av_register_all(); avcodec_register_all(); log(avcodec_configuration()); avoutputformat * fmt = av_guess_format( "h264", null, null ); 

and showing in log file next configuration:

 --target-os=linux --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-avfilter --disable-everything --enable-libx264 --enable-encoder=libx264 --enable-decoder=h264 --enable-gpl .... 

av_guess_format returning null.

any suggestion? many thanks

try list registered codecs:

avcodec * codec = null; while(codec = av_codec_next(codec)) {     log(codec->name); } 

upd

you can create encoder h264:

avcodec * avcodec = avcodec_find_encoder_by_name("h264"); avcodeccontext * avcodecctx = avcodec_alloc_context3(avcodec); // fill required fields in avcodecctx avdictionary * opt = null; avcodec_open2(avcodecctx, avcodec, &opt); 

you not have formats, because specified option --disable-everything


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -