Scripts/WallpaperEngineTools/ffmpeg-encode.ps1

4 lines
320 B
PowerShell
Raw Normal View History

2023-11-21 00:33:30 -04:00
# Rencode arg file 1 with ffmpeg crf and veryslow preset in x264 format, and audio with aac 192kbps and append "-Small" to the output filename
# Usage: ffmpeg-encode.ps1 arg1
2023-11-21 00:12:55 -04:00
$file = Get-ChildItem $args[0]
ffmpeg -i $file.FullName -c:v libx264 -preset veryslow -crf 20 -c:a aac -b:a 192k "$($file.BaseName)-Small.mp4"