prep for cli
This commit is contained in:
parent
c2b1b74735
commit
74118faa00
7
main.py
7
main.py
|
|
@ -43,11 +43,12 @@ def main(config):
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
config = Config()
|
config = Config()
|
||||||
|
|
||||||
fileName = "x23-1.mp4"
|
inputPath = os.path.join(os.path.dirname(__file__), "input/x23-1.mp4")
|
||||||
outputPath = os.path.join(os.path.dirname(__file__), "output")
|
outputPath = os.path.join(os.path.dirname(__file__), "output")
|
||||||
inputDirPath = os.path.join(os.path.dirname(__file__), "input")
|
|
||||||
|
fileName = inputPath.split("/")[-1]
|
||||||
|
|
||||||
config["inputPath"] = os.path.join(inputDirPath, fileName)
|
config["inputPath"] = inputPath
|
||||||
config["outputPath"] = os.path.join(outputPath, fileName)
|
config["outputPath"] = os.path.join(outputPath, fileName)
|
||||||
config["importPath"] = os.path.join(outputPath, fileName.split(".")[0] + ".txt")
|
config["importPath"] = os.path.join(outputPath, fileName.split(".")[0] + ".txt")
|
||||||
config["w"], config["h"] = VideoReader(config).getWH()
|
config["w"], config["h"] = VideoReader(config).getWH()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue