How to retrieve video AudioEncoder and VideoEncoder of a video file in android? -


how audioencoder , videoencoder i.e h263,h264,aac,amr etc. of video file in android? mediametadataretriever has no such functions retrieve these information.

you can use ffmpegmediametadataretriever (disclosure: developed it) retrieve audio/video codec. here corresponding code:

ffmpegmediametadataretriever mmr = new ffmpegmediametadataretriever(); mmr.setdatasource(muri); string acodec = mmr.extractmetadata(ffmpegmediametadataretriever.metadata_key_audio_codec); string vcodec = mmr.extractmetadata(ffmpegmediametadataretriever.metadata_key_video_codec); mmr.release(); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -