import os
import sys
import subprocess
import string
import argparse
from time import gmtime, strftime
### Defaults and constants
# moviepath_default = 'Movies'
# imagepath_default = 'ImageSequences'
# x_default = 1920
# y_default = 1080
# fps_default = 15
# nsec_default = 3
version = 'v1.5'
start_default= 0
stop_default = sys.maxint
# ext_default = ['mts']
nodate_prefix = 'nodate_'
# debug = False
	
stand_alone_testing = False
	
def conv_command(fileName, fps, hor, vert, targetDirName, start_given, stop_given):
	inFile = os.path.join(movieDir, fileName)
	outFiles = os.path.join(sequenceParentDir, targetDirName, 'image-%05d.png')
	return [libavpath,
			'-loglevel', 'quiet',
			'-i', inFile,
			'-r', str(fps),
			'-s', str(hor) + 'x' + str(vert),