ffmpeg-python
ffmpeg-python copied to clipboard
Python bindings for FFmpeg - with complex filtering support
## Issue I'm trying to hardcode the subtitles for a video clip, but the subtitles are _not_ present in the output. My code: ```python # Source is a file with...
Given the following example: ```python file = ffmpeg.input('example.mp4') video = file['v'] audio = file['a'] # Part A: draw a box over the bottom half of the screen video = ffmpeg.drawbox(video,...
I have some frames, type is ndarray. And I get the timestamp of every frame ``` class Frame: def __init__(self, mat, timestamp): self.mat = mat # type is ndarray self.timestamp...
### Problem On python 3.10.2, ffmpeg-python raises the following error: ``` Traceback (most recent call last): ... import ffmpeg File "/home/rlue/.pyenv/versions/3.10.2/lib/python3.10/site-packages/ffmpeg/__init__.py", line 2, in from . import nodes File "/home/rlue/.pyenv/versions/3.10.2/lib/python3.10/site-packages/ffmpeg/nodes.py",...
Is it possible to pass in a % value for the position and dimensions of overlay images?
Is it possible to pass in parameters in the same form as ffmpeg command line? For example CROP crop=w=10:h=36:x=110:y=192 The .crop API call changes the tuples ordering also, is there...
The argument list is incorrect specified Currently ffmpeg.crop(stream, x, y, width, height, **kwargs) Actual ffmpeg.crop(stream, width, height, x, y, **kwargs)
when ffmpeg stream some input and show option press [q] to stop how to implement in code. thankyou
I create some code to split and concat with my scenes like below ``` for scene in scenes: start = scene.get_startat() duration = scene.get_interval() v_clip_stream = ffmpeg.trim( stream, start=start, duration=duration)...
Any recommendation what would be the best way to add capability to do a mosaic of 4 videos? The orginial ffmpeg command would like this one ffmpeg \ -i input0.mp4...