Page 1 of 1

run powershell .ps1 external script post processing?

Posted: 07 Oct 2025, 01:18
by crazydrve
Hello,

Ive been trying to undertand the scripting and automation options but having no luck, is there any way to have filebot run a powershell script post process?

IE I have a powershell .ps1 file that I like to run to convert my files to mp4.

Re: run powershell .ps1 external script post processing?

Posted: 07 Oct 2025, 02:51
by rednoah
:?: What have you tried so far?


:arrow: You can run .ps1 scripts just like any other executable. See Custom Post-Processing Scripts › Run Command for details and examples.

e.g.

Groovy: Select all

{ source, target ->
	system 'C:/Tools/MyScript.ps1', source, target
}

:arrow: Alternatively, you can also just call ffmpeg directly akin to the Custom Post-Processing Scripts › Set Media Title example:

Groovy: Select all

{ source, target ->
	if (ext == /mkv/) {
		system 'ffmpeg', '-i', target, target.dir / target.nameWithoutExtension + '.REMUX.mp4'
	}
}