Post by nacken012 » 01 Jan 2022, 04:48
Das ist jetzt draus geworden
Code: Select all
GuiDropFiles:
Gui, Submit, nohide
SplitPath, A_GuiEvent, Dateiname, Verzeichnis, Erweiterung, NameOhneErw, Laufwerk
Sleep, 500
runwait,%comspec% /c bin\ffmpeg.exe -skip_frame nokey -y -hide_banner -loglevel 32 -stats -i "%A_GuiEvent%" -vf cropdetect -an -f null - 2>autocrop.txt
Sleep, 100
FileReadLine, line, autocrop.txt, 21
Zeile = %line%
Var := StrSplit(Zeile, "crop=").2
runwait,%comspec% /c bin\ffmpeg.exe -y -i "%A_GuiEvent%" -filter:v "crop="%Var% -f dvd -b:v 2800k -r 25 -ar 48000 -b:a 128k "%Verzeichnis%\%NameOhneErw%.mpg"
Das ist jetzt draus geworden
[code]
GuiDropFiles:
Gui, Submit, nohide
SplitPath, A_GuiEvent, Dateiname, Verzeichnis, Erweiterung, NameOhneErw, Laufwerk
Sleep, 500
runwait,%comspec% /c bin\ffmpeg.exe -skip_frame nokey -y -hide_banner -loglevel 32 -stats -i "%A_GuiEvent%" -vf cropdetect -an -f null - 2>autocrop.txt
Sleep, 100
FileReadLine, line, autocrop.txt, 21
Zeile = %line%
Var := StrSplit(Zeile, "crop=").2
runwait,%comspec% /c bin\ffmpeg.exe -y -i "%A_GuiEvent%" -filter:v "crop="%Var% -f dvd -b:v 2800k -r 25 -ar 48000 -b:a 128k "%Verzeichnis%\%NameOhneErw%.mpg"
[/code]