quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
2k stars 886 forks source link

Audio is cut off early at the end of surah if been playing for a while #2392

Closed amynbe closed 9 months ago

amynbe commented 1 year ago

For example, start playback with Reciter Khalifa Taniji from page 45. Let it play until the end of surat al baqarah. The final verse will be interrupted a few seconds before the end and move on to the next surah.

There seems to be some increasing de-synchronisation between the audio and text over time. The longer it's been reciting, the bigger the cut off amount.

ahmedre commented 1 year ago

cc @nacer80 @benomaire - may one of you check this please? جزاكم الله خيراً

nacer80 commented 1 year ago

ان شاءالله

benomaire commented 1 year ago

Seems to be specific to Sheikh Khalifa Taniji

nacer80 commented 1 year ago

السلام عليكم ورحمة الله وبركاته It seems like codec issue. Please @ahmedre can you make recoding to Cheikh Taniji mp3's files.

ahmedre commented 1 year ago

وعليكم السلام ورحمة الله وبركاته just checked this on iOS where they don't need reencoding, and it's wrong there also. I then checked the audio file for sura Baqarah and the time for the ayah 45 is 13 minutes and 58.5 seconds, which is at "أفلا تعقلون", instead of "واستعينوا"

benomaire commented 1 year ago

Connecting the dots from previous posts, the audio is damaged (dropped frames) and should be replaced (for all Suras) Possible alternatives in order of my preference:

  1. Contact the reciter to acquire original recording files. (I believe he is the current head of holyquran.shj.ae)
  2. https://alteneiji.net/albums/ (19kbps) (Duration: 02:03:03.98)
  3. http://www.el-moslem.com/telawa.php?id=100 (32kbps) (Duration: 02:02:38.07)
  4. https://en.islamway.net/collection/308/al-mushaf-al-murattal (normal quality 32kbps seems to match the previous option) (Duration: 02:02:38.15)
  5. https://en.islamway.net/collection/308/al-mushaf-al-murattal (high quality 128kbps) (Duration: 02:01:53.27)
  6. Re-encode the current edition that we have (e.g. lame --cbr -b 56 -t -q 0 002.mp3) and redo the timing (Duration: 02:00:51.77)

Note that all 3,4,5,6 seem to originally contain dropped frames that are skipped during encoding. By looking at their durations, 3 and 4 have a little number of dropped frames, and 5 has more dropped frames, and 6 has even more dropped frames

nacer80 commented 1 year ago

وعليكم السلام ورحمة الله وبركاته JazakumAllah khairan I agreed with 5 and 6.

ahmedre commented 1 year ago

وعليكم السلام ورحمة الله وبركاته جزاكم الله خيراً I saw that Ayah has this reciter and tried the end of sura Baqarah there that one looks okay to me. If you all think this one is okay, can use their timings and mp3 here, since the brothers share their data with me.

جزاكم الله خيراً والسلام عليكم

benomaire commented 1 year ago

The version of Ayah

So it is the quickest fix, and should be fine for long term as well.

والله أعلم

nacer80 commented 12 months ago

وعليكم السلام ورحمة الله وبركاته

Baraka'Allaho fik Akhi @benomaire . I agree with 5, and Insh'Allah I will create the new timing for Surah Al-Baqarah. وجزاكم الله خيرا

mdetamo82 commented 12 months ago

Assalamualaikum Warahmatullahi Wabarakatuh @nacer80 can you create timing for this audio file and send to via email mdetamo82@gmail.com [shatri with amharic audio language] (https://quran.nebatyiwu.com/shatri_with_amharic_audio_translation.zip) jazakallah

ahmedre commented 11 months ago

replaced sura Baqarah and the timing file.

benomaire commented 11 months ago

replaced sura Baqarah and the timing file.

That is not enough. You should replace ALL files. It did not take me long to hear dropped frames in Surat Aali-3imran, and for the synchronization to be off. Listen for example to Ayat 17, 20, 28, 44, 45, 55.

nacer80 commented 11 months ago

وعليكم السلام ورحمة الله وبركاته

I prefer to use: https://en.islamway.net/collection/308/al-mushaf-al-murattal The quality of mp3's files is batter than Ayah files.

ahmedre commented 11 months ago

وعليكم السلام ورحمة الله وبركاته ok - would you be able to prepare a database of timing files? جزاكم الله خيراً والسلام عليكم

ahmedre commented 9 months ago

replaced all these files al7amdulillah. closing.