com.obsproject.Studio.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. {
  2. "app-id": "com.obsproject.Studio",
  3. "runtime": "org.kde.Platform",
  4. "runtime-version": "5.15-21.08",
  5. "sdk": "org.kde.Sdk",
  6. "command": "obs",
  7. "finish-args": [
  8. "--socket=wayland",
  9. "--socket=x11",
  10. "--socket=pulseaudio",
  11. "--device=all",
  12. "--share=network",
  13. "--share=ipc",
  14. "--filesystem=xdg-run/pipewire-0",
  15. "--filesystem=host",
  16. "--talk-name=org.kde.StatusNotifierWatcher",
  17. "--talk-name=org.freedesktop.Flatpak",
  18. "--talk-name=org.freedesktop.Notifications",
  19. "--talk-name=org.a11y.Bus",
  20. "--own-name=org.kde.StatusNotifierItem-2-2",
  21. "--system-talk-name=org.freedesktop.Avahi",
  22. "--env=VST_PATH=/app/extensions/Plugins/lxvst"
  23. ],
  24. "add-extensions": {
  25. "com.obsproject.Studio.Plugin": {
  26. "directory": "plugins",
  27. "subdirectories": true,
  28. "add-ld-path": "lib",
  29. "merge-dirs": "lib/obs-plugins;share/obs/obs-plugins",
  30. "no-autodownload": true,
  31. "autodelete": true
  32. },
  33. "org.freedesktop.LinuxAudio.Plugins": {
  34. "directory": "extensions/Plugins",
  35. "version": "21.08",
  36. "add-ld-path": "lib",
  37. "merge-dirs": "lxvst",
  38. "subdirectories": true,
  39. "no-autodownload": true
  40. }
  41. },
  42. "cleanup": [
  43. "/lib/pkgconfig",
  44. "/share/man",
  45. "*.la"
  46. ],
  47. "modules": [
  48. {
  49. "name": "x264",
  50. "config-opts": [
  51. "--disable-cli",
  52. "--enable-shared"
  53. ],
  54. "cleanup": [
  55. "/include"
  56. ],
  57. "sources": [
  58. {
  59. "type": "git",
  60. "url": "https://code.videolan.org/videolan/x264.git",
  61. "commit": "66a5bc1bd1563d8227d5d18440b525a09bcf17ca"
  62. }
  63. ]
  64. },
  65. {
  66. "name": "v4l-utils",
  67. "config-opts": [
  68. "--disable-static",
  69. "--disable-doxygen-doc",
  70. "--disable-libdvbv5",
  71. "--disable-v4l-utils",
  72. "--disable-qv4l2",
  73. "--with-udevdir=/app/lib/udev/"
  74. ],
  75. "cleanup": [
  76. "/include"
  77. ],
  78. "sources": [
  79. {
  80. "type": "archive",
  81. "url": "https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.22.0.tar.bz2",
  82. "sha256": "1069e5d7909bcc563baeaadc3a5c496f0e658524c413cf7818816e37bfcea344"
  83. }
  84. ]
  85. },
  86. {
  87. "name": "nv-codec-headers",
  88. "no-autogen": true,
  89. "make-install-args": [
  90. "PREFIX=/app"
  91. ],
  92. "cleanup": [
  93. "*"
  94. ],
  95. "sources": [
  96. {
  97. "type": "git",
  98. "url": "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git",
  99. "tag": "n11.1.5.1",
  100. "commit": "84483da70d903239d4536763fde8c7e6c4e80784"
  101. }
  102. ]
  103. },
  104. {
  105. "name": "srt",
  106. "buildsystem": "cmake-ninja",
  107. "config-opts": [
  108. "-DENABLE_STATIC=OFF",
  109. "-DENABLE_APPS=OFF",
  110. "-DENABLE_LOGGING=OFF"
  111. ],
  112. "cleanup": [
  113. "/include",
  114. "/bin"
  115. ],
  116. "sources": [
  117. {
  118. "type": "git",
  119. "url": "https://github.com/Haivision/srt.git",
  120. "tag": "v1.4.4",
  121. "commit": "8b32f3734ff6af7cc7b0fef272591cb80a2d1aae"
  122. }
  123. ]
  124. },
  125. {
  126. "name": "mbedtls",
  127. "buildsystem": "cmake-ninja",
  128. "builddir": true,
  129. "config-opts": [
  130. "-DCMAKE_BUILD_TYPE=Release",
  131. "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
  132. "-DUSE_SHARED_MBEDTLS_LIBRARY=ON",
  133. "-DUSE_STATIC_MBEDTLS_LIBRARY=OFF",
  134. "-DENABLE_TESTING=OFF",
  135. "-DENABLE_PROGRAMS=OFF"
  136. ],
  137. "cleanup": [
  138. "/include"
  139. ],
  140. "sources": [
  141. {
  142. "type": "git",
  143. "url": "https://github.com/ARMmbed/mbedtls.git",
  144. "commit": "f71e2878084126737cc39083e1e15afc459bd93d",
  145. "tag": "v2.27.0"
  146. }
  147. ]
  148. },
  149. {
  150. "name": "librist",
  151. "buildsystem":"meson",
  152. "builddir": true,
  153. "config-opts": [
  154. "-Duse_mbedtls=true",
  155. "-Dtest=false",
  156. "-Dbuilt_tools=false",
  157. "-Dbuiltin_cjson=true"
  158. ],
  159. "cleanup": [
  160. "/include"
  161. ],
  162. "sources": [
  163. {
  164. "type": "git",
  165. "url": "https://code.videolan.org/rist/librist.git",
  166. "commit": "419f09ea9aa9bf15f9c43b7752ca878521543679"
  167. }
  168. ]
  169. },
  170. {
  171. "name": "aom",
  172. "buildsystem": "cmake-ninja",
  173. "builddir": true,
  174. "config-opts": [
  175. "-DCMAKE_BUILD_TYPE=Release",
  176. "-DBUILD_SHARED_LIBS=ON",
  177. "-DENABLE_DOCS=OFF",
  178. "-DENABLE_EXAMPLES=OFF",
  179. "-DENABLE_TESTDATA=OFF",
  180. "-DENABLE_TESTS=OFF",
  181. "-DENABLE_TOOLS=OFF "
  182. ],
  183. "cleanup": [
  184. "/include"
  185. ],
  186. "sources": [
  187. {
  188. "type": "git",
  189. "url": "https://aomedia.googlesource.com/aom.git",
  190. "commit": "402e264b94fd74bdf66837da216b6251805b4ae4"
  191. }
  192. ]
  193. },
  194. {
  195. "name": "svt-av1",
  196. "buildsystem": "cmake-ninja",
  197. "builddir": true,
  198. "config-opts": [
  199. "-DCMAKE_BUILD_TYPE=Release",
  200. "-DBUILD_SHARED_LIBS=ON",
  201. "-DBUILD_APPS=OFF",
  202. "-DBUILD_DEC=ON",
  203. "-DBUILD_ENC=ON",
  204. "-DBUILD_TESTING=OFF"
  205. ],
  206. "cleanup": [
  207. "/include"
  208. ],
  209. "sources": [
  210. {
  211. "type": "git",
  212. "url": "https://gitlab.com/AOMediaCodec/SVT-AV1.git",
  213. "tag": "v0.9.0",
  214. "commit": "fdf4f36867bba068e221965d12c5975c509845da"
  215. }
  216. ]
  217. },
  218. {
  219. "name": "ffmpeg",
  220. "config-opts": [
  221. "--enable-gpl",
  222. "--enable-shared",
  223. "--disable-static",
  224. "--enable-gnutls",
  225. "--disable-doc",
  226. "--disable-programs",
  227. "--disable-devices",
  228. "--enable-libopus",
  229. "--enable-libvpx",
  230. "--enable-libvorbis",
  231. "--enable-libx264",
  232. "--enable-nvenc",
  233. "--enable-libsrt",
  234. "--enable-librist",
  235. "--enable-libaom",
  236. "--enable-libsvtav1"
  237. ],
  238. "cleanup": [
  239. "/share/ffmpeg",
  240. "/include"
  241. ],
  242. "sources": [
  243. {
  244. "type": "git",
  245. "url": "https://git.ffmpeg.org/ffmpeg.git",
  246. "commit": "cc33e73618a981de7fd96385ecb34719de031f16",
  247. "disable-shallow-clone": true
  248. },
  249. {
  250. "type": "git",
  251. "dest": "obs-deps",
  252. "url": "https://github.com/obsproject/obs-deps.git",
  253. "tag": "2022-01-01",
  254. "commit": "15072cd42722d87c6b3ed1636b22e98c08575f20"
  255. },
  256. {
  257. "type": "shell",
  258. "commands": [
  259. "git cherry-pick -n d1b47f3bfcc625ca1cae210fc198dcbd54381a88 # avcodec/vaapi_encode: Fix segfault upon closing uninitialized encoder",
  260. "git cherry-pick -n c5f314309067dc85c165b975f53975c38e196258 # avcodec/libsvtav1: properly enforce CQP mode when set in wrapper",
  261. "git cherry-pick -n 0463f5d6d56db6cc01bc88a0d77488f4ef23dfdc # avcodec/libsvtav1: Fix value range for rc mode",
  262. "git cherry-pick -n 64e2fb3f9d89e5ad552f48e2d5beb9be7a91572a # avcodec/libsvtav1: make coded GOP type configurable",
  263. "git cherry-pick -n 04b89e8ae33ba74e5cb5b3b770613fa599f9cb36 # avcodec/libsvtav1: Fix duplicate definition of caps_internal",
  264. "patch -Np1 -i obs-deps/CI/patches/FFmpeg-4.4.1-OBS.patch",
  265. "patch -Np1 -i obs-deps/CI/patches/FFmpeg-4.4.1-librist.patch",
  266. "patch -Np1 -i obs-deps/CI/patches/FFmpeg-4.4.1-libaomenc.patch",
  267. "patch -Np1 -i obs-deps/CI/patches/FFmpeg-9010.patch"
  268. ]
  269. }
  270. ]
  271. },
  272. {
  273. "name": "luajit",
  274. "no-autogen": true,
  275. "cleanup": [
  276. "/bin",
  277. "/include",
  278. "*.a"
  279. ],
  280. "sources": [
  281. {
  282. "type": "git",
  283. "url": "https://luajit.org/git/luajit-2.0.git",
  284. "commit": "a91d0d9d3bba1a936669cfac3244509a0f2ac0e3",
  285. "disable-shallow-clone": true
  286. },
  287. {
  288. "type": "shell",
  289. "commands": [
  290. "sed -i 's|/usr/local|/app|' ./Makefile"
  291. ]
  292. }
  293. ]
  294. },
  295. {
  296. "name": "swig",
  297. "config-opts": [
  298. "--without-boost",
  299. "--without-pcre",
  300. "--without-alllang",
  301. "--with-lua=/app/bin/luajit-2.1.0-beta3",
  302. "--with-luaincl=/app/include/luajit-2.1",
  303. "--with-python3"
  304. ],
  305. "cleanup": [
  306. "*"
  307. ],
  308. "sources": [
  309. {
  310. "type": "archive",
  311. "url": "https://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz",
  312. "sha256": "d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc"
  313. }
  314. ]
  315. },
  316. {
  317. "name": "jack2",
  318. "buildsystem": "simple",
  319. "build-commands": [
  320. "./waf configure --prefix=$FLATPAK_DEST",
  321. "./waf build -j $FLATPAK_BUILDER_N_JOBS",
  322. "./waf install"
  323. ],
  324. "cleanup": [
  325. "*"
  326. ],
  327. "sources": [
  328. {
  329. "type": "archive",
  330. "url": "https://github.com/jackaudio/jack2/releases/download/v1.9.14/v1.9.14.tar.gz",
  331. "sha256": "a20a32366780c0061fd58fbb5f09e514ea9b7ce6e53b080a44b11a558a83217c"
  332. }
  333. ]
  334. },
  335. {
  336. "name": "pipewire",
  337. "buildsystem": "meson",
  338. "config-opts": [
  339. "-Daudiotestsrc=disabled",
  340. "-Droc=disabled",
  341. "-Dvideotestsrc=disabled",
  342. "-Dvolume=disabled",
  343. "-Dvulkan=disabled",
  344. "-Ddocs=disabled",
  345. "-Dman=disabled",
  346. "-Dbluez5-codec-ldac=disabled",
  347. "-Dbluez5-codec-aptx=disabled",
  348. "-Dlibcamera=disabled",
  349. "-Dudevrulesdir=/app/lib/udev/rules.d/",
  350. "-Dsession-managers=[]",
  351. "-Dtests=disabled",
  352. "-Dexamples=disabled",
  353. "-Dpw-cat=disabled"
  354. ],
  355. "cleanup": [
  356. "/include",
  357. "/bin"
  358. ],
  359. "sources": [
  360. {
  361. "type": "git",
  362. "url": "https://github.com/pipewire/pipewire.git",
  363. "tag": "0.3.40",
  364. "commit": "7afd80052b7c49754a13c9ab49c368f95b60e0a7"
  365. }
  366. ]
  367. },
  368. {
  369. "name": "ntv2",
  370. "buildsystem": "cmake-ninja",
  371. "builddir": true,
  372. "config-opts": [
  373. "-DCMAKE_BUILD_TYPE=Release",
  374. "-DAJA_BUILD_OPENSOURCE=ON",
  375. "-DAJA_BUILD_APPS=OFF",
  376. "-DAJA_INSTALL_HEADERS=ON"
  377. ],
  378. "cleanup": [
  379. "/include"
  380. ],
  381. "sources": [
  382. {
  383. "type": "git",
  384. "url": "https://github.com/aja-video/ntv2.git",
  385. "tag": "v16.2-bugfix5",
  386. "commit": "0acbac70a0b5e6509cca78cfbf69974c73c10db9"
  387. }
  388. ]
  389. },
  390. {
  391. "name": "cef",
  392. "buildsystem": "cmake-ninja",
  393. "no-make-install": true,
  394. "make-args": [
  395. "libcef_dll_wrapper"
  396. ],
  397. "build-commands": [
  398. "mkdir -p /app/cef/libcef_dll_wrapper",
  399. "cp -R ./include /app/cef",
  400. "cp -R ./Release /app/cef",
  401. "cp -R ./Resources /app/cef",
  402. "cp -R ./libcef_dll_wrapper/libcef_dll_wrapper.a /app/cef/libcef_dll_wrapper"
  403. ],
  404. "cleanup": [
  405. "*"
  406. ],
  407. "sources": [
  408. {
  409. "type": "archive",
  410. "url": "https://cdn-fastly.obsproject.com/downloads/cef_binary_4638_linux64.tar.bz2",
  411. "sha256": "54aba14a7228bb8f2573e081d795b4161bf3568796f8729ad42a9f8ef9c6d1ec"
  412. }
  413. ]
  414. },
  415. {
  416. "name": "obs",
  417. "buildsystem": "cmake-ninja",
  418. "builddir": true,
  419. "config-opts": [
  420. "-DCMAKE_BUILD_TYPE=Release",
  421. "-DENABLE_WAYLAND=ON",
  422. "-DENABLE_BROWSER=ON",
  423. "-DCEF_ROOT_DIR=/app/cef",
  424. "-DUSE_XDG=ON",
  425. "-DENABLE_ALSA=OFF",
  426. "-DENABLE_PULSEAUDIO=ON",
  427. "-DENABLE_JACK=ON",
  428. "-DENABLE_RTMPS=ON",
  429. "-DENABLE_VLC=OFF",
  430. "-DENABLE_AJA=ON"
  431. ],
  432. "secret-opts": [
  433. "-DRESTREAM_CLIENTID=$RESTREAM_CLIENTID",
  434. "-DRESTREAM_HASH=$RESTREAM_HASH",
  435. "-DTWITCH_CLIENTID=$TWITCH_CLIENTID",
  436. "-DTWITCH_HASH=$TWITCH_HASH",
  437. "-DYOUTUBE_CLIENTID=$YOUTUBE_CLIENTID",
  438. "-DYOUTUBE_CLIENTID_HASH=$YOUTUBE_CLIENTID_HASH",
  439. "-DYOUTUBE_SECRET=$YOUTUBE_SECRET",
  440. "-DYOUTUBE_SECRET_HASH=$YOUTUBE_SECRET_HASH"
  441. ],
  442. "post-install": [
  443. "cmake --install . --component obs_libraries",
  444. "install -d /app/plugins",
  445. "install -d /app/extensions/Plugins"
  446. ],
  447. "sources": [
  448. {
  449. "type": "dir",
  450. "path": "../../"
  451. }
  452. ]
  453. }
  454. ]
  455. }