It will watch directory, and run av1an if it sees a file there.
docker run --rm -it -v "/opt/in:/home/user/in" -v "/opt/out:/home/user/out" varnav/av1an-dirwatch -enc svt_av1 -v "-enc-mode 3" -a "-c:a libopus -b:a 96k"
docker run -d --name optimize-images -v "/opt/in/:/home/user/in" -v "/opt/out/:/home/user/out" --restart on-failure:10 --network none --security-opt no-new-privileges varnav/av1an-dirwatch
Will not work under WSL2 because of this.
- Multistage build to make smaller image