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 670623 - [0.11] flacenc not working
[0.11] flacenc not working
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.11.x
Other Linux
: Normal normal
: 0.11.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-22 16:52 UTC by Christian Fredrik Kalager Schaller
Modified: 2012-03-28 15:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Fredrik Kalager Schaller 2012-02-22 16:52:28 UTC
FLAC muxing seems completely broken in 0.11, even this simple pipeline just hangs:

gst-launch-0.11 uridecodebin uri=file:///home/cschalle/Music/tok.mp3 ! audioconvert ! flacenc ! oggmux ! filesink location=testflac.ogg
Comment 1 Tim-Philipp Müller 2012-02-22 17:08:26 UTC
Not even  gst-launch-0.11 audiotestsrc ! flacenc ! fakesink  works...
Comment 2 Wim Taymans 2012-02-27 14:15:16 UTC
Seem to work now for me:

commit 15eb385412fb7e894a786442969b525eb4155ae0
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Mon Feb 27 12:49:52 2012 +0100

    audioencoder: use default event function
    
    Implement a default event function so that subclasses can call it without having
    to return FALSE (and make it impossible to report errors).

commit a51ce46d907d960c0dfc011cbdfb47eb9606fee5
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Mon Feb 27 13:05:33 2012 +0100

    flacenc: fix event handling
    
    Fix dodgy segment event handling
    Chain up to parent event handler
Comment 3 Tim-Philipp Müller 2012-02-27 14:25:59 UTC
plus negotiation patches from a few days ago ;)
Comment 4 Christian Fredrik Kalager Schaller 2012-02-27 15:03:18 UTC
ok, it still doesn't work, but now I get an error:

0:00:27.297919163 30050 0xae4631b0 ERROR              flacparse gstflacparse.c:872:gst_flac_parse_handle_streaminfo:<flacparse0> Invalid sample rate 0
0:00:27.297985471 30050 0xae4631b0 ERROR              flacparse gstflacparse.c:872:gst_flac_parse_handle_streaminfo:<flacparse0> Invalid sample rate 0
0:00:27.298100499 30050 0xae4631b0 ERROR              flacparse gstflacparse.c:872:gst_flac_parse_handle_streaminfo:<flacparse0> Invalid sample rate 0
we got an error, life is shit
Internal data stream error.
gstoggdemux.c(4433): gst_ogg_demux_loop (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecoder/GstDecodeBin:decodebin2/GstOggDemux:oggdemux2:
stream stopped, reason error
Comment 5 Wim Taymans 2012-03-13 11:42:48 UTC
this one too:

commit 89105970f0594e518505c8896a5dbe4f48380bd1
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Tue Mar 13 12:40:37 2012 +0100

    flacenc: fix streamheaders
    
    Fix the caps of flacenc, the reference encoder only support 24 bits in
    32 bits.
    Set streamheader on output caps.
Comment 6 Wim Taymans 2012-03-28 15:08:10 UTC
works now?
Comment 7 Christian Fredrik Kalager Schaller 2012-03-28 15:11:51 UTC
Sorry, I thought I had closed this. Yes it works perfectly, thanks for the fix.