-
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
Building flac extension #2352
Comments
Apparently it is because exoplayer (or flac?) is using an outdated verison of libncurses. Now it fails with an even more cryptic error. It would be so great if you could just upload the dependencies to maven.
|
I had the same problem. There are 2 ways:
But, unfortunately, this extension does not work properly on all devices (on the Sony Xperia XA I hear something like white noise. On Samsung - OK). |
What I dont get is that android supports flac itself. There is even the |
There is a fix on the way which adds "-DHAVE_SYS_PARAM_H" to LOCAL_CFLAGS in extensions/flac/src/main/jni/Android.mk file.Until it arrives to github repository you can try to add it to your local copy manually. @PaulWoitaschek, because of issues with FLAC format and the way android platform handles it we can't use native support. |
Right. Android doesn't currently expose a FLAC decoder through MediaCodec by default (individual OEMs may choose to add one). It instead extracts+decodes FLAC to PCM as a single step under MediaExtractor, which ExoPlayer doesn't use. It's the only format for which this unusual setup is used in the platform, as far as I know :(. The "proper" fix would be for the platform to expose a FLAC decoder through MediaCodec in the same way as decoders are exposed for other format types. If anyone's sufficiently motivated, you could perhaps propose such a change via AOSP. |
Issue: #2352 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146469547
Hi ! Did you find an alternate way to play flac on devices that get white noise when playing a flac track ? I have a device that play flac track but it's just white noise and I don't know how to detect if the device will play nicely flac file or if it won't. I know that there is Vanilla Player on GIT that play flac nicely. Unfortunately, it's an GPL licence project, not an Apache2 one. edit : This code solve my issue with this device :
Source : #2873 Thank you |
I closely followed your instrution on how to build the flac extension but at the last part it fails with missing
libncurses.so.5
. How can I build the extension? I'm using the latest ExoPlayer version with an up-to-date Arch LinuxThe text was updated successfully, but these errors were encountered: