GNOME Bugzilla – Bug 699344
Gstreamer plays only first 40 seconds of attached flac file
Last modified: 2013-04-30 17:57:42 UTC
Amarok and kmplayer. both using the phonon backend, play only the first 40 seconds of the attached file. xmms and kmplayer using the mplayer back end both play it completely. If I recode the file in the following way: $ flac -d Sexta.flac $ mv Sexta.wav Sexta-ed.wav $ flac Sexta-ed.wav Amarok and kmplayer both play Sexta-ed.flac completely, so the file seems to be defective in some way, but a way that a coded should be able to deal with. It appears that phonon calls on gstreamer to decode flac files.
Bugzilla only allows attachements up to 750k-1024k or so, perhaps you could make the file available elsewhere? I suspect this is a known issue with the last 0.10 releases. It's probably fixed in GStreamer 1.x, so you would have to ask those applications to update to the new GStreamer API, as 0.10 is not maintained any longer. You should be able to confirm the issue and/or check if it's fixed with: $ gst-launch-0.10 playbin2 uri=file:///path/to/foo.flac vs. $ gst-launch-1.0 playbin uri=file:///path/to/foo.flac
It is all as you write; $ gst-launch-1.0 ... plays the whole file, while $ gst-launch-0.10" ... plays only the first 40 seconds. I will notify the developers of my distro, namely Fedora-18. Many thanks for this extremely quick response.
Yeah, sorry 'bout that. I *think* the problem was in flacparse, so it might be possible to isolate and cherry-pick some patches from the 0.10 branch in git (gst-plugins-good/gst/audioparsers/gstflacparse.c)