Skip to content

Commit f0e27cc

Browse files
authored
feat: enable ffmpeg support from content snap (#54)
1 parent 2ebcd31 commit f0e27cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

snap/snapcraft.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ layout:
5959
bind-file: $SNAP_DATA/etc/gitconfig
6060

6161
plugs:
62+
ffmpeg-2404:
63+
interface: content
64+
target: ffmpeg-platform
65+
default-provider: ffmpeg-2404
6266
intel-npu:
6367
interface: custom-device
6468
custom-device: intel-npu-device
@@ -90,8 +94,9 @@ apps:
9094
- removable-media
9195
- unity7
9296
environment:
93-
LD_LIBRARY_PATH: $SNAP/usr/local/lib:$SNAP/usr/local/whisper.cpp/lib:$SNAP/usr/local/libtorch/lib:$SNAP/usr/runtime/lib/intel64:$SNAP/npu-libs:$LD_LIBRARY_PATH
97+
LD_LIBRARY_PATH: $SNAP/usr/local/lib:$SNAP/usr/local/whisper.cpp/lib:$SNAP/usr/local/libtorch/lib:$SNAP/usr/runtime/lib/intel64:$SNAP/npu-libs:$SNAP/ffmpeg-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$LD_LIBRARY_PATH
9498
OCL_ICD_VENDORS: $SNAP/etc/OpenCL/vendors
99+
PATH: $SNAP/ffmpeg-platform/usr/bin:$PATH
95100

96101
fetch-models:
97102
command: usr/bin/fetch-models
@@ -235,7 +240,7 @@ parts:
235240
- -Daudacity_has_sentry_reporting=Off
236241
- -Daudacity_has_crashreports=Off
237242
- -Daudacity_has_updates_check=Off
238-
- -Daudacity_use_ffmpeg=off
243+
- -Daudacity_use_ffmpeg=loaded
239244
- -Daudacity_has_vst3=Off
240245
- -Daudacity_has_tests=Off
241246
- -DwxBUILD_TOOLKIT=gtk3

0 commit comments

Comments
 (0)