Diving into seeking issue with MP3 files

Playing stops before the end of the track

Seeking within MP3

$ mpck ./track_with_issue.mp3
SUMMARY: track_with_issue.mp3
version MPEG v1.0
layer 3
average bitrate 279491 bps (VBR)
samplerate 44100 Hz
frames 31503
time 13:42.935
unidentified 0 b (0%)
errors none
result Ok
$ mpck ./other_track.mp3
SUMMARY: ./other_track.mp3
version MPEG v1.0
layer 3
bitrate 160000 bps
samplerate 44100 Hz
frames 131786
time 57:22.573
unidentified 0 b (0%)
errors none
result Ok

Disclaimer.
Please, keep in mind that calculations have been simplified to make them easier to understand and are not 100% accurate.

Solution time!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store