com.obsproject.Studio.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. {
  2. "app-id": "com.obsproject.Studio",
  3. "runtime": "org.kde.Platform",
  4. "runtime-version": "6.3",
  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": "baee400fa9ced6f5481a728138fed6e867b0ff7f"
  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.5.0",
  121. "commit": "060c0d1a2af8082c053018fa6a6fe2dba67d71a8"
  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": "869298bffeea13b205343361b7a7daf2b210e33d",
  145. "tag": "v3.2.1"
  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": "809390b3b75a259a704079d0fb4d8f1b5f7fa956"
  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": "fc430c57c7b0307b4c5ffb686cd90b3c010d08d2",
  191. "tag": "v3.4.0"
  192. }
  193. ]
  194. },
  195. {
  196. "name": "svt-av1",
  197. "buildsystem": "cmake-ninja",
  198. "builddir": true,
  199. "config-opts": [
  200. "-DCMAKE_BUILD_TYPE=Release",
  201. "-DBUILD_SHARED_LIBS=ON",
  202. "-DBUILD_APPS=OFF",
  203. "-DBUILD_DEC=ON",
  204. "-DBUILD_ENC=ON",
  205. "-DBUILD_TESTING=OFF"
  206. ],
  207. "cleanup": [
  208. "/include"
  209. ],
  210. "sources": [
  211. {
  212. "type": "git",
  213. "url": "https://gitlab.com/AOMediaCodec/SVT-AV1.git",
  214. "tag": "v1.1.0",
  215. "commit": "6e87a1de98281840abebc030781780edd822bae5"
  216. }
  217. ]
  218. },
  219. {
  220. "name": "ffmpeg",
  221. "config-opts": [
  222. "--enable-gpl",
  223. "--enable-shared",
  224. "--disable-static",
  225. "--enable-gnutls",
  226. "--disable-doc",
  227. "--disable-programs",
  228. "--disable-devices",
  229. "--enable-libopus",
  230. "--enable-libvpx",
  231. "--enable-libvorbis",
  232. "--enable-libx264",
  233. "--enable-nvenc",
  234. "--enable-libsrt",
  235. "--enable-librist",
  236. "--enable-libaom",
  237. "--enable-libsvtav1"
  238. ],
  239. "cleanup": [
  240. "/share/ffmpeg"
  241. ],
  242. "sources": [
  243. {
  244. "type": "git",
  245. "url": "https://github.com/FFmpeg/FFmpeg.git",
  246. "commit": "9687cae2b468e09e35df4cea92cc2e6a0e6c93b3",
  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-07-29",
  254. "commit": "71df2dddb0eb732496448f626553b61bcda8f993"
  255. },
  256. {
  257. "type": "shell",
  258. "commands": [
  259. "patch -Np1 -i obs-deps/deps.ffmpeg/patches/FFmpeg/0001-FFmpeg-9010.patch",
  260. "patch -Np1 -i obs-deps/deps.ffmpeg/patches/FFmpeg/0002-FFmpeg-5.0.1-OBS.patch",
  261. "patch -Np1 -i obs-deps/deps.ffmpeg/patches/FFmpeg/0003-FFmpeg-5.0.1-librist-7f3f3539e8.patch"
  262. ]
  263. }
  264. ]
  265. },
  266. {
  267. "name": "luajit",
  268. "no-autogen": true,
  269. "cleanup": [
  270. "/bin",
  271. "/include",
  272. "*.a"
  273. ],
  274. "sources": [
  275. {
  276. "type": "git",
  277. "url": "https://luajit.org/git/luajit-2.0.git",
  278. "commit": "3065c910ad6027031aabe2dfd3c26a3d0f014b4f",
  279. "disable-shallow-clone": true
  280. },
  281. {
  282. "type": "shell",
  283. "commands": [
  284. "sed -i 's|/usr/local|/app|' ./Makefile"
  285. ]
  286. }
  287. ]
  288. },
  289. {
  290. "name": "swig",
  291. "config-opts": [
  292. "--without-boost",
  293. "--without-pcre",
  294. "--without-alllang",
  295. "--with-lua=/app/bin/luajit-2.1.0-beta3",
  296. "--with-luaincl=/app/include/luajit-2.1",
  297. "--with-python3"
  298. ],
  299. "cleanup": [
  300. "*"
  301. ],
  302. "sources": [
  303. {
  304. "type": "archive",
  305. "url": "https://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz",
  306. "sha256": "d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc"
  307. }
  308. ]
  309. },
  310. {
  311. "name": "jack2",
  312. "buildsystem": "simple",
  313. "build-commands": [
  314. "./waf configure --prefix=$FLATPAK_DEST",
  315. "./waf build -j $FLATPAK_BUILDER_N_JOBS",
  316. "./waf install"
  317. ],
  318. "cleanup": [
  319. "*"
  320. ],
  321. "sources": [
  322. {
  323. "type": "archive",
  324. "url": "https://github.com/jackaudio/jack2/releases/download/v1.9.14/v1.9.14.tar.gz",
  325. "sha256": "a20a32366780c0061fd58fbb5f09e514ea9b7ce6e53b080a44b11a558a83217c"
  326. }
  327. ]
  328. },
  329. {
  330. "name": "pipewire",
  331. "buildsystem": "meson",
  332. "config-opts": [
  333. "-Daudiotestsrc=disabled",
  334. "-Droc=disabled",
  335. "-Dvideotestsrc=disabled",
  336. "-Dvolume=disabled",
  337. "-Dvulkan=disabled",
  338. "-Ddocs=disabled",
  339. "-Dman=disabled",
  340. "-Dbluez5-codec-ldac=disabled",
  341. "-Dbluez5-codec-aptx=disabled",
  342. "-Dlibcamera=disabled",
  343. "-Dudevrulesdir=/app/lib/udev/rules.d/",
  344. "-Dsession-managers=[]",
  345. "-Dtests=disabled",
  346. "-Dexamples=disabled",
  347. "-Dpw-cat=disabled"
  348. ],
  349. "cleanup": [
  350. "/bin"
  351. ],
  352. "sources": [
  353. {
  354. "type": "git",
  355. "url": "https://github.com/pipewire/pipewire.git",
  356. "tag": "0.3.40",
  357. "commit": "7afd80052b7c49754a13c9ab49c368f95b60e0a7"
  358. }
  359. ]
  360. },
  361. {
  362. "name": "ntv2",
  363. "buildsystem": "cmake-ninja",
  364. "builddir": true,
  365. "config-opts": [
  366. "-DCMAKE_BUILD_TYPE=Release",
  367. "-DAJA_BUILD_OPENSOURCE=ON",
  368. "-DAJA_BUILD_APPS=OFF",
  369. "-DAJA_INSTALL_HEADERS=ON"
  370. ],
  371. "cleanup": [
  372. "/include"
  373. ],
  374. "sources": [
  375. {
  376. "type": "git",
  377. "url": "https://github.com/aja-video/ntv2.git",
  378. "tag": "v16.2-bugfix5",
  379. "commit": "0acbac70a0b5e6509cca78cfbf69974c73c10db9"
  380. }
  381. ]
  382. },
  383. {
  384. "name": "cef",
  385. "buildsystem": "cmake-ninja",
  386. "no-make-install": true,
  387. "make-args": [
  388. "libcef_dll_wrapper"
  389. ],
  390. "build-commands": [
  391. "mkdir -p /app/cef/libcef_dll_wrapper",
  392. "cp -R ./include /app/cef",
  393. "cp -R ./Release /app/cef",
  394. "cp -R ./Resources /app/cef",
  395. "cp -R ./libcef_dll_wrapper/libcef_dll_wrapper.a /app/cef/libcef_dll_wrapper"
  396. ],
  397. "cleanup": [
  398. "*"
  399. ],
  400. "sources": [
  401. {
  402. "type": "archive",
  403. "url": "https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2",
  404. "sha256": "1fe9c09bb43e8d2be2c07b792e69fb51250782e68f2c8d1d30da2559cfb9ae0e"
  405. }
  406. ]
  407. },
  408. {
  409. "name": "obs",
  410. "buildsystem": "cmake-ninja",
  411. "builddir": true,
  412. "config-opts": [
  413. "-DCMAKE_BUILD_TYPE=Release",
  414. "-DENABLE_WAYLAND=ON",
  415. "-DENABLE_BROWSER=ON",
  416. "-DCEF_ROOT_DIR=/app/cef",
  417. "-DUSE_XDG=ON",
  418. "-DENABLE_ALSA=OFF",
  419. "-DENABLE_PULSEAUDIO=ON",
  420. "-DENABLE_JACK=ON",
  421. "-DENABLE_RTMPS=ON",
  422. "-DENABLE_VLC=OFF",
  423. "-DENABLE_AJA=ON"
  424. ],
  425. "secret-opts": [
  426. "-DRESTREAM_CLIENTID=$RESTREAM_CLIENTID",
  427. "-DRESTREAM_HASH=$RESTREAM_HASH",
  428. "-DTWITCH_CLIENTID=$TWITCH_CLIENTID",
  429. "-DTWITCH_HASH=$TWITCH_HASH",
  430. "-DYOUTUBE_CLIENTID=$YOUTUBE_CLIENTID",
  431. "-DYOUTUBE_CLIENTID_HASH=$YOUTUBE_CLIENTID_HASH",
  432. "-DYOUTUBE_SECRET=$YOUTUBE_SECRET",
  433. "-DYOUTUBE_SECRET_HASH=$YOUTUBE_SECRET_HASH"
  434. ],
  435. "post-install": [
  436. "cmake --install . --component obs_libraries",
  437. "install -d /app/plugins",
  438. "install -d /app/extensions/Plugins"
  439. ],
  440. "sources": [
  441. {
  442. "type": "dir",
  443. "path": "../../"
  444. }
  445. ]
  446. }
  447. ]
  448. }