[gstreamer-bugs] [Bug 337111] flacenc output is incompatible with flacdec

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Apr 8 07:05:21 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=337111
 GStreamer | gst-plugins-good | Ver: 0.10.5


Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE
   Target Milestone|HEAD                        |NONE




------- Comment #1 from Tim-Philipp Müller  2006-04-08 14:05 UTC -------
This seems to be the same problem as bug #337609 and should be fixed in
gst-plugins-good CVS now.

The problem is that if you use the above pipeline and then interrupt it with
control-C the pipeline isn't stopped in a controlled way (so that an EOS is
sent). Without that, flacenc doesn't write the actual number of samples written
into the flac stream header, so the stream header contains total_samples = 0
(="don't know"), which flacdec didn't handle correctly until then.

A better way to do this with gst-launch would be:

  alsasrc device=default num-buffers=256 ! audioconvert ! flacenc ! filesink
location=test.flac

That will shut the pipeline down cleanly and make flacenc fill in the header.
If you need to shut down a pipeline like this programmatically from your own
code you can do this as well without specifying the number of buffers in
advance, see the GstBaseSrc online documentation for details on how to do that.



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


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list