mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
+
This commit is contained in:
parent
5adeeb0841
commit
301ec0fdcc
2 changed files with 4 additions and 4 deletions
6
av1an.py
6
av1an.py
|
@ -428,7 +428,7 @@ class Av1an:
|
|||
|
||||
# Passing encoding params to ffmpeg for encoding
|
||||
# Replace ffmpeg with aom because ffmpeg aom doesn't work with parameters properly
|
||||
|
||||
|
||||
st_time = time.time()
|
||||
source, target = Path(commands[-1][0]), Path(commands[-1][1])
|
||||
frame_probe_source = self.frame_probe(source)
|
||||
|
@ -442,9 +442,9 @@ class Av1an:
|
|||
|
||||
self.frame_check(source, target)
|
||||
frame_probe = self.frame_probe(target)
|
||||
|
||||
|
||||
enc_time = round(time.time() - st_time ,2)
|
||||
|
||||
|
||||
self.log(f'Finished: {source.name} in {enc_time} sec\n'
|
||||
f'Encoded Frames: {frame_probe} Fps: {round( frame_probe/enc_time,4)}\n')
|
||||
return self.frame_probe(source)
|
||||
|
|
|
@ -15,7 +15,7 @@ def test_log():
|
|||
|
||||
os.remove('test_log')
|
||||
|
||||
assert 'test' in r
|
||||
assert 'test' in r
|
||||
|
||||
|
||||
def test_call_cmd():
|
||||
|
|
Loading…
Reference in a new issue