#!/bin/bash import sys, getopt,os from hyperdeck.application import Config, HyperDeck import logging logging.basicConfig(level=logging.INFO) opts, args = getopt.getopt(sys.argv[1:],"c:o:") configfile="config.json" for opt, arg in opts: if opt == '-h': print ('test.py -c ') sys.exit() elif opt in ("-c"): configfile = arg config = Config(configfile) logging.info("Setting up connection to: " +config.rtsp_url ) os.system('/usr/bin/ffmpeg -hide_banner -loglevel warning -nostats -re -rtsp_transport tcp -i '+ config.rtsp_url +' -c copy -s hd720 -f flv -y rtmp://localhost/live/livestream > /tmp/ffmpeglive.log')