[SCM] morituri/master: * morituri/test/test_common_encode.py: Write a non-sine wave so we have an actual flac file that will typefind.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:27 UTC 2014


The following commit has been merged in the master branch:
commit e604240ae69a7f8939c8451d57e860dd2f3fe762
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Tue May 24 10:42:25 2011 +0000

    	* morituri/test/test_common_encode.py:
    	  Write a non-sine wave so we have an actual flac file that will
    	  typefind.

diff --git a/ChangeLog b/ChangeLog
index e9b4994..5bb9ec6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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:
 	  Actually set exception so MultiTask tells us what went wrong.
 
diff --git a/morituri/test/test_common_encode.py b/morituri/test/test_common_encode.py
index e277bc9..3f7e6a8 100644
--- a/morituri/test/test_common_encode.py
+++ b/morituri/test/test_common_encode.py
@@ -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)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list