From 4515ace8b9c4721c427a163b63341e8b2a5a374c Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 10 Jun 2013 13:53:57 +1000 Subject: [PATCH] Tidying --- batchrun.py => batch-run | 0 encxvid.py | 1 - hencode.sh => hencode | 0 dvdidentify => identify-dvd | 0 midentify => identify-video | 0 n97encode.sh | 13 ------------- encode.py => py-encode | 0 rotate_args.py | 37 ------------------------------------- 8 files changed, 51 deletions(-) rename batchrun.py => batch-run (100%) delete mode 120000 encxvid.py rename hencode.sh => hencode (100%) rename dvdidentify => identify-dvd (100%) rename midentify => identify-video (100%) delete mode 100755 n97encode.sh rename encode.py => py-encode (100%) delete mode 100755 rotate_args.py 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() - -- 2.39.2