Cog skips to the next track instead of playing the file to the end #97

Closed
opened 2021-02-09 11:37:54 -03:00 by peczony · 4 comments
peczony commented 2021-02-09 11:37:54 -03:00 (Migrated from github.com)

Describe
During playback of some weird mp3s Cog skips to the next track instead of playing the file to the end. Example attached, play it around 1:17, and after a few seconds you hear a skip and Cog stops playing. Other players (foobar, Vox, or even Mega's web player) handle this better: they keep playing the file after a short pause (there might be a glitch in the file).

To Reproduce (delete if not applicable)
Steps to reproduce the behavior:

  1. Open an mp3 file: https://mega.nz/file/gZ0UBKbY#h165fa4rBWQeo9LAxsvfGHiZpT1Imw4NM-hEULvV7Fk
  2. Seek to 1:17
  3. Wait ≈5 secs
  4. Playback stops

Expected behavior
Playback continues after a short glitch

Version information:*

  • macOS version: 10.15.7
  • Cog version: Version 1396 (1396-ga6aaeafdc)
**Describe** During playback of some weird mp3s Cog skips to the next track instead of playing the file to the end. Example attached, play it around 1:17, and after a few seconds you hear a skip and Cog stops playing. Other players (foobar, Vox, or even Mega's web player) handle this better: they keep playing the file after a short pause (there might be a glitch in the file). **To Reproduce** (delete if not applicable) Steps to reproduce the behavior: 1. Open an mp3 file: https://mega.nz/file/gZ0UBKbY#h165fa4rBWQeo9LAxsvfGHiZpT1Imw4NM-hEULvV7Fk 2. Seek to 1:17 3. Wait ≈5 secs 4. Playback stops **Expected behavior** Playback continues after a short glitch **Version information:*** - macOS version: 10.15.7 - Cog version: Version 1396 (1396-ga6aaeafdc)
kode54 commented 2021-02-09 22:21:28 -03:00 (Migrated from github.com)

I think the simple solution will be to disable the MP3 support in the FFmpeg plugin. Then we need to replace Core Audio with something that actually supports streaming and not just local files.

I think the simple solution will be to disable the MP3 support in the FFmpeg plugin. Then we need to replace Core Audio with something that actually supports streaming and not just local files.
kode54 commented 2021-02-09 23:44:11 -03:00 (Migrated from github.com)

This should be fixed in source now.

This should be fixed in source now.
peczony commented 2021-02-12 18:30:45 -03:00 (Migrated from github.com)

How do I reproduce it locally with FFmpeg to report it to them? I tried playing the file with ffplay and it didn't stop after the glitch.

How do I reproduce it locally with FFmpeg to report it to them? I tried playing the file with `ffplay` and it didn't stop after the glitch.
kode54 commented 2021-02-12 19:40:00 -03:00 (Migrated from github.com)

You don't. It's clearly my bug. Which is totally fixed by either using Core Audio, or forcing users to stop using broken files.

You don't. It's clearly my bug. Which is totally fixed by either using Core Audio, or forcing users to stop using broken files.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: chris/Cog#97
No description provided.