Skip to content

[bug] hiccups between tracks in playing cue+flac files. #600

Closed

Description

@Wang-Yue

Issue description:

some albums could have a few tracks that plays continuously. This is pretty common in classical music (for instance, Beethoven 5th Symphony, Rachmaninoff's Rhapsody on a Theme of Paganini ).

When having the single CD as a whole flac file and an accompanying cue file, cmus would have a tiny gap between the tracks.

To reproduce this problem, choose any music (for instance, Eagle's Hotel California) you have as a wav or flac file. Then test using the following cue file:


TITLE "Test"
PERFORMER "Eagles"
FILE "hotel_california.flac" WAVE
  TRACK 01 AUDIO
    TITLE "Test"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Test"
    INDEX 01 00:01:00
  TRACK 03 AUDIO
 ...
  TRACK 57 AUDIO
    TITLE "57"
    INDEX 01 00:57:00
  TRACK 58 AUDIO
    TITLE "58"
    INDEX 01 00:58:00
  TRACK 59 AUDIO
    TITLE "59"
    INDEX 01 00:59:00

For each second there're high chances you'll hear a small gap in the music.

Activity

  1. karlek commented on Jan 10, 2017

    @karlek

    Reproduced in both cmus v2.7.1 and cmus v2.8.0-rc0.

  2. Wang-Yue commented on Jan 19, 2017

    @Wang-Yue
    ContributorAuthor

    ping

  3. mahkoh commented on Jan 21, 2017

    @mahkoh
    Member

    I've tested this with both flac and wav and the issue only occurs with the flac file so the problem is most likely in the flac plugin or the flac decoder itself.

  4. mahkoh commented on Jan 21, 2017

    @mahkoh
    Member

    Also note that the new cue parser does not care about the type of audio file. You might want to test this with mp3 or opus files.

  5. changed the title [-][bug] hiccups between tracks in playing cue+wav/flac files.[/-] [+][bug] hiccups between tracks in playing cue+flac files.[/+] on Jan 22, 2017
  6. Wang-Yue commented on Jan 22, 2017

    @Wang-Yue
    ContributorAuthor

    confirmed this is a flac plugin bug.
    wav plays fine.

    I haven't tried mp3/opus yet, as I don't have those libs installed.

  7. Wang-Yue commented on Apr 7, 2017

    @Wang-Yue
    ContributorAuthor

    is anyone interested in fixing this issue? I'm not familiar with libflac

  8. Wang-Yue commented on Apr 21, 2017

    @Wang-Yue
    ContributorAuthor

    tried libmad with mp3 file. same issue. although not as obvious as flac. but has similar hiccups if listened carefully.

    also tried ffmpeg. same issue with mp3 and flac file. wav plays fine.

  9. Wang-Yue commented on Apr 22, 2017

    @Wang-Yue
    ContributorAuthor

    I tried to output the everything the cue plugin writes to a single file. flac and equivalent wav would have very different result.

    sample
    cat test/hotel.cue
    TITLE "Test"
    PERFORMER "Eagles"
    FILE "hotel.wav" WAVE
    TRACK 01 AUDIO
    TITLE "Test"
    INDEX 01 00:00:00
    TRACK 02 AUDIO
    TITLE "Test"
    INDEX 01 00:00:10
    TRACK 03 AUDIO
    TITLE "Test"
    INDEX 01 00:00:20

    compare to wav, the flac file:

    1. first 36864 bytes are missing
      then two files start to have identical data. but,
    2. starting from 60380, a lot of redundant data copied from from wav location 55296

    So the problem is, the flac plugin never have sample-accurate seek function implemented.
    I'll file another bug. and link it to this one.

  10. Wang-Yue commented on Apr 22, 2017

    @Wang-Yue
    ContributorAuthor

    fixed by #679 and #680.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions