4 ms·
I'd recommend subprocess execution for being able to monitor progress and abort early alone. You can't cleanly kill a thread in a process, but killing a whole p
by barrkel 4y ago
I'd recommend subprocess execution for being able to monitor progress and abort early alone. You can't cleanly kill a thread in a process, but killing a whole process is bread and butter to an OS.
In production scenarios you'd want that process to run in an isolated jail. Video formats are very complex and I don't have faith that fuzzers have found every exploit.
- moron4hire 4y agoThis would be for transcoding of input design assets to suitable web-standard output formats in a trusted environment, i.e. not a public user-facing tool, and I'm actually only really using it for audio, but I think your point still makes sense.
- GOATS- 4y agoI am using CliWrap to create my own wrapper for the functionality I need from FFmpeg. Works pretty well! https://github.com/Tyrrrz/CliWrap https://github.com/Tyrrrz/CliWrap