From d9627a3cede12042f2793e39b87ebc0bc84dc06c Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Sun, 10 Mar 2019 10:56:58 +0800 Subject: [PATCH] Forget to start Encode Daemon TAT --- liveDownloader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liveDownloader.py b/liveDownloader.py index 1c46169..bbec4de 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -172,6 +172,9 @@ if __name__ == "__main__": _preT = datetime.strftime(datetime.now(), "%Y%m%d_%H%M.ts") t = threading.Thread(target=download, args=(_preT,)) ut = threading.Thread(target=upload, args=(d,)) + et = threading.Thread(target=encode) + et.setDaemon(True) + et.start() while True: if api.isLive: