From 325e781758bc55c63934361aba15862d9f12eb17 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 20 Jul 2019 11:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=97=AF=EF=BC=8C=E6=98=AF=E4=B8=AA=E5=BE=88?= =?UTF-8?q?=E7=AE=80=E5=8D=95=E7=9A=84=E9=98=B2=E6=8A=96=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E5=91=A2=EF=BC=88=E7=A1=AC=E6=A0=B8=E9=98=B2=E6=8A=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liveDownloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liveDownloader.py b/liveDownloader.py index 2965f3b..0dbcaf8 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -65,6 +65,7 @@ def encode(): isEncode = True if os.path.getsize(i) < 8 * 1024 * 1024: Common.appendEncodeStatus("Encoded File >{}< is too small, will ignore it".format(i)) + continue else: Common.appendEncodeStatus("Encoding >{}< Start".format(i)) _code = os.system("ffmpeg -i {} -c:v copy -c:a copy -f mp4 {} -y".format(i, i[:13] + ".mp4")) @@ -106,6 +107,7 @@ def upload(): continue if not Common.forceNotEncode: os.remove(i) + sleep(1800) # 防抖,避免主播因特殊情况下播导致直接投递了 i = Common.uploadQueue.get() Common.appendUploadStatus("Upload Daemon Quiting")