From d851344fc0a0a7eeb960c57ac7673514165b08b9 Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Mon, 31 Mar 2025 08:25:47 +0300 Subject: [PATCH] flatpak: add pulseaudio support for sound recording video recording requires pulseaudio support. Otherwise following error happens: ``` Phase 2: mpegize -- /home/mobian/Videos/VID20250331075934.mkv Traceback (most recent call last): File "/app/libexec/megapixels//mpegize.py", line 546, in m.run(sys.argv) File "/app/libexec/megapixels//mpegize.py", line 462, in run gst_convert(m.base, argv[3], ext=="dng") File "/app/libexec/megapixels//mpegize.py", line 260, in gst_convert t2 = audio.get_time() ^^^^^^^^^^^^^^^^ File "/app/libexec/megapixels//mpegize.py", line 102, in get_time s = s[:-m.slen] ~^^^^^^^^^^ TypeError: 'NoneType' object is not subscriptable ``` --- flatpak/me.gapixels.Megapixels.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flatpak/me.gapixels.Megapixels.yml b/flatpak/me.gapixels.Megapixels.yml index 1885619..9fca504 100644 --- a/flatpak/me.gapixels.Megapixels.yml +++ b/flatpak/me.gapixels.Megapixels.yml @@ -17,6 +17,9 @@ finish-args: # wayland access - --socket=wayland + # sound recording + - --socket=pulseaudio + # Needs to save file locally - --filesystem=xdg-pictures - --filesystem=xdg-videos