Package Details: python-avio 3.1.2-3

Git Clone URL: https://aur.archlinux.org/libavio.git (read-only, click to copy)
Package Base: libavio
Description: Python library for processing media streams designed for use in Onvif GUI
Upstream URL: https://github.com/sr99622/libavio
Licenses: Apache-2.0
Submitter: tmn505
Maintainer: tmn505
Last Packager: tmn505
Votes: 0
Popularity: 0.000000
First Submitted: 2024-03-27 21:52 (UTC)
Last Updated: 2024-07-07 12:10 (UTC)

Dependencies (21)

Required by (1)

Sources (1)

Latest Comments

tmn505 commented on 2024-07-07 12:17 (UTC)

I forgot to publish changes which build libavio with ffmpeg4.4 (https://github.com/tmn505/AUR/commit/a09f82785610f6a6d118100f698b5add0e656cc1). Changes pushed. I'll update package to newer version when time permits.

serxxx commented on 2024-07-01 23:45 (UTC) (edited on 2024-07-02 00:00 (UTC) by serxxx)

Seconded; it's been broken for a couple of weeks, which takes onvif-gui out of commission. However, building from the upstream git repo works.

Update Furthermore, the tools that depend on this lib, onvif-gui and onvif-tools, compile with the current (3.2.0) version.

The currently released upstream version builds with this patch; the AUR version is broken.

diff --git a/.SRCINFO b/.SRCINFO
index 29dc9df..968b92e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = libavio
-   pkgver = 3.1.2
-   pkgrel = 2
+   pkgver = 3.2.0
+   pkgrel = 1
    url = https://github.com/sr99622/libavio
    arch = i686
    arch = x86_64
@@ -18,8 +18,8 @@ pkgbase = libavio
    makedepends = python-setuptools
    makedepends = python-wheel
    makedepends = sdl2
-   source = git+https://github.com/sr99622/libavio.git#commit=664f8d5dbb942dcc1eb526c05321bb634d77ea70
-   sha256sums = b8cdf820cff4b88672ebbd78245aa48ca73c138a1c34227049ea621fa3626c9b
+   source = git+https://github.com/sr99622/libavio.git#commit=dd249be9bf2600d384ca58b3120eff1145250256
+   sha256sums = 7bb4f6cf442772838469f80e2e4628f5c7ef03429662d8d12fc162beef0f9303

 pkgname = libavio
    pkgdesc = Library for processing media streams designed for use in Onvif GUI
diff --git a/PKGBUILD b/PKGBUILD
index 1c47de5..2472199 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgbase=libavio
 pkgname=('libavio' 'python-avio')
 pkgver=3.1.2
-pkgrel=2
+pkgrel=1
 url='https://github.com/sr99622/libavio'
 license=('Apache-2.0')
 arch=('i686' 'x86_64')
@@ -22,8 +22,8 @@ makedepends=('cmake'
              'python-setuptools'
              'python-wheel'
              'sdl2')
-source=("git+${url}.git#commit=664f8d5dbb942dcc1eb526c05321bb634d77ea70")
-sha256sums=('b8cdf820cff4b88672ebbd78245aa48ca73c138a1c34227049ea621fa3626c9b')
+source=("git+${url}.git#commit=dd249be9bf2600d384ca58b3120eff1145250256")
+sha256sums=('7bb4f6cf442772838469f80e2e4628f5c7ef03429662d8d12fc162beef0f9303')

 prepare() {
    cd ${srcdir}/${pkgname}

daniell commented on 2024-07-01 09:57 (UTC) (edited on 2024-07-01 09:57 (UTC) by daniell)

Breaks with ffmpeg 7:

-- Build files have been written to: cache/yay/libavio/src/libavio/build-so
[ 15%] Building CXX object CMakeFiles/libavio.dir/src/Clock.cpp.o
[ 15%] Building CXX object CMakeFiles/libavio.dir/src/Decoder.cpp.o
[ 23%] Building CXX object CMakeFiles/libavio.dir/src/Display.cpp.o
In file included from cache/yay/libavio/src/libavio/src/Decoder.cpp:20:
cache/yay/libavio/src/libavio/include/Decoder.h: In member function ‘int avio::Decoder::channels()’:
cache/yay/libavio/src/libavio/include/Decoder.h:42:42: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channels’
   42 |         int channels() { return dec_ctx->channels; }
      |                                          ^~~~~~~~
cache/yay/libavio/src/libavio/include/Decoder.h: In member function ‘uint64_t avio::Decoder::channel_layout()’:
cache/yay/libavio/src/libavio/include/Decoder.h:44:53: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
   44 |         uint64_t channel_layout() { return dec_ctx->channel_layout; }
      |                                                     ^~~~~~~~~~~~~~
      |                                                     ch_layout
In file included from cache/yay/libavio/src/libavio/include/Player.h:28,
                 from cache/yay/libavio/src/libavio/src/Decoder.cpp:21:
cache/yay/libavio/src/libavio/include/Filter.h: In member function ‘int64_t avio::Filter::channel_layout()’:
cache/yay/libavio/src/libavio/include/Filter.h:71:43: error: ‘av_buffersink_get_channel_layout’ was not declared in this scope; did you mean ‘av_buffersink_get_ch_layout’?
   71 |         int64_t channel_layout() { return av_buffersink_get_channel_layout(sink_ctx); }
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           av_buffersink_get_ch_layout
make[2]: *** [CMakeFiles/libavio.dir/build.make:90: CMakeFiles/libavio.dir/src/Decoder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from cache/yay/libavio/src/libavio/include/Display.h:33,
                 from cache/yay/libavio/src/libavio/src/Display.cpp:20:
cache/yay/libavio/src/libavio/include/Decoder.h: In member function ‘int avio::Decoder::channels()’:
cache/yay/libavio/src/libavio/include/Decoder.h:42:42: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channels’
   42 |         int channels() { return dec_ctx->channels; }
      |                                          ^~~~~~~~
cache/yay/libavio/src/libavio/include/Decoder.h: In member function ‘uint64_t avio::Decoder::channel_layout()’:
cache/yay/libavio/src/libavio/include/Decoder.h:44:53: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
   44 |         uint64_t channel_layout() { return dec_ctx->channel_layout; }
      |                                                     ^~~~~~~~~~~~~~
      |                                                     ch_layout
In file included from cache/yay/libavio/src/libavio/include/Display.h:34:
cache/yay/libavio/src/libavio/include/Filter.h: In member function ‘int64_t avio::Filter::channel_layout()’:
cache/yay/libavio/src/libavio/include/Filter.h:71:43: error: ‘av_buffersink_get_channel_layout’ was not declared in this scope; did you mean ‘av_buffersink_get_ch_layout’?
   71 |         int64_t channel_layout() { return av_buffersink_get_channel_layout(sink_ctx); }
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           av_buffersink_get_ch_layout
cache/yay/libavio/src/libavio/src/Display.cpp: In member function ‘int avio::Display::initAudio(avio::Filter*)’:
cache/yay/libavio/src/libavio/src/Display.cpp:146:58: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
  146 |         if (!stream_channel_layout || stream_channels != av_get_channel_layout_nb_channels(stream_channel_layout)) {
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cache/yay/libavio/src/libavio/src/Display.cpp:147:37: error: ‘av_get_default_channel_layout’ was not declared in this scope
  147 |             stream_channel_layout = av_get_default_channel_layout(stream_channels);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cache/yay/libavio/src/libavio/src/Display.cpp:150:27: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
  150 |         stream_channels = av_get_channel_layout_nb_channels(stream_c