View Full Version : DOS command in Avisynth


Forensic
30th May 2018, 18:11
I need to execute a ffmpeg command (it has a lot of parameters) from within my Avisynth script. Is this possible?

If not, then one alternative is for my script to call a BAT file by passing a variable. My failed syntax attempt was:

LoadPlugin("CALL_25.dll")
Call("test.bat", "MyVariable")

I am open to any suggestions. Thank you.

MysteryX
30th May 2018, 18:56
I don't know whether such a plugin exists, but writing it would be very simple. You'd simply call the program on CreateFilter and wait for it to exit; with no need to initialize any plugin.

Edit: same question was asked here (https://forum.doom9.org/showthread.php?t=46506)

ChaosKing
30th May 2018, 21:03
I think this is what you want https://forum.doom9.org/showthread.php?p=1593132#post1593132

Forensic
31st May 2018, 00:49
Thank you both. That is exactly what I needed.

StainlessS
31st May 2018, 09:44
There is also RT_call(), but CallCmd() is more flexible.
Best avoid [EDIT: original] Call() plug, as it does have some problems.