[encoder] Improved motion estimation.
[schroedinger/research-port.git] / misc / tc
blobbca535ba4882539e05b896c6461ff772e244b4be
1 #!/usr/bin/env python
2 # -*- Mode: Python -*-
3 # vi:si:et:sw=4:sts=4:ts=4
5 #infile="showreel-short.SD-master.drc"
6 infile="showreel.SD-master.drc"
7 outfile="test.drc"
9 mediadir="/home/ds/media/masters"
11 import sys
12 import os
13 import gobject
14 gobject.threads_init()
15 import pygst
16 pygst.require('0.10')
17 import gst
18 import Numeric;
20 from test_encode import *;
23 def main(args):
24 os.putenv("SCHRO_DUMP", "1");
26 moo = EncodeTest();
28 moo.set_input_file(mediadir + "/" + infile)
29 moo.set_output_file(outfile)
31 moo.set("rate-control", 1);
32 moo.set("bitrate", 2500000);
34 for each in args[1:]:
35 (name,value) = each.split('=');
36 value=float(value);
37 moo.set(name,value);
39 moo.go();
41 if __name__ == '__main__':
42 sys.exit(main(sys.argv))