vanilla-music / vanilla

Vanilla Music Player for Android
GNU General Public License v3.0
1.15k stars 291 forks source link

Vanilla + Hiby R6 gen 3 + a particular Flac file always stops at 39/40 seconde #1168

Open lionmarsupial opened 1 year ago

lionmarsupial commented 1 year ago

Description

I installed Vanilla Music Player 1.3.0 on a Hiby R6 gen 3 and I have an issue with one particular music file.

Somewhere near 39 sec or 40 sec with this one file, the music just stops and can't be resumed.

I tested the same file with the same device Hiby R6 gen 3 with Vanilla Music Player 1.2.2, same issue. I tested the same file with the same device Hiby R6 gen 3 with Vanilla Music Player 1.1.0, same issue.

I tested the same file with another player (VLC) on the same device (Hiby R6 gen 3), no issue, the file is played all allong. I tested the same file with another android device (on a Lg V40 ThinQ) using a Vanilla Music Player 1.1.0 and 1.3.0, no issue, the file is played all allong.

That one flac file on this particular device Hiby R6 gen 3 on any version of Vanilla Music Player 1.1.0, 1.2.2 and 1.3.0 stops playing every time at 39 second precisely, and can't be resumed. 100% reproductible.

I ran the command "flac -wst File.flac", it didn't return anything.

I would need help to be able to identify the issue Vanilla Music Player meets on this particular device with these particular files.

Thanks a lot for help

Steps to reproduce the issue

Playing the music from the beginning until the player will stop playing by itself at exactly 39 to 40 second on an Hiby R6 gen 3 with at least one of this version of Vanilla Music Player 1.1.0, 1.2.2 or 1.3.0.

Screenshot / Video (If applicable)

https://user-images.githubusercontent.com/127300168/224496356-41064e1c-a13b-498b-8cd9-165bdf63fad4.mp4

lionmarsupial commented 1 year ago

Activating "Enable readahead" Option in "Miscellaneous features" didn't solve the issue. Activating "Disable Gapless Playback" option in "Audio" didn't solve the issue.

Ceremony64 commented 1 year ago

Is this a device specific issue or does this also occur on another device, like a regular android smartphone?

I am not familiar with the hiby, but is the behavior the same regardless which output option (speaker, headphone jack or bluetooth) is used?

You could also try reencoding it losslessy and see if that changes anything, even try other codecs, be it lossless wav or lossy mp3.

Also, do other players also have issue playing this file?

lionmarsupial commented 1 year ago

Only on this device, Vanilla issue, same file no error on other player on the same device.

Edit :

I don't understand the point to convert in another format, actually, vanilla meets a segfault or something like that on this device with this file while other players do not. There is surely something that can be improved in Vanilla itself (that is specifically why I reported the issue in GitHub). What can I do to figure out what kind of issue Vanilla faces with those files ? Is there a way I can access to some kind of log ?

Ceremony64 commented 1 year ago

Well, you could just reencode the file with the same codec, frequency and bit depth (lossless) or use a different codec altogether to seewhether the issue is the decoding itself or related to the resulting bitstream or waveform. You openend another ticket ( #1170) about playback issues with mp3 files.nSo maybe the codec isn't the issue for either problem but something else entirely.

I am just suggesting some things to determine the underlying issue as I don't have neither the player nor the music file.

As for (debug) logs, I dunno if vanilla itself generates any, but maybe there is something in the logcat? 🤔

lionmarsupial commented 1 year ago

Yes, the other issue is weird and 100% reproducible as this one. I will try this end of this day. I don't know logcat, I will see also. Thanks for your replies (it helps).

lionmarsupial commented 1 year ago

logcat doesn't show any message when the issue occurs (nothing). I used ffmpeg to change the compression and the bitrate : No problem at all, the file is played without any issue.