After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794165 - FLAC decoding skips on a certain file
FLAC decoding skips on a certain file
Status: RESOLVED DUPLICATE of bug 785558
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.12.4
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-07 23:50 UTC by Ethan Glasser-Camp
Modified: 2018-03-16 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ethan Glasser-Camp 2018-03-07 23:50:48 UTC
I just ripped a CD using Soundjuicer, and the generated FLAC file plays badly in Rhythmbox. Specifically, at about the 17-second mark, the song skips ahead to about the 40-second mark. I can reproduce this behavior using

gst-launch-1.0 --gst-debug-level 2 --verbose  filesrc location=filename.flac ! flacparse ! flacdec ! audioconvert ! audioresample ! autoaudiosink

This command emits the following log messages:

0:00:17.732309329  9720 0x7f032c014ec0 WARN                   pulse pulsesink.c:702:gst_pulsering_stream_underflow_cb:<autoaudiosink0-actual-sink-pulse> Got underflow
0:00:17.745056358  9720 0x55eb5b3368a0 WARN           audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<autoaudiosink0-actual-sink-pulse> Unexpected discontinuity in audio timestamps of +0:00:00.000022675, resyncing
0:00:17.778264650  9720 0x7f032c014ec0 WARN                   pulse pulsesink.c:702:gst_pulsering_stream_underflow_cb:<autoaudiosink0-actual-sink-pulse> Got underflow


The exact timestamp at the beginning of the line changes each time I run the command, but the discontinuity is always the same.

The file plays OK in Firefox, but maybe the file is actually corrupt and the bug is in the FLAC encoder instead. I can probably upload the FLAC somewhere if it would be helpful.

I'm using gstreamer 1.12.4 on Fedora 27.
Comment 1 Tim-Philipp Müller 2018-03-07 23:57:42 UTC
Thanks for the bug report.

Any chance you could check if the patch from bug #791473 fixes it?

Or make a test file available?
Comment 2 Ethan Glasser-Camp 2018-03-08 00:10:02 UTC
I have uploaded the file in question to http://dump.betacantrips.com/test-case.flac. I don't have anything set up to build gstreamer at the moment, sorry!
Comment 3 Nicolas Dufresne (ndufresne) 2018-03-08 01:43:43 UTC
It can be reproduced with 1.12 (master), git master too. It's much worst with avdec_flac.
Comment 4 Nicolas Dufresne (ndufresne) 2018-03-08 01:45:08 UTC
Btw, with avdec, the result is consistent with vlc, it jumps at about 18s right from the start.
Comment 5 Ethan Glasser-Camp 2018-03-10 16:48:17 UTC
I should probably also note that I tried reripping the CD on the same machine I'm playing it on (gstreamer 1.12.4) and the new file does not have the same skipping behavior. The one that I originally ripped it on was 1.12.3, so this may be due to a bug that has been fixed in 1.12.4?
Comment 6 Tim-Philipp Müller 2018-03-10 19:00:37 UTC
Yes, there was a flacparse bug fixed between 1.12.3 and 1.12.4 that messed up the flac metadata when rewriting the header at the end.
Comment 7 Francois Cartegnie 2018-03-16 09:16:07 UTC
Works as expected as that file metadata is totally broken.

see
https://trac.videolan.org/vlc/ticket/19968
Comment 8 Sebastian Dröge (slomo) 2018-03-16 10:03:43 UTC
Looks like a duplicate of bug #785558 then. Thanks!

See also https://bugzilla.gnome.org/show_bug.cgi?id=792985

*** This bug has been marked as a duplicate of bug 785558 ***