GNOME Bugzilla – Bug 707015
flacenc: Sends buffers before caps are set and breaks FLAC-in-Ogg
Last modified: 2013-08-29 09:27:18 UTC
Seems that I've found regression in 1.0. I've created 1s mono sine in audacity. I've tried to encode it with 0.10 and 1.0: gst-launch-0.10 filesrc location=sine.wav ! decodebin ! audioconvert ! flacenc ! oggmux ! filesink location=sine-flac-encoded-with-0.10.ogg gst-launch-1.0 filesrc location=sine.wav ! decodebin ! audioconvert ! flacenc ! oggmux ! filesink location=sine-flac-encoded-with-1.0.ogg marcin@marcin:~/bug$ ls -l razem 120 -rw-rw-r-- 1 marcin marcin 27346 sie 28 22:51 sine-flac-encoded-with-0.10.ogg -rw-rw-r-- 1 marcin marcin 156 sie 28 22:51 sine-flac-encoded-with-1.0.ogg -rw-rw-r-- 1 marcin marcin 88244 sie 28 22:50 sine.wav Obviously file encoded with 1.0 does not play. When I create pure FLAC file, it is OK gst-launch-1.0 filesrc location=sine.wav ! decodebin ! audioconvert ! flacenc ! filesink location=sine-flac-encoded-with-1.0.flac marcin@marcin:~/bug$ ls -l razem 148 -rw-rw-r-- 1 marcin marcin 27346 sie 28 22:51 sine-flac-encoded-with-0.10.ogg -rw-rw-r-- 1 marcin marcin 27094 sie 28 22:54 sine-flac-encoded-with-1.0.flac -rw-rw-r-- 1 marcin marcin 156 sie 28 22:51 sine-flac-encoded-with-1.0.ogg -rw-rw-r-- 1 marcin marcin 88244 sie 28 22:50 sine.wav
Created attachment 253444 [details] Original WAV
Created attachment 253445 [details] Ogg/FLAC encoded with 0.10
Created attachment 253446 [details] Ogg/FLAC encoded with 1.0
Created attachment 253447 [details] FLAC (no container) encoded with 1.0
This is most probably related to Bug 707016.
Works fine in 1.1.4, fails in 1.0.10.
This commit in 1.1.4 fixed it, backported to 1.0 and will be in 1.0.11 release. commit de7e1cb6dd8e5031b1d1d9a64fdda955bae54501 Author: Sebastian Dröge <slomo@circular-chaos.org> Date: Fri Aug 16 13:26:28 2013 +0200 flacenc: Properly set headers via the base class instead of just pushing them downstream Prevents buffers from being send before the caps and segment events.