2 ms·
Hi! Author here, there are a few ways to use it, including your suggestion (did you make your suggestion up or were you pulling from the docs?): # magical
by daenz 15y ago
Hi! Author here, there are a few ways to use it, including your suggestion (did you make your suggestion up or were you pulling from the docs?):
# magical, designed only for single shell scripts
from pbs import *
ffmpeg()
# less magical
from pbs import ffmpeg
ffmpeg()
# or
import pbs
pbs.ffmpeg()
# no magic
import pbs
ffmpeg = pbs.Command(pbs.which("ffmpeg")) # command takes full path
ffmpeg()
I tried to cover the main use cases adequately. My goal was to ease a pain point myself and others have experienced, that other popular packages don't address well unfortunately.
If it's helped anyone like it's helped me, I'm happy and glad to share!
- tingletech 15y agoThis looks really cool. It was not clear to me on the first reading of the document that it could be invoked these ways. The pbs.Command() example is way down in the "weird filenames" part. I just did a quick change to the README and sent you a pull request.
- samps 15y agoWow -- no, I entirely missed this (and just happened to end up with the same name). Thanks for clarifying.