High data usage and long wait time while playing Opus files from SMB share

Issue description:

Symfonium uses an unusual amount of data while taking a long time to start playing 128k Opus files on a Samba share.

After tapping on a single 5 MB Opus file (With no external cover jpg/png files), I have to wait 10-15 seconds for playback to start, while the data usage on the app’s info page keeps climbing up at around 4 MB/sec. Android eventually reports 42 MB of foreground data used after playback starts. (The high data usage only starts after I tap on a file; the app doesn’t use any data while idle.)

When I tap the same (currently playing) file again, another 20 MB of data is used and it still takes 10 secs for playback to start again. So the file is not being cached (Which is expected, but it just makes the high delay + data usage a bit more confusing).

For comparison, VLC starts playing instantly, and only uses ~6 MB after letting it buffer the entire file.

I’ve tried toggling:

  • Wifi only image downloads
  • Scrape additional artist metadata
  • Transcoding engine
  • Prefer internal decoder

Battery optimizations were also turned off instantly after installing the app.

Logs:

Upload description: zazizu

Additional information:

 
Symfonium version: 12.3.5a
Samba version: 4.17.12-Debian
Files encoded with opusenc from opus-tools 0.2-34-g98f3ddc
 

Reproduction steps:

 

  • Install app
  • Add SMB share
  • Wait for metadata and album art to get cached
  • Close app
  • Switch to mobile data
  • Reopen app
  • Tap on a track
     

Media provider:

Samba

Screenshots:

     

You can enable playback cache to actually cache media :slight_smile:

Current version have an issue with the transcoding engine settings, even disabled it does test and in your case it takes 12 seconds via ffprobe, no idea why it’s so slow, but you can join the beta so that disabling the engine will skip that part.

For the data usage you have a sync running so this takes data.

Thanks for the quick response ^^
Tried joining the beta but it was full, I will try later.
Also for the data usage, I since tried deleting app data and setting it up again, then waiting (on wifi) for all the metadata and album art to fully appear, which didn’t take too long since there’s only 20 tracks. Then turned off “Wifi only” and turned on “Disable library auto sync”, then relaunched app on mobile data. When I navigate through every menu and section, it uses barely any data (50 KB total), it only shoots up after I start playing a track. When I press the manual Sync button from the filter menu it syncs instantly and uses very little data as well.