Closed mayconhvab1 closed 3 months ago
I'm afraid your request doesn't really make sense because it seems you are misinformed about a few things, so I'll try to clarify:
1) ReFreezer does not encode any files. All files, be it MP3 or FLAC, are directly streamed from the Deezer servers.
- When the files are being downloaded, ReFreezer saves these original files and the only changes that are made (besides decryption), is the metadata that is added to the files. The metadata is added using the jaudiotagger library, which inserts the metadata directly into the binaries, without reencoding. So whatever encoder version you'll find in the downloaded files, is the encoder that was either used by Deezer themselves, or by the label/artist that delivered the file to them.
- When being played, the original streams (regardless of the selected quality) are again being streamed directly from the Deezer servers and playback is handled through the [just_audio](https://pub.dev/packages/just_audio) dart package, which in turn currently uses the [andoid exoplayer 2.18.7](https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md#2187-2023-05-18).
The only change I deliberately made, is to include a binary (which I compiled myself) of the latest version of the [Exoplayer's FLAC extension](https://github.com/google/ExoPlayer/tree/release-v2/extensions/flac) to enable FLAC playback on older android versions (< android 10). The libflac library included in this build was 1.3.2 and this is used for playback.
For android devices running android > 10, this flac extension lib would not be needed, as full FLAC playback is integrated in the os from that point, but I want to keep compatibility with older devices and the impact on playback sound quality is basically non existant.
I do not intent to update the Exoplayer's FLAC extension to compile with the latest libflac version. This is both way out of scope of ReFreezer and pointless as Exoplayer 2 is deprecated.
2) The highest quality that Deezer currently offers, is 16-bit/44.1kHz.
- All HiFi music files from Deezer are encoded in lossless format at 16-bit, 1,411 Kbps. The final bitrate of the FLAC files is only relevant to the size of the files.
Regardless of the encoder version used, the FLAC file can always be extracted back to their original 16-bit, 1,411 Kbps WAV/PCM files. The bitrate of the FLAC files is just a reflection of how efficiently the lossless file was compressed and is generally more dependant on the compression level used, than on the encoder version used...
- I have no information on how the mp3 files from Deezer are encoded, but in any case, ReFreezer does not change the files received from the Deezer servers.
If you are unhappy with the quality of their mp3 encodes, I can only recommend you download the lossless FLAC files and convert them to MP3's yourself with your favorite encoder and settings (although if quality maters that much, just stick to the lossless FLAC files...)
- "Adding" support for 48,000 Hz audio is a moot point as Deezer doesn't offer it.
3) I currently have no plans to add any DSP's. If you know of any good flutter andoid DSP packages, I'm willing to have a look at them. But as I'm no audio engineer or even audiophile in general, I wouldn't know if any DSP actually improves audio or not (this is probably subjective). It might be better to use specialized 3rd party apps that replace android's internal equalizer to achieve your desired effects...
No more reaction, so I'm assuming my response clarified the issue and it can be closed.
have been downloading a lot of music using Deemix since 2021, but unfortunately it has been discontinued.
Thanks to this app, I have been restoring the audio from my playlist on my Windows PC and the 320 kbps mp3 quality has improved significantly according to the updated information on the lame and mp3 codecs.
What you can do is use FFmpeg version 7.0.2 and convert the songs you download from the Deezer website to lame 3.100 or keep the quality of the old codec that comes with the mp3 audio, most of which are lame 3.99r or 3.99.5.
I believe that if you use FFmpeg to download the songs according to the API and the latest information on the Deezer website, they can improve significantly, both for mp3 and for flac.
One thing I noticed is that Deezer does not support audio at 48,000 Hz, could you add it? (through FFmpeg 7.0.2 conversion or BtbN master).
It would be interesting if you compiled at least once a month the audio codecs for mp3 128, 320 kbps and FLAC at 48,000 hz or, in other words, 44,100 hz.
It may not make much of a difference in terms of sound, but in terms of updating the codec, which is lame for mp3 and lav 61.5.101, which is the latest codec from the BtbN FFmpeg master, it would help a lot.
A plugin or .dll that can be added to improve the stereo of the audio would also be great, without modifying the mp3 and flac formats themselves.
Good quality information such as libflac 1.4.3 can also be added, but that is up to you, but I support you adding libflac 1.4.3 for Android to your app to download audios and playback for this 1.4.3 libflac.
I don't know how the Deezer web API works with the app, but I believe that a quality higher than 1,000kbps for flac, in libflac 1.4.3 or the FFmpeg codec for flac lav 61.5.101 can be added.
And for mp3 the lame 3.100, this can be easily viewed with mediainfo.
Thus maintaining the purest quality of Deezer audio downloads that can be added to your wonderful app.
I apologize if I'm asking too much, but your app is great and can get better and better, because this is just the beginning and the beginning of it.
A big hug and thank you very much.
Maycon Honório, greetings from Brazil.
For a great love for high quality music.