ffmpeg-setpath
is Python package
Star this repo if you like it! ⭐️
ffmpeg-setpath is to set the path for ffmpeg for Windows environments. It will download ffmpeg and include the paths into the system environment. There are multiple steps that are taken to set the ffmpeg path in the system environment.
The following steps are automated:
- Step 1. Download the ffmpeg file.
- Step 2. Store the files in the temp-directory or the provided dirpath.
- Step 3. Add the /bin directory to system environment.
pip install ffmpeg-setpath # normal install
pip install --upgrade ffmpeg-setpath # or update if needed
from ffmpeg_setpath import ffmpeg_setpath
ffmpeg_setpath()
from ffmpeg_setpath import ffmpeg_setpath
ffmpeg_setpath(dirpath=r'c:/ffmpeg/')
from ffmpeg_setpath import ffmpeg_setpath
ffmpeg_setpath(force=True)
import ffmpeg_setpath as ff
f.set_path(dirpath=r'c:/temp/ffmpeg/')
import ffmpeg_setpath as ff
# Check for path
out_bool = ff.check(r'c:/ffmpeg/bin', exact_match=True)
# Check for string
out_list = ff.check(r'ffmpeg', exact_match=False)
import ffmpeg_setpath as ff
ff.set_path(r'c:/temp/ffmpeg/')
import ffmpeg_setpath as ff
ff.remove(r'c:\ffmpeg1\bin')
import ffmpeg_setpath as ff
ff.printe()
- All kinds of contributions are welcome!
- If you wish to buy me a Coffee for this work, it is very appreciated :)
See LICENSE for details.