This commit is contained in:
ed 2021-03-21 06:00:21 +01:00
parent f5cb9f92b9
commit d07f147423
2 changed files with 4 additions and 4 deletions

View file

@ -231,7 +231,7 @@ class MTag(object):
"""
note:
tags which contain newline will be truncated on first \n,
ffmpeg emits \n and spacepads the : to align visually
ffprobe emits \n and spacepads the : to align visually
note:
the Stream ln always mentions Audio: if audio
the Stream ln usually has kb/s, is more accurate
@ -301,7 +301,7 @@ class MTag(object):
sec *= 60
sec += int(f)
except:
self.log("invalid timestr from ffmpeg: [{}]".format(tstr), c=3)
self.log("invalid timestr from ffprobe: [{}]".format(tstr), c=3)
ret[".dur"] = sec
m = ptn_br1.search(ln)

View file

@ -647,7 +647,7 @@ class Up2k(object):
def _start_mpool(self):
if WINDOWS and False:
nah = open(os.devnull, "wb")
wmic = f"processid={os.getpid()}"
wmic = "processid={}".format(os.getpid())
wmic = ["wmic", "process", "where", wmic, "call", "setpriority"]
sp.call(wmic + ["below normal"], stdout=nah, stderr=nah)
@ -677,7 +677,7 @@ class Up2k(object):
done = self._flush_mpool(wcur)
if WINDOWS and False:
nah = open(os.devnull, "wb")
wmic = f"processid={os.getpid()}"
wmic = "processid={}".format(os.getpid())
wmic = ["wmic", "process", "where", wmic, "call", "setpriority"]
sp.call(wmic + ["below normal"], stdout=nah, stderr=nah)