Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
482 B
3
Indexable
Never
@echo off

rem Input und Output Verzeichnisse
set "input_dir=input\"
set "output_dir=output\"

rem Erstelle das Output Verzeichnis, falls es nicht existiert
if not exist "%output_dir%" (
    mkdir "%output_dir%"
)

rem Schleife durch jede Datei im Input Verzeichnis
for %%f in ("%input_dir%*.mp4") do (
    set "file=%%f"
    set "filename=%%~nf"
    set "output_file=%output_dir%%filename%.mp4"

    rem Video beschneiden
    ffmpeg -ss 00:00:07 -i "%%f" -c copy "%output_file%"
)
Leave a Comment