mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
small stuff and docs
This commit is contained in:
parent
f86085edbd
commit
a768ef3905
3 changed files with 7 additions and 17 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -43,3 +42,5 @@ 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 95 --vmaf_path "vmaf_v.0.6.3.pkl" --probes 6 ` - With specified path to vmaf model and 6 probes per segment
|
Loading…
Reference in a new issue