nate-xyz / resonance

Intuitive GTK4/LibAdwaita music player
https://beta.flathub.org/apps/io.github.nate_xyz.Resonance
GNU General Public License v3.0
347 stars 21 forks source link

[Flatpak] .wma files are not supported #13

Open Sky-NiniKo opened 1 year ago

Sky-NiniKo commented 1 year ago

How to reproduce

  1. Install resonance through Flathub
  2. Have a .wma file (you can use ffmpeg (CLI) or FFaudioConverter (GUI))
  3. Add it to your library
  4. Try playing the track

Traceback

ERROR resonance::player::gst_backend                         > Error from element `typefind`: Error { domain: gst-stream-error-quark, code: 1, message: "Internal data stream error." } 
DEBUG resonance::player::gst_backend                         > Debug info: ../plugins/elements/gsttypefindelement.c(1257): gst_type_find_element_loop (): /GstPlayBin3:playbin3-0/GstURIDecodeBin3:uridecodebin3-0/GstDecodebin3:decodebin3-0/GstParseBin:parsebin0/GstTypeFindElement:typefind:streaming stopped, reason not-linked (-1) 
ERROR resonance::player::player                              > Player error

Possible solution

It's seem like a missing dependency for gstreamer.

tfuxu commented 1 year ago

ASF (format used in .asf, .wma and .wmv files) parser for GStreamer is available in "Ugly" plug-in set: https://github.com/GStreamer/gst-plugins-ugly/tree/master/gst/asfdemux.

I couldn't find how to include those plugins in Flatpak manifest, but they can be instead simply accessed from the host, like how Bottles does it: https://github.com/bottlesdevs/Bottles/blob/main/com.usebottles.bottles.yml#L23