r/PowerShell • u/StartAutomating • May 15 '26
Script Sharing Working with FFmpeg in PowerShell
One thing I really love to do is make complicated functionality a few notches easier by exposing it in PowerShell.
I absolutely love ffmpeg. It's a very powerful app for manipulating media. It's also famously dense. It has hundreds of filters, thousands of parameters, and generally obtuse and deeply technical help.
So, a long while back, I started whittling away on this problem. I made this module called RoughDraft to manipulate media, and I figured out a good enough mechanism to slowly build out support for filter after filter after filter.
It lets you play files with Show-Media, convert files with Convert-Media, and do almost any edit under the sun with Edit-Media.
IMO, it's a really fun module. Please check it out and let me know what you think.
View all comments
Show parent comment
2
u/StartAutomating May 15 '26
Slowly but surely building my way to a containerized video editor.
Currently it just loads the module and launches an event-based HTTP Listener as a local server.
It looks for a
.Servemethod onRoughDraftand calls it if available, and prints "Nothing To Serve" otherwise.The container image will contain the latest RoughDraft and ffmpeg, and is a Linux container. So the other thing this allows you to do is to get to audio/video editing functionality that will only run on Linux (or that may not be available in an older version of ffmpeg).
Hope this helps you understand.
For a bunch of simple servers, might I recommend checking out another project I've got:
Servers101