PyAV
PyAV copied to clipboard
Pythonic bindings for FFmpeg's libraries.
## Overview My setup is a docker container with Ubuntu 22.04 and python 3.10 and av installed through pip as a dependency of aiortc. The python scripts freeze on the...
a.k.a `ffmpeg.c` in `fftools` ## Overview Doing many tasks using the "proper" APIs is verbose, error-prone, and brittle in the face of major ffmpeg version bumps. Allowing using the command...
## Overview FFMpeg has support to fully utilize the [SRT protocol](https://github.com/Haivision/srt) ## Existing FFmpeg API [libavformat/libsrt.c](https://ffmpeg.org/doxygen/trunk/libsrt_8c.html) ## Expected PyAV API Example: ``` container = av.open(srt://ipaddress:port?mode=caller) ``` This will currently fail...
```python import av from fractions import Fraction def copy_video_stream(container): input_ = av.open("example.mp4") video_stream = container.add_stream("h264", rate=30) video_stream.width = input_.streams.video[0].width video_stream.height = input_.streams.video[0].height video_stream.pix_fmt = "yuv420p" for frame in input_.decode(video=0): packet...
## Desired Behavior Currently only the title is allowed to be written to a containers metadata. The behavior is tested in the following unit test: https://github.com/PyAV-Org/PyAV/blob/86f66ac1c6682c5c07aeb8df4e070b0fe3723fb7/tests/test_encode.py#L74 I have confirmed ffmpeg...
https://github.com/PyAV-Org/PyAV/blob/ee5c40e41ca8badf4a14c38794cb19647084f656/av/container/input.pyx#L73 It would be great if we could have a way to override this default. For example, on my machine, I have: ``` $ /usr/bin/ffmpeg -hide_banner -decoders | grep h264...
Hello and thank you for the great library! Is it possible to provide more information as per packet returned by Context.parse? Today packets offer no information except for parsed frames...
Hi, Thank for for this awesome module. I want to burn subtitles into my videos, This is my code (it's not the best code that i have written): ```python from...
I just noticed that a simple test I was trying to do didn't work, so I went back the Remux example and it didn't work either. I modified it to...
404 https://pypi.org/project/pyav/ This breaks every install of PyAV out there! Why?