{
 "app_id": "org.pitivi.Pitivi",
 "source_url": "https://raw.githubusercontent.com/flathub/org.pitivi.Pitivi/master/org.pitivi.Pitivi.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 28,
 "fetched_at": "2026-09-17T16:16:21.270116+00:00",
 "manifest": {
  "app-id": "org.pitivi.Pitivi",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "pitivi",
  "rename-mime-icons": [
   "text-x-xges"
  ],
  "rename-mime-file": "org.pitivi.Pitivi-mime.xml",
  "finish-args": [
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--metadata=X-DConf=migrate-path=/org/pitivi/Pitivi/",
   "--env=GST_PLUGIN_PATH=/app/lib/codecs/lib/gstreamer-1.0",
   "--env=GST_ENCODING_TARGET_PATH=/app/share/gstreamer-1.0/encoding-profiles/:/app/share/pitivi/encoding-profiles/",
   "--env=LADSPA_PATH=/app/extensions/Plugins/ladspa",
   "--env=LV2_PATH=$HOME/.lv2:/app/extensions/Plugins/lv2",
   "--talk-name=org.freedesktop.Notifications",
   "--filesystem=host",
   "--device=dri"
  ],
  "build-options": {
   "env": {
    "GST_PLUGIN_SYSTEM_PATH": "/app/lib/gstreamer-1.0/:/app/lib/codecs/lib/gstreamer-1.0/",
    "FREI0R_PATH": "/app/lib/frei0r-1/",
    "PYTHON": "python3"
   },
   "ldflags": "-L/app/lib/codecs/lib",
   "append-ld-library-path": "/app/lib/codecs/lib"
  },
  "cleanup": [
   "/include",
   "*.a",
   "*.la",
   "/lib/cmake",
   "/lib/gstreamer-1.0/include",
   "/lib/pkgconfig",
   "/share/man"
  ],
  "add-extensions": {
   "org.pitivi.Pitivi.Codecs": {
    "directory": "lib/codecs",
    "add-ld-path": "lib",
    "bundle": true,
    "autodelete": true
   },
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa;lv2",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "modules": [
   {
    "name": "openblas",
    "no-autogen": true,
    "build-options": {
     "cflags": "-std=gnu18"
    },
    "make-args": [
     "DYNAMIC_ARCH=1",
     "FC=gfortran",
     "NO_CBLAS=1",
     "NO_LAPACKE=1",
     "USE_OPENMP=0"
    ],
    "make-install-args": [
     "PREFIX=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/xianyi/OpenBLAS/archive/v0.3.24.tar.gz",
      "sha256": "ceadc5065da97bd92404cac7254da66cc6eb192679cf1002098688978d4d5132"
     }
    ]
   },
   "python3-meson-python.json",
   "python3-scipy.json",
   "python3-cppy.json",
   "python3-six.json",
   "python3-matplotlib.json",
   {
    "name": "lapack",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "cleanup": [
     "/lib/cmake"
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DBUILD_SHARED_LIBS=ON",
     "-DBUILD_TESTING=OFF",
     "-DLAPACKE=ON",
     "-DCBLAS=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.1.tar.gz",
      "sha256": "2ca6407a001a474d4d4d35f3a61550156050c48016d949f0da0529c0aa052422"
     }
    ]
   },
   "python3-scikit-build-core.json",
   "python3-setuptools_scm.json",
   "python3-nanobind.json",
   "python3-librosa.json",
   "shared-modules/libcanberra/libcanberra.json",
   {
    "name": "gsound",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/gsound.git",
      "tag": "1.0.3",
      "commit": "95d36d60cf53e0e7c5d5325e0f1f4fc765a611ae"
     }
    ]
   },
   {
    "name": "x264",
    "config-opts": [
     "--enable-shared",
     "--enable-static",
     "--enable-pic",
     "--disable-lavf"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.videolan.org/pub/x264/snapshots/x264-snapshot-20191217-2245-stable.tar.bz2",
      "sha256": "b2495c8f2930167d470994b1ce02b0f4bfb24b3317ba36ba7f112e9809264160"
     }
    ]
   },
   {
    "name": "gavl",
    "rm-configure": true,
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "--with-cpuflags=-msse -msse2"
       ]
      }
     }
    },
    "config-opts": [
     "--without-doxygen"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/gmerlin/gavl/1.4.0/gavl-1.4.0.tar.gz",
      "mirror-urls": [
       "http://http.debian.net/debian/pool/main/g/gavl/gavl_1.4.0.orig.tar.gz"
      ],
      "sha256": "51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce"
     },
     {
      "type": "patch",
      "paths": [
       "patches/gavl-ubuntu_armel_ftbfs.patch",
       "patches/gavl-build-gcc14.patch"
      ]
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "frei0r-plugin",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/dyne/frei0r/archive/v2.3.1.tar.gz",
      "sha256": "dd6dbe49ba743421d8ced07781ca09c2ac62522beec16abf1750ef6fe859ddc9"
     }
    ]
   },
   {
    "name": "soundtouch",
    "sources": [
     {
      "type": "archive",
      "url": "https://codeberg.org/soundtouch/soundtouch/archive/2.3.2.tar.gz",
      "sha256": "ed714f84a3e748de87b24f385ec69d3bdc51ca47b7f4710d2048b84b2761e7ff"
     },
     {
      "type": "patch",
      "path": "patches/soundtouch-disable-fast-math-as-it-affects-the-entire-process.patch"
     }
    ]
   },
   {
    "name": "vo-aacenc",
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/opencore-amr/vo-aacenc/vo-aacenc-0.1.3.tar.gz",
      "mirror-urls": [
       "http://ftp.debian.org/debian/pool/main/v/vo-aacenc/vo-aacenc_0.1.3.orig.tar.gz"
      ],
      "sha256": "e51a7477a359f18df7c4f82d195dab4e14e7414cbd48cf79cc195fc446850f36"
     }
    ]
   },
   {
    "name": "x265",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "cxxflags": "-fPIC"
      }
     }
    },
    "subdir": "source",
    "sources": [
     {
      "type": "archive",
      "url": "https://get.videolan.org/x265/x265_3.2.1.tar.gz",
      "sha256": "fb9badcf92364fd3567f8b5aa0e5e952aeea7a39a2b864387cec31e3b58cbbcc"
     },
     {
      "type": "patch",
      "path": "patches/x265-cmake.patch"
     }
    ]
   },
   {
    "name": "fdkaac",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mstorsjo/fdk-aac.git",
      "tag": "v2.0.2",
      "commit": "801f67f671929311e0c9952c5f92d6e147c7b003"
     }
    ]
   },
   {
    "name": "opencv",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DOPENCV_EXTRA_MODULES_PATH=../contrib/modules",
     "-DOPENCV_GENERATE_PKGCONFIG=1",
     "-DWITH_LAPACK=OFF",
     "-DBUILD_PERF_TESTS=OFF",
     "-DBUILD_TESTS=OFF",
     "-DBUILD_opencv_alphamat=OFF",
     "-DBUILD_opencv_aruco=OFF",
     "-DBUILD_opencv_bgsegm=ON",
     "-DBUILD_opencv_bioinspired=OFF",
     "-DBUILD_opencv_ccalib=OFF",
     "-DBUILD_opencv_cnn_3dobj=OFF",
     "-DBUILD_opencv_cudaarithm=OFF",
     "-DBUILD_opencv_cudabgsegm=OFF",
     "-DBUILD_opencv_cudacodec=OFF",
     "-DBUILD_opencv_cudafeatures2d=OFF",
     "-DBUILD_opencv_cudafilters=OFF",
     "-DBUILD_opencv_cudaimgproc=OFF",
     "-DBUILD_opencv_cudalegacy=OFF",
     "-DBUILD_opencv_cudaobjdetect=OFF",
     "-DBUILD_opencv_cudaoptflow=OFF",
     "-DBUILD_opencv_cudastereo=OFF",
     "-DBUILD_opencv_cudawarping=OFF",
     "-DBUILD_opencv_cudev=OFF",
     "-DBUILD_opencv_cvv=OFF",
     "-DBUILD_opencv_datasets=OFF",
     "-DBUILD_opencv_dnn_objdetect=OFF",
     "-DBUILD_opencv_dnns_easily_fooled=OFF",
     "-DBUILD_opencv_dnn_superres=OFF",
     "-DBUILD_opencv_dpm=OFF",
     "-DBUILD_opencv_face=OFF",
     "-DBUILD_opencv_freetype=OFF",
     "-DBUILD_opencv_fuzzy=OFF",
     "-DBUILD_opencv_hdf=OFF",
     "-DBUILD_opencv_hfs=OFF",
     "-DBUILD_opencv_img_hash=OFF",
     "-DBUILD_opencv_intensity_transform=OFF",
     "-DBUILD_opencv_line_descriptor=OFF",
     "-DBUILD_opencv_matlab=OFF",
     "-DBUILD_opencv_optflow=OFF",
     "-DBUILD_opencv_ovis=OFF",
     "-DBUILD_opencv_phase_unwrapping=OFF",
     "-DBUILD_opencv_plot=ON",
     "-DBUILD_opencv_quality=OFF",
     "-DBUILD_opencv_rapid=OFF",
     "-DBUILD_opencv_reg=OFF",
     "-DBUILD_opencv_rgbd=OFF",
     "-DBUILD_opencv_saliency=OFF",
     "-DBUILD_opencv_sfm=OFF",
     "-DBUILD_opencv_shape=OFF",
     "-DBUILD_opencv_stereo=OFF",
     "-DBUILD_opencv_structured_light=OFF",
     "-DBUILD_opencv_superres=OFF",
     "-DBUILD_opencv_surface_matching=OFF",
     "-DBUILD_opencv_text=OFF",
     "-DBUILD_opencv_tracking=ON",
     "-DBUILD_opencv_videostab=OFF",
     "-DBUILD_opencv_viz=OFF",
     "-DBUILD_opencv_xfeatures2d=OFF",
     "-DBUILD_opencv_ximgproc=OFF",
     "-DBUILD_opencv_xobjdetect=OFF",
     "-DBUILD_opencv_xphoto=OFF"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/opencv/opencv/archive/4.8.0.tar.gz",
      "sha256": "cbf47ecc336d2bff36b0dcd7d6c179a9bb59e805136af6b9670ca944aef889bd"
     },
     {
      "type": "archive",
      "url": "https://github.com/opencv/opencv_contrib/archive/4.8.0.tar.gz",
      "sha256": "b4aef0f25a22edcd7305df830fa926ca304ea9db65de6ccd02f6cfa5f3357dbb",
      "dest": "contrib"
     },
     {
      "type": "patch",
      "path": "patches/opencv-cmake.patch"
     }
    ]
   },
   "shared-modules/linux-audio/lv2.json",
   "shared-modules/linux-audio/lilv.json",
   "shared-modules/libsoup/libsoup-2.4.json",
   {
    "name": "gstreamer",
    "buildsystem": "meson",
    "builddir": true,
    "config-opts": [
     "-Dgpl=enabled",
     "-Dbad=enabled",
     "-Dugly=enabled",
     "-Dvaapi=enabled",
     "-Dpython=enabled",
     "-Ddoc=disabled"
    ],
    "post-install": [
     "mkdir -p /app/lib/codecs/lib/gstreamer-1.0",
     "mv /app/lib/libvo-aacenc.so* /app/lib/codecs/lib",
     "mv /app/lib/libx265.so* /app/lib/codecs/lib",
     "mv /app/lib/libfdk-aac.so* /app/lib/codecs/lib",
     "mv /app/lib/gstreamer-1.0/libgst{fdkaac,voaacenc,x265}.so /app/lib/codecs/lib/gstreamer-1.0",
     "mv /app/lib/gstreamer-1.0/libgstlibav.so /app/lib/codecs/lib/gstreamer-1.0"
    ],
    "sources": [
     {
      "type": "git",
      "tag": "1.26.8",
      "url": "https://gitlab.freedesktop.org/gstreamer/gstreamer.git",
      "commit": "16d77e12ad213ef24e76a8cc34d347b8221c9975"
     },
     {
      "type": "git",
      "url": "https://gitlab.freedesktop.org/gstreamer/orc.git",
      "commit": "96dfe82ae431d8e4e06b6092171e231d693a73b5",
      "tag": "0.4.41",
      "dest": "subprojects/orc"
     }
    ]
   },
   {
    "name": "pygobject",
    "//": "This is necessary because the version in the runtime no longer support the libpeas that is needed for pitivi",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/pygobject/3.50/pygobject-3.50.0.tar.xz",
      "sha256": "8d836e75b5a881d457ee1622cae4a32bcdba28a0ba562193adb3bbb472472212"
     }
    ]
   },
   {
    "name": "libpeas",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/libpeas.git",
      "tag": "libpeas-1.36.0",
      "commit": "7f245fa5158204621c3469756a951b68a651c4fe"
     }
    ]
   },
   {
    "name": "pitivi",
    "buildsystem": "meson",
    "builddir": true,
    "post-install": [
     "install -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/GNOME/pitivi.git",
      "tag": "2023.03.0",
      "commit": "06414db5ab7d6e0e5f1b174183b376c60c6e642d"
     },
     {
      "type": "patch",
      "paths": [
       "patches/pitivi-appdata.patch",
       "patches/pitivi-viewer.patch",
       "patches/pitivi-thumbnails.patch"
      ]
     }
    ]
   }
  ]
 }
}