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