You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
692 B

#!/usr/bin/env python
import os
import sys
import logging
import configparser
import xml.etree.ElementTree as ET
5 years ago
autoProcess = "/config/scripts/configs/video-pp-sma.ini"
def main():
5 years ago
safeConfigParser = configparser.ConfigParser()
safeConfigParser.read(autoProcess)
5 years ago
# Set Converter Settings
safeConfigParser.set("Converter", "ffmpeg", "ffmpeg")
safeConfigParser.set("Converter", "ffprobe", "ffprobe")
safeConfigParser.set("Converter", "hwaccels", " ")
safeConfigParser.set("Converter", "hwaccel-decoders", " ")
5 years ago
fp = open(autoProcess, "w")
safeConfigParser.write(fp)
fp.close()
if __name__ == '__main__':
main()