<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[HyperForum — my ffmpeg pkgbuild for x86_64 to remove further neural net issues]]></title>
		<link>https://forums.hyperbola.info/viewtopic.php?id=1189</link>
		<atom:link href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=1189&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in my ffmpeg pkgbuild for x86_64 to remove further neural net issues.]]></description>
		<lastBuildDate>Tue, 26 May 2026 23:35:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: my ffmpeg pkgbuild for x86_64 to remove further neural net issues]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=8901#p8901</link>
			<description><![CDATA[<div class="codebox"><pre><code>--disable-bsf=av1_frame_merge \
    --disable-bsf=av1_frame_split \
    --disable-bsf=av1_metadata \
    --disable-bsf=opus_metadata \
    --disable-decoder=av1 \
    --enable-decoder=libvorbis \
    --disable-decoder=opus \
    --disable-decoder=vorbis \
    --disable-decoder=vp8 \
    --disable-decoder=vp8_v4l2m2m \
    --disable-decoder=vp9 \
    --disable-decoder=vp9_v4l2m2m \
    --disable-decoder=webp \
    --disable-demuxer=av1 \
    --disable-demuxer=obu \
    --disable-demuxer=webm_dash_manifest \
    --disable-demuxer=image_webp_pipe \
    --enable-encoder=libvorbis \
    --disable-encoder=opus \
    --disable-encoder=vorbis \
    --disable-encoder=vp8_v4l2m2m \
    --disable-filter=arnndn \
    --disable-filter=derain \
    --disable-filter=dnn_processing \
    --disable-filter=nnedi \
    --disable-filter=sr \
    --disable-muxer=opus \
    --disable-muxer=webm \
    --disable-muxer=webm_chunk \
    --disable-muxer=webm_dash_manifest \
    --disable-muxer=webp \
    --disable-parser=av1 \
    --disable-parser=opus \
    --disable-parser=vp8 \
    --disable-parser=vp9 \
    --disable-parser=webp \</code></pre></div><p>so, if i remember correctly i first stumbled into some of these options because even building without opus/vpx, ffmpeg would still do things with opus files instead of erroring and denying them, which made me suspicious that it includes internal handling.<br />i&#039;m not able to precisely test and recreate right now, can try and offer that later with example tests, but essentially the purpose is to be sure there&#039;s none of the offending code-family in place.<br />i disabled internal vorbis as ffmpeg own docs say it&#039;s inferior to libvorbis, and i saw no reason to question that as Hyperbola includes libvorbis anyway<br />certainly enabling the opus options when including the system library need to be done, but as for the av1/webp stuff i believe it&#039;s also important to cleanly reject them. and the filters are all related to neural net codes that are independant of any of the named system libs, i believe? or possibly based in otherwise-good ones, but regardless is a measure to reject all &quot;machine learning&quot; family of coding.<br /><a href="https://ffmpeg.org/ffmpeg-filters.html#arnndn">https://ffmpeg.org/ffmpeg-filters.html#arnndn</a><br /><a href="https://ffmpeg.org/ffmpeg-filters.html#derain">https://ffmpeg.org/ffmpeg-filters.html#derain</a><br /><a href="https://ffmpeg.org/ffmpeg-filters.html#sr-1">https://ffmpeg.org/ffmpeg-filters.html#sr-1</a><br />and etc.<br />actually, i don&#039;t remember this but dnn_classify and dnn_detect exist as well. hmmm. not sure if they added recently after our version or not, i have another thing to build-test against then. i thought i caught all mentions with ctrl-f &quot;neural&quot; before so those might be newer version-only further additions, but i&#039;ll need to try specifying and just see if it complains about unknown opt or not.</p><p>i don&#039;t know anything about tenacity, but can try also building it with my ffmpeg builds to see if it can build/start, if there&#039;s a pkgbuild somewhere</p>]]></description>
			<author><![CDATA[null@example.com (aquafoxyirina)]]></author>
			<pubDate>Tue, 26 May 2026 23:35:36 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=8901#p8901</guid>
		</item>
		<item>
			<title><![CDATA[Re: my ffmpeg pkgbuild for x86_64 to remove further neural net issues]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=8900#p8900</link>
			<description><![CDATA[<p>You mentioned disabling further filter-options. Therefore a question: Are those a further risk or more out of an example? Perhaps I have misunderstood that part of your intiial posting. And it would be really nice to approve the package-build as another community-contributed option so others can relate to it. As for now we evaluate also replacing <strong>audacity</strong> with <strong>tenacity</strong> or providing both as a optional choices and ffmpeg makes there a contribution also.</p>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Tue, 26 May 2026 22:55:31 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=8900#p8900</guid>
		</item>
		<item>
			<title><![CDATA[Re: my ffmpeg pkgbuild for x86_64 to remove further neural net issues]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=8899#p8899</link>
			<description><![CDATA[<p>Hello, thank you very much I really love Hyperbola and appreciate all your work on it, and further that the site and forums work even in this old firejail&#039;d palemoon + eMatrix browser ^^</p><p>yeah, i was only using Stable instead of Testing, i&#039;m excited for 0.4.5 hehe<br />as for Opus, i fully recognise outright banishing it from the system as I did may be overkill for some people as long as the old AI-less version is still available, I just personally wanted nothing to do with it here as I&#039;m comfortable with Vorbis. <br />but I believe your decision is correct xD</p><p>mostly just wanted to share since i remember some of the deeper config options tripped me up LOL ;;<br />i saw in the current blacklist that things such as vpx and webp are further added now, which i appreciate!!</p><p>for 32bit, yes, I&#039;ll come back in some days and verify that. feel like I should actually build and install + run it with all these settings to make sure it actually works in a 32bit install, because while i was messing about with disabling internals it took a few tries. although the only thing i know for sure is that this pkgbuild blatantly overrides the i686 opts and uses x86_64 purely for ordering, so that shouldn&#039;t be hard to change.</p><p>i probably jumped the gun posting this yet, was weary of computer work alone and just eagar to share something XD<br />i&#039;ll make sure and come back to this later with a better version!!</p><p>perhaps at the same time i could try also to build following closely with the current Hyperbola package and only adding the disabling internals/switching configure opt order, so that there&#039;s a version without added dependancies or irina-isms and determined solely as optional new version? so it could still exhaustively explicitly list these options but keep Jack, Opus, and such around without pulling in Celt, Caca and the like (largely based on antiX 22&#039;s build from Deb)</p>]]></description>
			<author><![CDATA[null@example.com (aquafoxyirina)]]></author>
			<pubDate>Tue, 26 May 2026 22:26:08 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=8899#p8899</guid>
		</item>
		<item>
			<title><![CDATA[Re: my ffmpeg pkgbuild for x86_64 to remove further neural net issues]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=8898#p8898</link>
			<description><![CDATA[<p>Hello, welcome to the forums and thanks for the contribution.<br />So far Hyperbola has no vp8, vp9 and webp any longer in testing, coming then for 0.4.5.</p><p>opus will be quite more complicated, though we do not see any need for an upgrade. So it would be possible to keep it &quot;legacy&quot; as other packages. What do you think?</p><p>Please take into account to provide packaging-scripts for both architectures: 32bit and 64bit. Hyperbola is <strong>not</strong> 64bit-only.</p>]]></description>
			<author><![CDATA[null@example.com (throgh)]]></author>
			<pubDate>Tue, 26 May 2026 22:13:42 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=8898#p8898</guid>
		</item>
		<item>
			<title><![CDATA[my ffmpeg pkgbuild for x86_64 to remove further neural net issues]]></title>
			<link>https://forums.hyperbola.info/viewtopic.php?pid=8897#p8897</link>
			<description><![CDATA[<div class="codebox"><pre><code># Maintainer (Arch): Maxime Gauduin &lt;alucryd@archlinux.org&gt;
# Contributor (Arch): Bartłomiej Piotrowski &lt;bpiotrowski@archlinux.org&gt;
# Contributor (Arch): Ionut Biru &lt;ibiru@archlinux.org&gt;
# Contributor (Arch): Tom Newsom &lt;Jeepster@gmx.co.uk&gt;
# Contributor (Arch): Paul Mattal &lt;paul@archlinux.org&gt;
# Maintainer: André Silva &lt;emulatorman@hyperbola.info&gt;
# Contributor: Tobias Dausend &lt;throgh@hyperbola.info&gt;

# edit by irina, take 5. lv2, glslang, rubberband, flite don&#039;t work. update to 4.4.5. avcodfec-arm pre-patch

pkgname=ffmpeg
pkgver=4.4.5
pkgrel=1
epoch=2
pkgdesc=&#039;Complete solution to record, convert and stream audio and video&#039;
arch=(x86_64)
url=https://ffmpeg.org/
license=(GPL-3)
depends=(
  alsa-lib
  aribb24
  avisynthplus
  bzip2
  celt
  fontconfig
  frei0r-plugins
  freetype2
  fribidi
  gmp
  lame
  ladspa
  libass
  libavc1394
  libbluray
  libbs2b
  libcaca
  libcdio
  libcdio-paranoia
  libdc1394
  libdrm
  libgme
  libiec61883
  libmodplug
  libomxil-bellagio
  libopenmpt
  libraw1394
  librsvg-legacy
  libsoxr
  libtheora
  libvorbis
  libx11
  libxcb
  libxext
  libxml2
  libxv
  mesa
  openal
  opencore-amr
  openjpeg2
  sdl2
  speex
  twolame
  v4l-utils
  vid.stab
  vmaf
  x264
  x265
  xcb-util-cursor
  xcb-util-image
  xvidcore
  xz
  zimg
  zlib
  zvbi
)
makedepends=(
  clang
  nasm
  quilt
)
source=(
  &quot;https://ffmpeg.org/releases/ffmpeg-${pkgver}.tar.xz&quot;
  &quot;0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch&quot;
  &quot;0001-ffbuild-libversion.sh-add-shebang.patch&quot;
  &quot;vmaf-model-path.patch&quot;
)
sha512sums=(&#039;70df4e63ef507a7ec76da34438142499139769728fd5130d9cf48d56c110ec82c3d6a7e6d1622da03c70167fa861d901d016bbe52c21d2b284b8a0d9f30811dc&#039;
            &#039;1047a23eda51b576ac200d5106a1cd318d1d5291643b3a69e025c0a7b6f3dbc9f6eb0e1e6faa231b7e38c8dd4e49a54f7431f87a93664da35825cc2e9e8aedf4&#039;
            &#039;38443b570cf32b2ba8ffa9ecc5480425c7da9f93f9773fbb3f9ec5f603b369b6225f4329a1b1f34d0ef30b2c9730f25ff9cff31315ed0a89a600df8e53bd54bf&#039;
            &#039;d3675fdba67f91c7af7a891f98e5284986107acc333ac29512d4797ca42cf7ebd99025df3a91c76a3f4325d806f94a63ba6ffb1a2edf80bf9ce09c350b3cd06e&#039;)

prepare() {
  cd ffmpeg-${pkgver}

  patch -Np1 -i &quot;${srcdir}&quot;/0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
  patch -Np1 -i &quot;${srcdir}&quot;/0001-ffbuild-libversion.sh-add-shebang.patch
  patch -Np1 -i &quot;${srcdir}&quot;/vmaf-model-path.patch
}

build() {
  cd ffmpeg-${pkgver}

  if [[ $CARCH = i686 ]]; then
    EXTRAOPTS=&quot;--disable-lto --disable-libvmaf --enable-pic --disable-asm&quot;
  else
    EXTRAOPTS=&quot;--enable-xlib --enable-zlib&quot;
  fi

  ./configure \
    --prefix=/usr \
    --disable-debug \
    --disable-static \
    --disable-stripping \
    --fatal-warnings \
    --toolchain=hardened \
    --enable-alsa \
    --disable-amf \
    --disable-appkit \
    --enable-asm \
    --disable-audiotoolbox \
    --disable-avfoundation \
    --enable-avisynth \
    --disable-bsf=av1_frame_merge \
    --disable-bsf=av1_frame_split \
    --disable-bsf=av1_metadata \
    --disable-bsf=opus_metadata \
    --enable-bzlib \
    --disable-chromaprint \
    --disable-coreimage \
    --disable-cuda-llvm \
    --disable-cuda-nvcc \
    --disable-cuvid \
    --disable-d3d11va \
    --disable-decklink \
    --disable-decoder=av1 \
    --enable-decoder=libvorbis \
    --disable-decoder=opus \
    --disable-decoder=vorbis \
    --disable-decoder=vp8 \
    --disable-decoder=vp8_v4l2m2m \
    --disable-decoder=vp9 \
    --disable-decoder=vp9_v4l2m2m \
    --disable-decoder=webp \
    --disable-demuxer=av1 \
    --disable-demuxer=obu \
    --disable-demuxer=webm_dash_manifest \
    --disable-demuxer=image_webp_pipe \
    --disable-dxva2 \
    --enable-encoder=libvorbis \
    --disable-encoder=opus \
    --disable-encoder=vorbis \
    --disable-encoder=vp8_v4l2m2m \
    --disable-ffnvcodec \
    --disable-filter=arnndn \
    --disable-filter=derain \
    --disable-filter=dnn_processing \
    --disable-filter=nnedi \
    --disable-filter=sr \
    --enable-frei0r \
    --disable-gcrypt \
    --enable-gmp \
    --disable-gnutls \
    --enable-gpl \
    --enable-hardcoded-tables \
    --enable-iconv \
    --disable-jni \
    --enable-ladspa \
    --disable-libaom \
    --enable-libaribb24 \
    --enable-libass \
    --enable-libbluray \
    --enable-libbs2b \
    --enable-libcaca \
    --enable-libcdio \
    --enable-libcelt \
    --disable-libcodec2 \
    --disable-libdav1d \
    --disable-libdavs2 \
    --enable-libdc1394 \
    --enable-libdrm \
    --disable-libfdk-aac \
    --disable-libflite \
    --enable-libfontconfig \
    --enable-libfreetype \
    --enable-libfribidi \
    --disable-libglslang \
    --enable-libgme \
    --disable-libgsm \
    --enable-libiec61883 \
    --disable-libilbc \
    --disable-libjack \
    --disable-libklvanc \
    --disable-libkvazaar \
    --disable-liblensfun \
    --disable-libmfx \
    --enable-libmodplug \
    --enable-libmp3lame \
    --disable-libmysofa \
    --disable-libnpp \
    --enable-libopencore_amrnb \
    --enable-libopencore_amrwb \
    --disable-libopencv \
    --disable-libopenh264 \
    --enable-libopenjpeg \
    --enable-libopenmpt \
    --disable-libopenvino \
    --disable-libopus \
    --disable-libpulse \
    --disable-librabbitmq \
    --disable-librav1e \
    --disable-librist \
    --enable-librsvg \
    --disable-librtmp \
    --disable-librubberband \
    --disable-libshine \
    --disable-libsmbclient \
    --disable-libsnappy \
    --enable-libsoxr \
    --enable-libspeex \
    --disable-libsrt \
    --disable-libssh \
    --disable-libsvtav1 \
    --disable-libtensorflow \
    --disable-libtesseract \
    --enable-libtheora \
    --disable-libtls \
    --enable-libtwolame \
    --disable-libuavs3d \
    --enable-libv4l2 \
    --enable-libvidstab \
    --enable-libvmaf \
    --disable-libvo_amrwbenc \
    --enable-libvorbis \
    --disable-libvpx \
    --disable-libwebp \
    --enable-libx264 \
    --enable-libx265 \
    --disable-libxavs \
    --disable-libxavs2 \
    --enable-libxcb \
    --enable-libxcb-shm \
    --enable-libxcb-xfixes \
    --enable-libxcb-shape \
    --enable-libxml2 \
    --enable-libxvid \
    --enable-libzimg \
    --disable-libzmq \
    --enable-libzvbi \
    --enable-lto \
    --disable-lv2 \
    --enable-lzma \
    --disable-mbedtls \
    --disable-mediacodec \
    --disable-mediafoundation \
    --disable-mmal \
    --disable-muxer=opus \
    --disable-muxer=webm \
    --disable-muxer=webm_chunk \
    --disable-muxer=webm_dash_manifest \
    --disable-muxer=webp \
    --disable-network \
    --disable-nvdec \
    --disable-nvenc \
    --enable-omx \
    --disable-omx-rpi \
    --enable-openal \
    --disable-opencl \
    --enable-opengl \
    --disable-openssl \
    --disable-parser=av1 \
    --disable-parser=opus \
    --disable-parser=vp8 \
    --disable-parser=vp9 \
    --disable-parser=webp \
    --disable-pocketsphinx \
    --disable-rkmpp \
    --disable-schannel \
    --enable-sdl2 \
    --disable-securetransport \
    --enable-shared \
    --disable-sndio \
    --disable-vaapi \
    --disable-vapoursynth \
    --disable-vdpau \
    --enable-version3 \
    --disable-videotoolbox \
    --disable-vulkan \
    --disable-w32threads \
    $EXTRAOPTS \

  make
  make tools/qt-faststart
  make doc/ff{mpeg,play}.1
}

package() {
  cd ffmpeg-${pkgver}

  make DESTDIR=&quot;${pkgdir}&quot; install install-man
  install -Dm 755 tools/qt-faststart &quot;${pkgdir}&quot;/usr/bin/
  install -Dm 644 COPYING.GPLv3 &quot;${pkgdir}&quot;/usr/share/licenses/${pkgname}/COPYING.GPLv3
}</code></pre></div><p>I looked through all of the interior FFmpeg options and tried to suss out enabling/disabling stuff to explicitly deny neural net code/opus/webp/vp8/vp9 and related kinda stuffs, also removing jack going for pure ALSA, while also enabling some thing i remember being not included in Hyperbola&#039;s ffmpeg such as celt, caca, and such. those could be re-disabled to bring in line with stable Hyperbola, but I&#039;m proud of all the explicit enable/disable options ^^ I wanted my ffmpeg to be made completely free of AI type code and to report on all options when called with &quot;ffmpeg -v&quot;<br />i think i did this before 4.4.5 came out for Hyperbola? so wonder if i&#039;m missing a patch or something from there, too.</p><p>compared against: <a href="https://git.hyperbola.info:50100/packages/extra.git/tree/ffmpeg/PKGBUILD">https://git.hyperbola.info:50100/packag … g/PKGBUILD</a></p><p>mostly i believe options such as </p><div class="codebox"><pre><code> --disable-filter=arnndn \
    --disable-filter=derain \
    --disable-filter=dnn_processing \
    --disable-filter=nnedi \</code></pre></div><p>and related settings are my primary contributions that could possibly be added to the baseline FFmpeg, maybe?<br />I&#039;m aware i could clean up that pkgbuild and will later once i manage to get Hyperbola reinstalled... i ignored i686 options but could rewrite it so that they can cleanly be parsed again. maybe could install a 32bit version on my 64bit laptop to see afterwards too. a primary goal was keeping the options alphabetized for easier reading</p>]]></description>
			<author><![CDATA[null@example.com (aquafoxyirina)]]></author>
			<pubDate>Tue, 26 May 2026 21:59:07 +0000</pubDate>
			<guid>https://forums.hyperbola.info/viewtopic.php?pid=8897#p8897</guid>
		</item>
	</channel>
</rss>
