Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Ch00k/ffmpy
Pythonic interface for FFmpeg/FFprobe command line
https://github.com/Ch00k/ffmpy
ffmpeg ffmpeg-wrapper ffprobe transcoding wrapper
Last synced: 8 days ago
JSON representation
Pythonic interface for FFmpeg/FFprobe command line
- Host: GitHub
- URL: https://github.com/Ch00k/ffmpy
- Owner: Ch00k
- License: mit
- Created: 2015-09-04T08:34:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T19:23:01.000Z (3 months ago)
- Last Synced: 2024-10-13T22:43:13.459Z (21 days ago)
- Topics: ffmpeg, ffmpeg-wrapper, ffprobe, transcoding, wrapper
- Language: Python
- Homepage:
- Size: 1.54 MB
- Stars: 500
- Watchers: 19
- Forks: 53
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-video - ffmpy - Pythonic interface for FFmpeg/FFprobe command line. (Language and platform specific libraries / Python)
- starred-awesome - ffmpy - Pythonic interface for FFmpeg/FFprobe command line (Python)
README
.. image:: https://github.com/Ch00k/ffmpy/workflows/test/badge.svg
:target: https://github.com/Ch00k/ffmpy/actions
:alt: Tests.. image:: https://codecov.io/gh/Ch00k/ffmpy/branch/master/graphs/badge.svg
:target: https://codecov.io/github/Ch00k/ffmpy
:alt: Coverage.. image:: https://readthedocs.org/projects/ffmpy/badge/?version=latest
:target: http://ffmpy.readthedocs.io/en/latest/?badge=latest
:alt: Documentation.. image:: https://img.shields.io/pypi/v/ffmpy.svg
:target: https://pypi.python.org/pypi/ffmpy
:alt: Latest versionffmpy
=====
*ffmpy* is a simple `FFmpeg `_ command line wrapper. It implements a Pythonic interface for FFmpeg command line compilation and uses Python's `subprocess `_ to execute the compiled command line.*ffmpy* requires Python 3.8 or greater.
Installation
------------
::pip install ffmpy
Quick example
-------------
.. code:: pythonfrom ffmpy import FFmpeg
ff = FFmpeg(
inputs={'input.mp4': None},
outputs={'output.avi': None}
)
ff.run()This will take the ``input.mp4`` file in the current directory as the input, change the video container from MP4 to AVI without changing any other video parameters, and create a new output file ``output.avi`` in the current directory.
Documentation
-------------
http://ffmpy.rtfd.ioSee `Examples `_ section for usage examples.
License
-------
ffmpy is licensed under the terms of MIT license