-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
bitrate missing in MediaFormat (Nexus 5 - Android 6.0.1) #15
Comments
Do you know of some way to estimate bit rate for AAC audio tracks? Like we're doing for video in |
@natario1 not really. I did a test using a default bitrate and it works on the nexus 5 but did also test with several android devices and sometimes the |
@carlosmonzon could you or @martykan or anyone else here provide a video file that has this issue? |
@natario1 Here is the link for the video file. It was taken using a Nexus 5 (Android 6.0.1) |
I have downloaded this file through the link and tried, but I have found no issue. Can you confirm it is the right one? |
I was able to reproduce this on API 23, thanks! |
@natario1 I'm was able to test with the latest version |
Hi 馃憢 ,
I've got this exception while testing with a Nexus 5 (Android 6.0.1)
E/Transcoder: Fatal error while transcoding, this might be invalid format or bug in engine or Android. java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference at android.media.MediaFormat.getInteger(MediaFormat.java:591) at com.otaliastudios.transcoder.strategy.DefaultAudioStrategy.getAverageInputBitRate(DefaultAudioStrategy.java:66) at com.otaliastudios.transcoder.strategy.DefaultAudioStrategy.createOutputFormat(DefaultAudioStrategy.java:39) at com.otaliastudios.transcoder.engine.Engine.computeTrackStatus(Engine.java:128) at com.otaliastudios.transcoder.engine.Engine.transcode(Engine.java:309) at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:121) at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:111) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
I had the chance to debug it and I found that the mediaformat map doesn't have any
bitrate
key, which is causing the issue. I tested with another device and everything is good. Can we have a default bitrate in this case?mediaformat map:
The text was updated successfully, but these errors were encountered: