Files
bart 9cc903b2a4
Build and Publish Debian Packages / Build Packages (push) Failing after 18s
Build and Publish Debian Packages / Publish to eendoe repository (push) Skipped
Initial import: sources, staging packages, build scripts and CI workflow
2026-10-20 21:20:13 +02:00

25 lines
676 B
Python

#!/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 <config>')
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')