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 337609 - [flacdec] can't play .flac files where header says total_samples = 0
[flacdec] can't play .flac files where header says total_samples = 0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.2
Other Linux
: Normal normal
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 337111 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-07 10:54 UTC by Sebastien Bacher
Modified: 2006-04-08 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2006-04-07 10:54:19 UTC
That bug has been opened on https://launchpad.net/malone/bugs/36725

"I installed Rhythmbox along side with gstreamer0.10 and with all the necessary libs (good, bad, ugly and else...) I added gstreamer0.8-flac, libgstreamer-plugins0.8-0, libgstreamer0.8-0. Each time I play a .flac song rhythmbox skips to the next "playable" one
...
> Thanks for your bug. Do you have gstreamer0.10-plugins-good installed? Could you give an URL to download a .flac giving that issue? Does "gst-launch-0.10 playbin uri=file:///path/to/the/flac" work fine?
...


Thanks for the help.

I have gstreamer0.10-plugins-good installed
alwright.
Here is the result of the command line:
gui@dapper:~$ gst-launch-0.10 playbin uri=file:////home/gui/Desktop/Stranglers.flac
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: audioclock4
Got EOS from element "playbin0".
Execution ended after 761000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...
gui@dapper:~$

I must add that the first time I launch this command, Totem openned and tried to play the file unsuccesfully. I'll try to give you an URL for the file as soon as possible. However all the .flac I have work fine with Ubuntu Breezy which I know use gstreamer0.8.
...
Here's an URL where you can find a file that doesn't work (among many others...)

http://rapidshare.de/files/17141894/filea.flac.html
...
>> What a terrible user interface. Anyway I have your file now, and indeed rhythmbox won't play it. However, if I simply decompress it and recompress it, with flac -d followed by flac, it plays fine.

filea.flac: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, length unknown
fileb.flac: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 5842944 samples

Perhaps gstreamer doesn't like flac files which don't declare their length?
...
Confirmed, if I take a file of mine which plays OK, and convert it to one of these FLAC files without length metadata, Rhythmbox refuses to play it.

Guillaume, you should be able to work around the problem trivially by recompressing your FLAC files."
Comment 1 Christian Fredrik Kalager Schaller 2006-04-07 11:00:26 UTC
I can confirm this with recent CVS GStreamer and Totem. The file in question do not seem to want to play.
Comment 2 Tim-Philipp Müller 2006-04-07 18:17:38 UTC
Should be fixed in CVS:

 2006-04-07  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/flac/gstflacdec.c: (gst_flac_calculate_crc8),
        (gst_flac_dec_scan_got_frame), (gst_flac_dec_scan_for_last_block),
        (gst_flac_dec_metadata_callback):
        * ext/flac/gstflacdec.h:
          If the stream header doesn't contain the total number of samples,
          search for the last flac frame at the end of the file and calculate
          the total duration from that frame's offset (fixes #337609).

Comment 3 Tim-Philipp Müller 2006-04-08 14:05:20 UTC
*** Bug 337111 has been marked as a duplicate of this bug. ***