* morituri/test/test_common_encode.py:

Write a non-sine wave so we have an actual flac file that will
	  typefind.
This commit is contained in:
Thomas Vander Stichele
2011-05-24 10:42:25 +00:00
parent 48e3d7ca99
commit e604240ae6
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/test/test_common_encode.py:
Write a non-sine wave so we have an actual flac file that will
typefind.
2011-05-24 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/image/image.py:

View File

@@ -58,8 +58,12 @@ class TagWriteTestCase(tcommon.TestCase):
def testWrite(self):
fd, inpath = tempfile.mkstemp(suffix=u'.morituri.tagwrite.flac')
# wave is pink-noise because a pure sine is encoded too efficiently
# by flacenc and triggers not enough frames in parsing
# FIXME: file a bug for this in GStreamer
os.system('gst-launch '
'audiotestsrc num-buffers=10 samplesperbuffer=588 ! '
'audiotestsrc '
'wave=pink-noise num-buffers=10 samplesperbuffer=588 ! '
'audioconvert ! '
'audio/x-raw-int,channels=2,width=16,height=16,rate=44100 ! '
'flacenc ! filesink location=%s > /dev/null 2>&1' % inpath)