-
Notifications
You must be signed in to change notification settings - Fork 6k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTS audio doesn't play using FFmpeg extension in 2.14.2 #9239
Comments
@andrewlewis can you take a look? |
It looks like the detected audio capabilities include DTS passthrough output, but it seems very strange that that would be supported on a phone and indeed initializing the audio track for encoded DTS output (I think this is
|
Issue: #9239 #minor-release PiperOrigin-RevId: 388437614
5e4cd12 should fix this by making it so that we only use |
@andrewlewis I'm still trying to make sense of what Here's a config file that matches the reported capabilities using the API:
Other, newer OnePlus 9 Pro will probably report similar formats (DTS), while the specs lists AC3 like formats that aren't listed in the config: Even device like Xiaomi Mi 10 Pro https://dumps.tadiphone.dev/dumps/xiaomi/cmi/-/blob/qssi-user-11-RKQ1.200826.002-V12.5.4.0.RJACNXM-release-keys/vendor/etc/audio/audio_policy_configuration.xml#L128-133 reports DTS while it misses AC3. I can't really be shure what the real capabilities of the device are but supporting AC3 makes (because of streaming content) much bigger sense than DTS. |
Maybe the AC3/E-AC3 decoders are listed as |
Issue: #9239 PiperOrigin-RevId: 388437614
After updating to ExoPlayer 2.14.2, I've noticed an issue with playback backed by the FFmpeg extension. I was able to play DTS audio just fine with 2.14.1 while it's no longer working on my device with 2.14.2.
I use the FFmpeg extension with SimpleExoPlayer enabled like this:
I can reproduce it with any media containing DTS (I didn't test much any other formats), including test video encoded in FFmpeg (like this one: https://brouken.com/tmp/sync-dts.mp4).
When I hit play, I get error like this one (see longer logcat.txt):
While with connected headphones (Samsung Galaxy Buds), the video just doesn't play.
I can reproduce this issue only on this real device (I cannot reproduce it in emulator). Playback seems to work when I enable FFmpeg extension using
EXTENSION_RENDERER_MODE_PREFER
. It also starts to work when I revert 3ae4c1b.(I can include a bugreport later, when I will have some more time.)
The text was updated successfully, but these errors were encountered: