homelab/docs/attach/scripts/remux.ps1

7 lines
172 B
PowerShell

foreach( $input in $args ) {
$output = ("$input").TrimEnd(".mkv .mp4") + ".mp4"
ffmpeg -i "$input" -c copy $output
if ($?) {
Remove-Item $input
}
}