bar fix for vvc + limit frames to ecnode == source

This commit is contained in:
Zen 2020-07-24 00:09:09 +03:00
parent 657aa18311
commit 18f8c0a1b8
2 changed files with 5 additions and 1 deletions

View file

@ -102,6 +102,9 @@ def process_encoding_pipe(pipe, encoder, counter):
if encoder in ('vvc'): if encoder in ('vvc'):
match = match_vvc(line) match = match_vvc(line)
if match:
counter.update(1)
continue
if match: if match:
new = int(match.group(1)) new = int(match.group(1))

View file

@ -7,6 +7,7 @@ from pathlib import Path
from .vvc import to_yuv from .vvc import to_yuv
from .utils import terminate from .utils import terminate
from .logger import log from .logger import log
from .ffmpeg import frame_probe
def compose_aomsplit_first_pass_command(video_path: Path, stat_file, ffmpeg_pipe, video_params): def compose_aomsplit_first_pass_command(video_path: Path, stat_file, ffmpeg_pipe, video_params):
@ -187,7 +188,7 @@ def vvc_encode(inputs, params, vvc_conf):
"""Experimental support for VVC encoder """Experimental support for VVC encoder
""" """
commands = [ commands = [
(f' vvc_encoder -c {vvc_conf} -i {x[0].with_suffix(".yuv").as_posix()} {params} -f 99999 --InputBitDepth=8 --OutputBitDepth=8 -b {x[1].with_suffix(".h266")}', (f' vvc_encoder -c {vvc_conf} -i {x[0].with_suffix(".yuv").as_posix()} {params} -f {frame_probe(x[0])} --InputBitDepth=8 --OutputBitDepth=8 -b {x[1].with_suffix(".h266")}',
(x[0], x[1].with_suffix(".h266"))) (x[0], x[1].with_suffix(".h266")))
for x in inputs for x in inputs
] ]