From: James Bunton Date: Mon, 10 Jun 2013 03:53:57 +0000 (+1000) Subject: Tidying X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/4515ace8b9c4721c427a163b63341e8b2a5a374c?hp=34aafc95b0d851b45421e50a3005bd0aac44d834 Tidying --- diff --git a/batchrun.py b/batch-run similarity index 100% rename from batchrun.py rename to batch-run diff --git a/encxvid.py b/encxvid.py deleted file mode 120000 index 482c483..0000000 --- a/encxvid.py +++ /dev/null @@ -1 +0,0 @@ -encode.py \ No newline at end of file diff --git a/hencode.sh b/hencode similarity index 100% rename from hencode.sh rename to hencode diff --git a/dvdidentify b/identify-dvd similarity index 100% rename from dvdidentify rename to identify-dvd diff --git a/midentify b/identify-video similarity index 100% rename from midentify rename to identify-video diff --git a/n97encode.sh b/n97encode.sh deleted file mode 100755 index 7ff953d..0000000 --- a/n97encode.sh +++ /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 \ - "$@" - diff --git a/encode.py b/py-encode 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 index f229787..0000000 --- a/rotate_args.py +++ /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() -