]> git.parisson.com Git - timeside.git/commitdiff
add vorbis encoder test
authoryomguy <yomguy@parisson.com>
Wed, 7 Dec 2011 01:28:34 +0000 (02:28 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 7 Dec 2011 01:28:34 +0000 (02:28 +0100)
tests/api/test_enc_ogg.py [new file with mode: 0644]

diff --git a/tests/api/test_enc_ogg.py b/tests/api/test_enc_ogg.py
new file mode 100644 (file)
index 0000000..af0bcc4
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+
+from timeside.decoder import *
+from timeside.encoder import *
+import os.path
+import sys
+
+source = sys.argv[-1]
+dest = source+'.ogg'
+
+decoder  = FileDecoder(source)
+encoder  = VorbisEncoder(dest)
+
+(decoder | encoder).run()