trying yo encode to flv to avoid lagging
This commit is contained in:
parent
d9627a3ced
commit
d1124a9370
@ -123,12 +123,12 @@ def download(path=datetime.strftime(datetime.now(), "%Y%m%d_%H%M.ts")):
|
|||||||
def encode():
|
def encode():
|
||||||
i = eq.get()
|
i = eq.get()
|
||||||
while True:
|
while True:
|
||||||
os.system("ffmpeg -i {} -c:a copy -c:v copy -f mp4 {}".format(i,i[:-3] + ".mp4"))
|
os.system("ffmpeg -i {} -c:a copy -c:v copy -f flv {}".format(i,i[:-3] + ".flv"))
|
||||||
if config["mv"]:
|
if config["mv"]:
|
||||||
shutil.move(i, config["mtd"])
|
shutil.move(i, config["mtd"])
|
||||||
elif config["del"]:
|
elif config["del"]:
|
||||||
os.remove(i)
|
os.remove(i)
|
||||||
uq.put(i[:-3] + ".mp4")
|
uq.put(i[:-3] + ".flv")
|
||||||
i = eq.get()
|
i = eq.get()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user