Untitled
unknown
plain_text
a year ago
637 B
9
Indexable
# Setze die Eingabe- und Ausgabe-Verzeichnisse
$inputDir = "input_videos\"
$outputDir = "output_videos\"
# Erstelle das Ausgabe-Verzeichnis, falls es nicht existiert
if (!(Test-Path -Path $outputDir)) {
New-Item -ItemType Directory -Path $outputDir
}
# Schleife durch jede Datei im Eingabe-Verzeichnis
Get-ChildItem -Path $inputDir -Filter *.mp4 | ForEach-Object {
$inputFile = $_.FullName
$filename = $_.BaseName
$outputFile = "$outputDir$filename`_cropped.mp4"
# Video zuschneiden
Start-Process -NoNewWindow -FilePath "ffmpeg.exe" -ArgumentList "-ss 00:00:07 -i `"$inputFile`" -c copy `"$outputFile`""
}
Editor is loading...
Leave a Comment