Package Details: python-av 14.2.0-1

Git Clone URL: https://aur.archlinux.org/python-av.git (read-only, click to copy)
Package Base: python-av
Description: Pythonic bindings for FFmpeg
Upstream URL: https://pyav.basswood-io.com
Licenses: BSD-3-Clause
Submitter: peippo
Maintainer: peippo
Last Packager: peippo
Votes: 6
Popularity: 1.99
First Submitted: 2019-07-04 11:24 (UTC)
Last Updated: 2025-02-25 15:38 (UTC)

Latest Comments

1 2 3 4 Next › Last »

peippo commented on 2025-02-25 14:23 (UTC)

Ha, now 14.2.0 got released

micwoj92 commented on 2025-02-25 11:05 (UTC)

Ugh, so there is av and pyav which looks like the same software by same person/people? I was watching pyav pypi package.

https://pypi.org/project/av/
https://pypi.org/project/pyav/
https://github.com/PyAV-Org/PyAV
https://github.com/basswood-io/PyAV

peippo commented on 2025-02-25 10:52 (UTC)

Not sure from where you got the v14.2.1 - on PyPi, on Conda and on GitHub the newest version is 14.1.0

micwoj92 commented on 2025-02-22 19:12 (UTC)

Thanks, I got confused because .pyi files are also used by mypy as stub files.

I opened issue on namcap repo for this: https://gitlab.archlinux.org/pacman/namcap/-/issues/97

peippo commented on 2025-02-21 13:28 (UTC)

pyx are the source code, pyi the compiled cython modules

micwoj92 commented on 2025-02-20 20:07 (UTC) (edited on 2025-02-20 20:09 (UTC) by micwoj92)

You are right, I only checked .py files. In the resulting package the imports are in .pyi files:

usr/lib/python3.13/site-packages/av/sidedata/motionvectors.pyi:import numpy as np
usr/lib/python3.13/site-packages/av/audio/frame.pyi:import numpy as np
usr/lib/python3.13/site-packages/av/video/frame.pyi:import numpy as np
usr/lib/python3.13/site-packages/av/video/frame.pyi:from PIL import Image

Out of curiosity I tried to run Demo from homepage without pillow installed, but then it fails with

Traceback (most recent call last):
  File "<python-input-8>", line 2, in <module>
    frame.to_image().save(f"frame-{index:04d}.jpg")
    ~~~~~~~~~~~~~~^^
  File "av/video/frame.pyx", line 266, in av.video.frame.VideoFrame.to_image
ModuleNotFoundError: No module named 'PIL'

But the av/video/frame.pyx file is nowhere to be found on my filesystem.

peippo commented on 2025-02-20 10:54 (UTC) (edited on 2025-02-20 10:55 (UTC) by peippo)

@micowoj92: I beg to differ, here are two lines of many on which those packages are imported:

https://github.com/PyAV-Org/PyAV/blob/main/av/audio/frame.pyx#L98 https://github.com/PyAV-Org/PyAV/blob/main/av/video/frame.pyx#L279

micwoj92 commented on 2025-02-19 22:25 (UTC)

python-numpy and python-pillow deps are not needed.

peippo commented on 2024-11-11 21:13 (UTC)

Please update to the current version of ffmpeg, then it should build

carlosal1015 commented on 2024-11-11 18:23 (UTC)

src/av/container/pyio.c:3339:157: error: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types]
 3339 |   __pyx_v_self->iocontext = avio_alloc_context(__pyx_v_self->buffer, __pyx_t_9, __pyx_t_10, ((void *)__pyx_v_self), __pyx_f_2av_9container_4pyio_pyio_read, __pyx_f_2av_9container_4pyio_pyio_write, __pyx_v_seek_func);
      |                                                                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                             |
      |                                                                                                                                                             int (*)(void *, const uint8_t *, int) {aka int (*)(void *, const unsigned char *, int)}
In file included from /usr/include/ffmpeg6.1/libavformat/avformat.h:319,
                 from /usr/include/ffmpeg6.1/libavdevice/avdevice.h:57,
                 from src/av/container/pyio.c:1300:
/usr/include/ffmpeg6.1/libavformat/avio.h:420:25: note: expected ‘int (*)(void *, uint8_t *, int)’ {aka ‘int (*)(void *, unsigned char *, int)’} but argument is of type ‘int (*)(void *, const uint8_t *, int)’ {aka ‘int (*)(void *, const unsigned char *, int)’}
  420 |                   int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().
    Aborting...