namida icon indicating copy to clipboard operation
namida copied to clipboard

[FEATURE REQUEST] Add playback of APE files

Open Antiwh0re opened this issue 1 year ago • 15 comments

Is your feature request related to a problem? Please describe. I can't play my files in ape (Monkey's audio) format.

Describe the solution you'd like I'd like the app to properly recognize and play ape files.

Describe alternatives you've considered None.

Additional context As you're now using ffmpeg for playback, I assume it's not hard to make Namida play ape files as well. It's a popular lossless audio format, so lack of its support is a missing core function.

Apps AIMP for Android.

Antiwh0re avatar Oct 22 '24 20:10 Antiwh0re

can you provide a sample file?

MSOB7YY avatar Oct 26 '24 16:10 MSOB7YY

What sample file? Audio in APE format?

Antiwh0re avatar Oct 27 '24 08:10 Antiwh0re

@Antiwh0re yesss

MSOB7YY avatar Oct 27 '24 20:10 MSOB7YY

Here's a magnet link to a single in APE format: magnet:?xt=urn:btih:9EB31D7A839F4465D44FAD6480774253ECFCF4E9&tr=http%3A%2F%2Fbt.t-ru.org%2Fann%3Fmagnet&dn=(Electronic%2C%20Oldschool)%20Opus%20III%20-%20It's%20a%20fine%20day%20(single)-%201997%2C%20APE%20(tracks)%2C%20lossless

Antiwh0re avatar Oct 28 '24 08:10 Antiwh0re

By the way, besides not playing APE files, Namida also doesn't read their tags properly. Now the track number and name of each song is listed in the library as a separate artist.

Antiwh0re avatar Oct 28 '24 08:10 Antiwh0re

alr i will investigate that

MSOB7YY avatar Oct 31 '24 19:10 MSOB7YY

It happens to most files, but not all of them. Select few are shown in the library the right way like those I've linked to.

Antiwh0re avatar Nov 01 '24 09:11 Antiwh0re

So have you tried implementing this feature? And have you thought of adding it to the next release?

Antiwh0re avatar Nov 15 '24 08:11 Antiwh0re

not yet. its not a feature i can corely work on but im gonna see if its possible to support it by the internal player

MSOB7YY avatar Nov 15 '24 13:11 MSOB7YY

By internal player you mean ffmpeg? If so, then it's already supported. The developer of another audio player wrote that playing ape files in Android natively (he uses a library exo-something it seems) is a problem because the devs of Android itself haven't programmed it to recognize ape as audio files (unlike flac there's no appropriate mime type for it or something). He also wrote that proprietary players usually bypass this Android defect by calling ffmpeg for every file, which recognizes everything. As you're using ffmpeg now, this implies that you can implement it with little effort.

Antiwh0re avatar Nov 16 '24 10:11 Antiwh0re

@Antiwh0re exoplayer doesnt support ape format yet although ffmpeg supports it, it still doesnt play it even while its on "prefer" DefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER not sure what to do exactly except for trying to update ffmpeg extension, but since i can't build it, and the new prebuilt versions are broken, im kind of stuck in between hagahgaha

MSOB7YY avatar Nov 17 '24 20:11 MSOB7YY

Why don't you ask ffmpeg devs? If the devs of proprietary players manage to bypass this defect, the solution must be out there. For example I've used AIMP for Android some time ago and it was playing APE fine.

Antiwh0re avatar Nov 20 '24 13:11 Antiwh0re

"ask ffmpeg devs" 💀💀 yah im sure its not so hard if exoplayer or ffmpeg supported that, the thing is i can't edit their code etc to support it, and i dont even know

if there are other open source android players that support it then it might give us hope

MSOB7YY avatar Nov 22 '24 18:11 MSOB7YY

I'm saying that it does support it, so there must be a way of making it work without rewriting their code (I'm sure the devs of AIMP and others are not doing that). And I'm offering you to ask them (ffmpeg) how to make it work. As for other open players, I've tried a lot of them and haven't seen one that plays APE. AIMP has closed source.

Antiwh0re avatar Nov 23 '24 09:11 Antiwh0re

--enable-demuxer=ape --enable-decoder=ape this can be done while building ffmpeg extension for exoplayer, but again i still need to build my own and not use old prebuilt version i might look into it later

MSOB7YY avatar Nov 26 '24 20:11 MSOB7YY