Commit Graph

4 Commits

Author SHA1 Message Date
Andrey Skvortsov
d851344fc0 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 <module>
    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
```
2025-04-08 22:51:27 +00:00
Andrey Skvortsov
8262265ae2 flatpak: give access to user's Videos directory
This is needed to save recorded videos.
2025-04-08 22:51:27 +00:00
Andrey Skvortsov
e23d02a951 flatpak: drop unneeded dri access
access to all device is granted already, so there is no need in
granting access to dri devices.
2025-04-08 22:51:27 +00:00
Andrey Skvortsov
f756a1fd88 Add flatpak packaging
command to build:
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir flatpak/me.gapixels.Megapixels.yml
2025-03-09 00:10:50 +03:00