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

Mediaplayer fails with low samplerates [duplicate]

asked 2014-02-26 00:08:00 +0200

jmsaaren gravatar image

updated 2015-05-30 13:54:59 +0200

chemist gravatar image

The media player starts playing mp3 files with a low samplerate (e.g. 11025Hz) but with some files the timer stays almost still and after a while (e.g. 2 min) the player starts skipping 10 seconds and then playing 1 second and so on. This can be fixed by:

lame --resample 48 file.mp3

The new file works just fine.

So where can I place a bug report? Here?

Edit: To reproduce the problem: Get a rather long mp3 (for example http://escapepod.org/feed/) and do:

lame --mp3input --resample 8 -b 16 sample.mp3 bad_sample.mp3

Now when playing the bad sample in jolla it starts skipping. This should be observable after a couple of minutes. Also the timing goes slower. When the file is then paused the timing jumps to the correct value and back to the wrong value when it is started again e.g. after 60 secs the time might display 20 sec.

edit retag flag offensive reopen delete

The question has been closed for the following reason "duplicate question" by ApB
close date 2015-05-30 12:45:50.397738

Comments

yes, here.

onion ( 2014-02-26 12:00:11 +0200 )edit

any updates?

User ( 2014-05-29 00:56:24 +0200 )edit

Well, the bug still exists and I do not know enough to know where to start looking the cause.

jmsaaren ( 2014-05-29 18:59:43 +0200 )edit

This seems promising. How can we ensure that this fix gets included in the official Sailfish version of the plugin in the near future?

thebat137 ( 2014-09-27 03:20:01 +0200 )edit

I encountered this issue after listening low quality Security Now episode 474 (http://media.grc.com/sn/sn-474-lq.mp3). After couple of minutes playback starts skipping, making listening experience unbearable.

alloj ( 2014-09-30 12:58:37 +0200 )edit

2 Answers

Sort by » oldest newest most voted
9

answered 2014-09-27 00:30:55 +0200

keithzg gravatar image

updated 2014-09-30 13:14:39 +0200

Problem is definitely with the gst-av plugin. On IRC, javispedro verified that for example:

gst-launch-0.10 --gst-debug=:2 filesrc location=bill.flac ! flacparse ! avadec ! audioconvert ! audioresample ! volume ! pulsesink glitches on a low samplerate file, while gst-launch-0.10 --gst-debug=:3 filesrc location=bill.flac ! flacparse ! flacdec ! audioconvert ! audioresample ! audio/x-raw-int, rate=44000, channels=2 ! pulsesink works.

Edit: Converting this to an answer for visibility's sake, hoping Jolla and/or Felipec notice. See https://github.com/felipec/gst-av/pull/3 for a fix, as figured out by Javispedro.

I've compiled gst-av with that two-character fix and I can confirm (for myself at least) it solves the skipping issue. You'll need the following packages installed if I recall correctly and my bash history is complete: gstreamer-devel, nemo-gstreamer0.10-interfaces-devel, libav-devel. Then after compilation you'd just copy it overtop your existing libgstav.so in /usr/lib/gstreamer-0.10/ after backing up your existing copy. Note that the safest plan is to wait for Jolla to release the fix as part of an official update, obviously!

edit flag offensive delete publish link more

Comments

while waiting for Jolla to fix it, one can also try 3rd party apps. QuasarMX works fine

User ( 2014-09-30 19:40:51 +0200 )edit

@Anz That makes sense, as AFAIK QuasarMX is an mplayer frontend. However, anything that uses GStreamer is affected, thus for example gPodder experiences this issue.

keithzg ( 2014-10-01 00:43:12 +0200 )edit
1

This problem still ecists in Vaarainjärvi. Can't listen to all of my podcasts.

alloj ( 2014-12-22 09:10:58 +0200 )edit
2

Same here; the issue remains in Vaarainjärvi.

ekari ( 2014-12-23 09:57:11 +0200 )edit

If I were to download my podcasts with high sample rate I'm being close to triggering the btrfs filesystem bug. Bug synergy! LOL

alloj ( 2015-01-30 13:17:01 +0200 )edit
1

answered 2015-05-30 12:13:17 +0200

thp gravatar image

Duplicate of / see-also: https://together.jolla.com/question/23341/garbled-playback-of-some-mp3s-with-builtin-player/

edit flag offensive delete publish link more

Question tools

Follow
7 followers

Stats

Asked: 2014-02-26 00:08:00 +0200

Seen: 740 times

Last updated: May 30 '15