Ich habe ein Batch-Skript, das immer funktioniert hat, aber nachdem ich Windows 11 formatiert und installiert habe, funktioniert es nicht mehr. Ich habe es auf einer anderen Windows 10-Maschine versucht, es funktioniert dort auch nicht, also muss ich etwas übersehen haben.
Das Batch-Skript lautet:
@echo off
mkdir faded
setlocal ENABLEDELAYEDEXPANSION
for %%f in (*.mp4) do (
ffprobe -i "%%f" -show_entries format=duration -v quiet -of csv="p=0" >dur.txt
set /p dur=<dur.txt
del dur.txt
for /f "delims=" %%g in ('powershell !dur!-1') do set fadetime=%%g
ffmpeg -i "%%f" -filter:v "fade=t=in:st=0:d=1, fade=t=out:st=!fadetime!:d=1" -filter:a "afade=t=in:st=0:d=1, afade=t=out:st=!fadetime!:d=1" -c:v libx264 -crf 18 -preset veryslow -ab 160k "faded/%%~nf.mp4"
)
Hat jemand eine Ahnung? Wenn ich es ausführe, schlägt es fehl:
> [AVFilterGraph @ 000002943a01ea40] No such filter: '714:d'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:1
> Conversion failed!