ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Python bindings for FFmpeg - with complex filtering support

Results 216 ffmpeg-python issues
Sort by recently updated
recently updated
newest added

I've been trying to make this for a while now, I have a Python script that downloads and converts audio files using yt-dlp and ffmpeg (.MP3 and .WAV) I made...

Because the `examples/show_progress.py` file monkey patches modules using `gevent.monkey.patch_all()`, implementing it like this in a real project can lead to weird errors: ``` Traceback (most recent call last): File "/home/david/ffmpeg-python/.venv/lib/python3.10/threading.py",...

``i'm trying something like: ``` path = 'C:\Users\Pekarnya\Videos\Captures\за грубость извени.mp4' overlay = ffmpeg.input(fr'{path}_folder/input.mp4') srtf=fr'"{path}_folder/audio.srt"' print(srtf) # > "C:/Users/Pekarnya/Videos/Captures/за грубость извени.mp4_folder/audio.srt" overlay = overlay.filter('subtitles', srtf, force_style="PrimaryColour=&H03fcff,fontsize=8,Italic=1,Spacing=0.8,MarginV=72") overlay = overlay.output(ffmpeg.input(path).audio, fr'{path}_folder/final.mp4', vcodec='libx264',...

I convert a lot of rgba pictures with alpha channel to numpy array, and then encode to webm format video by ffmpeg-python. Here is how I do it: self.process2 =...

How to push the output of a [wav2lip model](https://github.com/Rudrabha/Wav2Lip) to an RTMP server using ffmpeg-python? The output of wav2lip is some original image data and an input audio file. The...

I'm trying to get pipes working in a class in the following manner ```python self.webcam = ( ffmpeg.input( opts["device"], format="avfoundation", framerate=self.fps, pix_fmt="uyvy422", s=opts["size"], probesize="42M", ) .output("pipe:0", format="rawvideo") .run_async(pipe_stdout=True, pipe_stdin=True) )...

Hello all, I scoured forums (and issues here) for some time and couldn't find the cause of my problem so I'm opening an issue. For some reason my implementation of...

Hi folks, Thank you for creating ffmpeg-python! I'm running a very simple concat operator using ffmpeg-python like so: def concatVideos(args): files = [] streams =[] for fileName in os.listdir(args.directorySrc): files.append(fileName)...

question

Hi, What would be the best way to add some motion blur to an xfade transition. Below is my code so far. I want to add some motion blur when...

in_filename = "test.mp4" process1 = ( ffmpeg.input(in_filename) .output(format='rawvideo', pix_fmt='rgb24') .run(capture_stdout=True, capture_stderr=True) ) while True: in_bytes = process1.stdout.read(width * height * 3) if not in_bytes: break in_frame = ( np .frombuffer(in_bytes,...