small stuff and docs

This commit is contained in:
Zen 2021-01-07 14:25:06 +02:00
parent f86085edbd
commit a768ef3905
3 changed files with 7 additions and 17 deletions

View file

@ -7,7 +7,7 @@ from subprocess import PIPE, STDOUT
from typing import List
from av1an.logger import log
# TODO: redo to module
# TODO: redo to module, add ffmpeg scenedetection for fallback
def frame_probe_ffmpeg(source: Path):
"""

View file

@ -27,18 +27,6 @@ class Queue:
self.thread_executor = concurrent.futures.ThreadPoolExecutor()
self.status = 'Ok'
def is_empty(self):
return self.queue == []
def enqueue(self, chunk):
self.queue.insert(0,chunk)
def dequeue(self):
return self.queue.pop()
def size(self):
return len(self.queue)
def encoding_loop(self):
with concurrent.futures.ThreadPoolExecutor(max_workers=self.project.workers) as executor:
future_cmd = {executor.submit(self.encode_chunk, cmd): cmd for cmd in self.chunk_queue}
@ -54,7 +42,8 @@ class Queue:
def encode_chunk(self, chunk: Chunk):
"""
Encodes a chunk. If chunk fails, restarts it limited amount of times
Encodes a chunk. If chunk fails, restarts it limited amount of times.
Return if executed just fine, sets status fatal for queue if failed
:param chunk: The chunk to encode
:return: None

View file

@ -29,8 +29,7 @@ Target Quality has a really simple goal, instead of guessing what the CQ/CRF val
- x264
- vpx
- Quality/Constant Rate control (Target quality change crf/cq value for each segment)
- ``
- Quality/Constant Rate control (Target quality change crf/cq value for each segment). Which means that encoders must be in mode that use CRF/CQ and have those options specified ( `--crf 30`, `--cq-level=30`) those values get replaced for each segment
## Commands
@ -42,4 +41,6 @@ Target Quality has a really simple goal, instead of guessing what the CQ/CRF val
## Example of usage
`av1an -i file --target_quality 90` - Will run aomenc with default settings of target_quality
`av1an -i file --target_quality 90` - Will run aomenc with default settings of target_quality
`av1an -i file --target_quality 95 --vmaf_path "vmaf_v.0.6.3.pkl" --probes 6 ` - With specified path to vmaf model and 6 probes per segment