I'm trying to setup a watch folder that compressed video to webm.
Can anyone here set me on the right path?
Thanks
[Hazel Rule: if extension is .mov]
- Code: Select all
in="$1"
OUT = "test.webm"; \
CORES="3"; \
CRF="53"; \
ffmpeg -i "$1" -c:v libvpx-vp9 -pass 1 -pix_fmt yuv420p -b:v 0 -crf $CRF -threads $CORES -speed 4 -an -tile-columns 6 -frame-parallel 1 -an -y -f webm /dev/null; \
ffmpeg -i "$1" -c:v libvpx-vp9 -pass 2 -pix_fmt yuv420p -b:v 0 -crf $CRF -threads $CORES -speed 2 -an -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libopus -b:a 320k -f webm $OUT
[Hazel rule: Move to folder 'Compressed"]