I want to get audio bitrate from video file and save it. Is it possible to get audio track bitrate alone form video file using ffmpeg?
if possible then how to do it?...Any suggestion will be appreciated.
Maybe this would help you:
@Override
public void onProgress(String message) {
Log.e("ryeure", "onProgress: ");
String findWithinHorizon = new Scanner(message).findWithinHorizon(Pattern.compile(".?fltp,\\s([0-9]*)\\skb/s"), 0);
Log.e("ryeure", "onProgress: findwithinhorizon---" + findWithinHorizon);
if (findWithinHorizon != null) {
String intValue = findWithinHorizon.replaceAll("[^0-9]", "");
result_audioBitrate = Integer.parseInt(intValue) * 1000;
}
}
@Override
public void onFailure(String message) {
Log.e("ryeure", "onFailure: onfailure--" + result_audioBitrate);
audio_origin_bitrate.setText("Origin bitrate : " + result_audioBitrate + " kb/s");
audio_new_bitrate.setText("New bitrate : " + result_audioBitrate + " kb/s");
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.