how to play mp2 audio files? [released]

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

lpr gravatar image

updated 2016-08-25 17:40:48 +0200

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¹, 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

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by lpr
close date 2016-11-25 00:24:14.642153

Comments

1

@equeim this affects newest unplayer, too with gstreamer1.0 introducing this bug. gstreamer0.10 does not use gstdroidadec and is not affected...

lpr ( 2016-08-21 17:07:30 +0200 )edit

filed as mer#1667

lpr ( 2016-10-06 16:16:49 +0200 )edit