We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-08-19 17:38:05 +0200

how to play mp2 audio files?

when I try to play .mp2 (MPEG Audio 1 layer 2) files with media-player it doesn't work, though gst-plugins-ugly1.0 are installed.
Some investigation shows:

gst-launch-1.0 filesrc location=path-to-file.mp2 ! decodebin ! pulsesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: grom element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDroidADec:droidadec0: GStreamer encountered a general supporting library error.
Additional debug info:
gstdroidadec.c(384): gst_droidadec_set_format (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDroidADec:droidadec0:
Unknown codec type for caps audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000 channels=(int)2, parsed=(boolean)true
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

so I tried gst-launch-1.0 filesrc location=path-to-file.mp2 ! mad ! decodebin ! pulsesink and this does work, but is not used by jolla media-player...
Is there something I can do to play mp2 files with media-player?

how to play mp2 audio files?

when I try to play .mp2 (MPEG Audio 1 layer 2) files with media-player it doesn't work, though gst-plugins-ugly1.0 are installed.
Some investigation shows:

gst-launch-1.0 filesrc location=path-to-file.mp2 ! decodebin ! pulsesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: grom from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDroidADec:droidadec0: GStreamer encountered a general supporting library error.
Additional debug info:
gstdroidadec.c(384): gst_droidadec_set_format (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDroidADec:droidadec0:
Unknown codec type for caps audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000 channels=(int)2, parsed=(boolean)true
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

so I tried gst-launch-1.0 filesrc location=path-to-file.mp2 ! mad ! decodebin ! pulsesink and this does work, but is not used by jolla media-player...
Is there something I can do to play mp2 files with media-player?

how to play mp2 audio files?

when I try to play .mp2 (MPEG Audio 1 layer 2) files with media-player it doesn't work, though gst-plugins-ugly1.0 are installed.
Some investigation shows:

gst-launch-1.0 filesrc location=path-to-file.mp2 ! decodebin ! pulsesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDroidADec:droidadec0: GStreamer encountered a general supporting library error.
Additional debug info:
gstdroidadec.c(384): gst_droidadec_set_format (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDroidADec:droidadec0:
Unknown codec type for caps audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000 channels=(int)2, parsed=(boolean)true
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

so I tried gst-launch-1.0 filesrc location=path-to-file.mp2 ! mad ! decodebin ! pulsesink and this does work, work¹, but is not used by jolla media-player...
Is there something I can do to play mp2 files with media-player?

Only 'workaround' so far is to use unplayer 0.3.2 (not newer) together with gstreamer0.10 plugin packages (available in warehouse: Ultimate Codec Support by xerxes2 ; gst-plugins-ugly / bad-extra / ffmpeg [sailfish_lib] ; gst-fluendo-mp3 by iKozzz).
This works as long as gstreamer0.10 base is available in SFOS...

¹ libMAD & libmad enabled gstreamer-plugin-ugly1.0 required