nicorac / bcr-gui

BCR-GUI is a companion app for the great BCR (Basic Call Recorder) Android application and other supported ROMs with embedded call recorders.
https://coolsoft.altervista.org
GNU General Public License v3.0
146 stars 7 forks source link

Audio playback takes a long time to start #28

Closed Serega007RU closed 9 months ago

Serega007RU commented 9 months ago

Describe the bug If the audio time is more than 30 minutes, then BCR-GUI takes too long to load it. I have a call that lasted about 30 minutes, the BCR-GUI loads it about 15 seconds, which seems to me quite slow. I tested in another application that can play audio (Google Files) and it instantly opens this audio, without delay

To Reproduce Steps to reproduce the behavior:

  1. Record an audio call longer than 30 minutes
  2. Try opening it in the BCR-GUI
  3. You will notice that audio playback will not start immediately, you will have to wait more than 15 seconds

Expected behavior Audio playback will start immediately without waiting

Screenshots Not required

Versions (please complete the following information):

nicorac commented 9 months ago

I have the same phone available (Xiaomi Redmi 5 Plus, aka Redmi Note 5), so I've made a test on it. It has a custom A13 ROM installed (SparkOS, A13).

Tested with a 01h:03m:08s long .m4a file and... it starts immediately, no delay 😔. It also skips immediately forward/back when dragging the audio slider.

My questions:

Serega007RU commented 9 months ago

type of recording: OGG/Opus bit rate: 48 kbps sample rate: 48000 Hz

perhaps I increased the bitrate or sampling rate, but I didn't touch the rest, that is, these are basically the default settings set by BCR

ROM: PixelExperience

nicorac commented 9 months ago

I did some test on my RN5P.

I converted to .oga the recording above (+1h long) with ffmpeg, setting the same bitrate/samplerate as yours: ffmpeg -i "test.m4a" -c:a libopus -ar 48k "test.oga"

The resulting file size is about 33MB... and it plays/skips immediately, no delay 😔

I'm wiping the phone to test PixelExperience (PixelExperience_Plus_vince-13.0-20231005-1239-UNOFFICIAL.zip)...

Serega007RU commented 9 months ago

No need to wiping the phone on PixelExpiriens for the sake of checking this issue. Maybe the problem is me. I'm using a not-quite-original version of PixelExpiriens, since its official support was discontinued a long time ago. Maybe the ROM curve I'm using or a problem with my phone.

I tried using another audio player, specifically Mx Player Pro, and there's exactly the same problem, also hanging for about 15 seconds when starting audio playback. Although it is strange that Google Files copes with this without problems.

Can I try to test some publicly available audio recording? Take one from the Internet? My record contains confidential information, so I can't upload it here for you to check it.

nicorac commented 9 months ago

No need to wiping the phone on PixelExpiriens for the sake of checking this issue.

Nevermind, it's a dev phone and I'm used to flash it 😉

I've just completed the test and... it works, no issues.

since its official support was discontinued a long time ago

Yes, the "official" one was discontinued, but there still are some "unofficial" images, well known by the community. My preferred ones come from Anandhan07x, a well known and respectable ROM developer.

He's building PixelExperience and other ones; my preferred one is SparkOS 13.8.

PixelExperience-Plus: https://sourceforge.net/projects/anandhan07/files/PixelExperience/thirteen-plus/ SparkOS (OFFICIAL): https://sourceforge.net/projects/sparkosofficial/files/vince/ Telegram channel with lot of RN5P (vince) ROMS: https://t.me/vinceupdate