]> code.delx.au - transcoding/commitdiff
Tidying
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 10 Jun 2013 03:53:57 +0000 (13:53 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 10 Jun 2013 03:53:57 +0000 (13:53 +1000)
batch-run [moved from batchrun.py with 100% similarity]
encxvid.py [deleted symlink]
hencode [moved from hencode.sh with 100% similarity]
identify-dvd [moved from dvdidentify with 100% similarity]
identify-video [moved from midentify with 100% similarity]
n97encode.sh [deleted file]
py-encode [moved from encode.py with 100% similarity]
rotate_args.py [deleted file]

similarity index 100%
rename from batchrun.py
rename to batch-run
diff --git a/encxvid.py b/encxvid.py
deleted file mode 120000 (symlink)
index 482c483..0000000
+++ /dev/null
@@ -1 +0,0 @@
-encode.py
\ No newline at end of file
similarity index 100%
rename from hencode.sh
rename to hencode
similarity index 100%
rename from dvdidentify
rename to identify-dvd
similarity index 100%
rename from midentify
rename to identify-video
diff --git a/n97encode.sh b/n97encode.sh
deleted file mode 100755 (executable)
index 7ff953d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-HandBrakeCLI \
-       --encoder ffmpeg \
-       --vb 384 \
-       --two-pass \
-       --aencoder faac \
-       --ab 64 \
-       --mixdown stereo \
-       --format mp4 \
-       --maxWidth 640 \
-       "$@"
-
similarity index 100%
rename from encode.py
rename to py-encode
diff --git a/rotate_args.py b/rotate_args.py
deleted file mode 100755 (executable)
index f229787..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-
-import optparse, subprocess, sys, os
-
-def parse_args():
-       parser = optparse.OptionParser(usage="%prog [options] -- args")
-       parser.add_option("--program_name",
-               action="store", dest="program_name", default=None,
-               help="The name of the executable to run")
-       parser.add_option("--dump",
-               action="store_true", dest="dump",
-               help="Print command that would be run on stdout")
-       parser.add_option("--count",
-               action="store", type="int", dest="count",
-               help="The number of arguments to rotate")
-
-       opts, args = parser.parse_args(sys.argv[1:])
-       
-       opts.args = args
-       return opts
-
-def run(args, dump):
-       if dump:
-               print "".join(map(commands.mkarg, args))[1:]
-       else:
-               return subprocess.Popen(args).wait()
-
-def main():
-       opts = parse_args()
-
-       newcmdline = [opts.program_name] + opts.args[-opts.count:] + opts.args[:-opts.count]
-
-       run(newcmdline, opts.dump)
-
-if __name__ == "__main__":
-       main()
-