I’m trying to figure out why some videos don’t play (specifically some play with image and no sound, and some with sound and no image) in my project, but when I run my app out of Flatpak, every test file plays perfectly.
I tested a lot of combinations of the Flatpak finish-args in the manifest file, here is what I have right now:
{
"app-id" : "org.yphil.matinee",
"runtime" : "org.gnome.Platform",
"runtime-version" : "43",
"sdk" : "org.gnome.Sdk",
"command" : "matinee",
"finish-args" : [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--socket=pulseaudio",
"--share=network",
"--device=all",
"--filesystem=xdg-run/pipewire-0:ro",
"--filesystem=xdg-videos",
"--filesystem=xdg-run/gvfsd",
"--talk-name=org.gtk.vfs.*",
"--talk-name=org.gnome.Shell"
],
"cleanup" : [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules" : [
{
"name" : "matinee",
"builddir" : true,
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "file:///home/px/Projects/matinee",
"branch" : "dev"
}
]
}
]
}
I noticed that the audio codec of the files that play without sound is liba52, and I found something about it in the manifest file of Clapper, another Gtk / Flatpak project. Some other of those “modules” seem like they’d be useful to me, too ; How can I install those dependencies?
After all, I did had to install some system packages for all the videos to play (even in Totem) and apparently Flatpak doesn’t know about all of them…
How can I properly add those media dependencies to my project?