Simple FFmpeg binding for python, mainly created for personal use.
Example:
from FFmpeg.ffmpeg import FFmpeg
import subprocess
ffmpeg = FFmpeg()
ff = (
ffmpeg
.OverwriteOutput()
.addInput("video1.webm")
.addInput("./logo.png")
.addInput("video2.webm")
.videoCodec("libx264")
.audioCodec("aac")
.videoFramerate(30)
.videoResolution(resString="1920x1080")
.scale2refFilter(2, 0, "oh*mdar:ih*0.2", "camera", "video") # resize camera to 20% of screen height
.overlayFilter("video", "1", "W-w-10", "H-h-10", "v") # overlay logo on bottom right
.overlayFilter("v", "camera", "10", "10") # overlay camera on top left
.output("output.mp4") # output file
)
code, stdout, stderr = ff.execute(stderr=subprocess.STDOUT, shell=False)
print(code, stdout, stderr)
Metadata
Release files for ffmpeg-py 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ffmpeg-py-0.1.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ffmpeg_py-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / ffmpeg-py-0.1.1.tar.gz
| Download URL | ffmpeg-py-0.1.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adbf5f932437cd49683a14fde8593d22c8ddf41f62e063e2336cd571e71f864f
|
|
BLAKE2b-256 checksum How to use checksums |
2754117d5940fdd907744fc22c57104f8f1f9e36c22d1fa548473b1acb812603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / ffmpeg_py-0.1.1-py3-none-any.whl
| Download URL | ffmpeg_py-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
559c1125b6662c24cc52153b1ce4d21172752ef85585a0c93421cf91d94ea20a
|
|
BLAKE2b-256 checksum How to use checksums |
717131c997cbbae9075c95c11b1b886d19a30ec1c9f2851c6dc5bef4a6f94ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|