This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make a shortcut to be able to drag'n'drop this- | |
# powershell -file "[absolute path]\compresso.ps1" | |
function EntryPoint { | |
echo "Input file: "$in | |
$out = $in.Insert($in.LastIndexOf("."),"_compressed") | |
echo "Output file: "$out | |
ffmpeg -i $in -c:v libx264 -tag:v avc1 -movflags faststart -crf 30 -preset superfast $out | |
exit | |
} |