Skip to main content

ffmpeg_setpath is a Python library to automatically set the system paths of ffmpeg.

Project description

ffmpeg_setpath

Python Pypi Docs LOC Downloads Downloads License Forks Issues Project Status GitHub Repo stars GitHub repo size Donate

  • 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.

Installation

pip install ffmpeg_setpath            # normal install
pip install --upgrade ffmpeg_setpath # or update if needed

Set ffmpeg to your system environment:

from ffmpeg_setpath import ffmpeg_setpath
ffmpeg_setpath()

Specify your ffmpeg directory:

from ffmpeg_setpath import ffmpeg_setpath
ffmpeg_setpath(dirpath=r'c:/ffmpeg/')

Start all over and force download all files, unzip, and set to system environment:

from ffmpeg_setpath import ffmpeg_setpath
ffmpeg_setpath(force=True)

Set specified path in environment

import ffmpeg_setpath
ffmpeg_setpath.set_path(dirpath=r'c:/temp/ffmpeg/')

Remove specified path from environment

import ffmpeg_setpath
ffmpeg_setpath.remove(r'c:\ffmpeg1\bin')

Show all paths in environment

import ffmpeg_setpath
ffmpeg_setpath.printe()

References

Contribute

  • All kinds of contributions are welcome!
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

Licence

See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffmpeg_setpath-1.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ffmpeg_setpath-1.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ffmpeg_setpath-1.0.0.tar.gz.

File metadata

  • Download URL: ffmpeg_setpath-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ffmpeg_setpath-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1a099bfea0c14c107988109ee57ff73a6acfb41db3841d951543fe3384a26466
MD5 8c04e3f03c33a10ab6da3b5fa8a72d5e
BLAKE2b-256 932f3048b9392c6e7cf41fd6b09508c66bc9aba5718a1456fdc90727455f5199

See more details on using hashes here.

File details

Details for the file ffmpeg_setpath-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ffmpeg_setpath-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ffmpeg_setpath-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0314f864c9a4de91c431961f91b07ff12ad88b9d44c40ec3eb213e9fb81229c8
MD5 feef56c082662bd4fe4a3d5392367289
BLAKE2b-256 7ac3fbce70f0f0c5fd5cacae1d6f78399626a21502d8213fd14a022de90021ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page