Skip to content

Instantly share code, notes, and snippets.

@DejayRezme
DejayRezme / Av1SvtEnc.ps1
Created January 22, 2022 19:51
Script to encode a bunch of files with SvtAv1EncApp and ffmpeg from command line
param(
[Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)]
[string] $inputPath,
[int] $sp = 7,
[int] $crf = 28,
[int] $fg = 0,
[switch] $af,
[switch] $wi
)
if ($af) {$audioOptions = "-af channelmap=channel_layout=5.1"}
#####################################################################################
#
# Code is released As is, no guarantees, use at your own risk
# MIT license
#
#####################################################################################
# Settings
#####################################################################################
# number of wow boxes to launch