From 199ec48f48a515d12558f9cd257a992fc709803e Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Thu, 29 Dec 2022 16:07:04 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EPossible=20setup=E2=80=9C=20=C3=A4nder?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Possible-setup.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Possible-setup.md diff --git a/Possible-setup.md b/Possible-setup.md new file mode 100644 index 0000000..2332110 --- /dev/null +++ b/Possible-setup.md @@ -0,0 +1,25 @@ +Use [Nijika](https://github.com/hannesbraun/nijika) for queueing up multiple encoding tasks. + +I recommend using a very recent version of ffmpeg and libaom-av1. My recommendation is to use the versions provided in [Alpine Linux Edge](https://wiki.alpinelinux.org/wiki/Edge). Install ffmpeg together with Python in a Docker container, so your actual host system doesn't matter. Here's a possible Dockerfile: + +```dockerfile +FROM alpine:edge + +RUN apk add --no-cache ffmpeg python3 +RUN python3 -m ensurepip +RUN pip3 install --no-cache --upgrade pip setuptools pyyaml +``` + +Now, create a wrapper script for executing a command inside a container created from this image. It may look something like this: +```sh +#!/bin/sh + +docker run --rm --net=none --mount=type=bind,source=/home/me/Movies,destination=/ay --workdir=/ay hav1w-env $@ +``` + +Place the hav1w script together with the presets and the command queue of Nijika inside the directory mounted into the Docker container. Then add a command like this to the queue: +```sh +sh wrap.sh python3 hav1w.py input.mkv output.mkv 5.1 +``` + +Neither this setup, nor this "guide" is perfect. But maybe it helps to get a good starting point :) \ No newline at end of file