Set frame width on the command line

This commit is contained in:
Steven Robertson 2013-01-06 22:00:52 -08:00
parent 1eae2236e2
commit a8f4e0007e

View File

@ -43,6 +43,8 @@ def add_args(parser=None):
"file. If set, causes 'start', 'end', and 'skip' to be ignored. " "file. If set, causes 'start', 'end', and 'skip' to be ignored. "
"If output codecs don't support multi-file writing, files will " "If output codecs don't support multi-file writing, files will "
"be silently overwritten.") "be silently overwritten.")
tmp.add_argument('--frame_width', metavar='SCALE', type=float,
help='Adjustment factor for temporal frame width.')
tmp.add_argument('--still', action='store_true', tmp.add_argument('--still', action='store_true',
help='Override start, end, and temporal frame width to render one ' help='Override start, end, and temporal frame width to render one '
@ -71,7 +73,7 @@ def get_from_args(args):
if args.still: if args.still:
base.update(frame_width=0, start=1, end=2) base.update(frame_width=0, start=1, end=2)
for arg in 'duration fps start end skip shard spp width height'.split(): for arg in 'duration fps frame_width start end skip shard spp width height'.split():
if getattr(args, arg, None) is not None: if getattr(args, arg, None) is not None:
base[arg] = getattr(args, arg) base[arg] = getattr(args, arg)
if args.codec is not None: if args.codec is not None: