bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
2.01k stars 845 forks source link

Incorrect duration in 22kHz mono mp3 on Android #1811

Open amenders opened 5 months ago

amenders commented 5 months ago

Checklist

Current bug behaviour

I am trying to play back an mp3 that appears to be in the supported criteria for Android. However, while the playback time of the track is 4:09 based both on playback time and ffmpeg extracted information, the player shows a playback duration of over 18 minutes. Other mp3s (44.1kHz, stereo) show the proper duration. The problematic file (see below) is an mp3, mono, 22kHz sample rate, and 73 Kbps VBR (see url below).

Expected behaviour

The file should reflect the correct playback time.

Steps to reproduce

No response

Code sample

Code sample ```dart void main() { } ```

Affected platforms

Android

Platform details

Samsung Galaxy A15, Android 14

AudioPlayers Version

6.0.0

Build mode

No response

Audio Files/URLs/Sources

https://appdata.jesuslifetogether.com/appdatafiles/mp3s/audio/1164_lilies_sparrows_dont_have_energy_leaks/las05t_the_conservation_of_energy.mp3

Screenshots

No response

Logs

Flutter Doctor

[✓] Flutter (Channel stable, 3.19.3, on macOS 14.2.1 23C71 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.89.1)
[✓] Connected device (5 available)
[✓] Network resources

Related issues / more information

No response

Working on PR

no way

sethmfuller commented 5 months ago

Yes, any help on this would be much appreciated!!