def interactive():
  opts={}
  # INPUT SEQUENCE
  print hilite("\nEnter the input sequence path:",6)
  print "\nEg. /my/great/sequence.%04d.jpg\n"
  inseq_input = raw_input(hilite("input_path >  ",16))
  inseqs=sequence.glob(inseq_input.split('.')[0])
  if len(inseqs) > 1:
    print hilite("\nPick a sequence:",6)
    for k,v in enumerate(inseqs):
      print "\t {0}) {1}".format(k+1, v)
    inseq_input = raw_input(hilite("input_seq (1) > ",16)) or 1
    inseq = inseqs[int(inseq_input)-1] 
  else:
    inseq = inseqs[0]
  inseq_path = inseq.__str__().split(' ')[0]
  inseq_start = inseq.__str__().split(' ')[1]
  inseq_end = inseq.__str__().split(' ')[2]
  print hilite("\nEnter first frame of input sequence:",6)
  print "\nEg. 953\n"
  start=raw_input(hilite("first_fr ({0}) >  ".format(inseq_start),16)) or inseq_start
  print hilite("\nEnter last frame of input sequence:",6)
  print "\nEg. 1002\n"
  end=raw_input(hilite("last_fr ({0}) >  ".format(inseq_end),16)) or inseq_end
  # MOSH SEQUENCE
  print hilite("\nEnter the moshtex sequence path:",6)
  print "\nEg. /my/great/moshtex.%04d.jpg\n"
  moshseq_input = raw_input(hilite("moshtex_path >  ", 16))
  moshseqs=sequence.glob(moshseq_input.split('.')[0])
  if len(moshseqs) > 1:
    print "Pick a sequence:"
    for k,v in enumerate(moshseqs):
      print " {0}) {1}".format(k+1, v)
    moshseq_input = raw_input(hilite("moshtex_path > ",16)) or 1
    moshseq = moshseqs[int(moshseq_input)-1] 
  else:
    moshseq = moshseqs[0]
  moshseq_path = moshseq.__str__().split(' ')[0]
  moshseq_start = moshseq.__str__().split(' ')[1]
  moshseq_end = moshseq.__str__().split(' ')[2]
  print hilite("\nEnter the first frame of moshtex sequence:",6)
  print "\nEg. 5\n"
  moshfirst=raw_input(hilite("moshtex_first_fr ({0}) >  ".format(moshseq_start),16)) or moshseq_start
  # OUTPUT
  print hilite("\nEnter the output directory path:",6)
  print "\nEg. /my/great/output\n"
  outdir = raw_input(hilite("output_path >  ",16))

  bitrate = raw_input(hilite("Bitrate (8000) > ",16)) or "8000"
  keyframe = raw_input(hilite("Keyframe (999) > ",16)) or "999"
  threshold = raw_input(hilite("Threshold (100000000) > ",16)) or "100000000" 
  interval = raw_input(hilite("Interval (9) > ",16)) or "9" 
  uber = raw_input(hilite("Uber Moshion? (N) > ",12)) or "N"
  if uber in ['Y','y','yes','YES','Yes']:
    uber = True
  else:
    uber = False
  return {
    'inseq': inseq_path,
    'start': start,
    'end': end,
    'moshseq': moshseq_path,
    'moshstart': moshfirst,
    'outdir': outdir,
    'bitrate': bitrate,
    'keyframe': keyframe,
    'threshold': threshold,
    'interval': interval,
    'uber': uber
  }
dataset/ETHPy150Open robmoggach/python-moshion/gomoshion.py/interactive/original