You are not logged in.

#1 2014-10-27 08:57:25

lah
Member
Registered: 2014-08-26
Posts: 28

[SOLVED] MPD mp3 decoding with mpd 0.19

Hello,

I'm using mpd 0.19 with local configuration as defined in https://wiki.archlinux.org/index.php/Mu … yer_Daemon
I'm able to play music but mp3 decoding often fails e.g. : when adding http://mp3.live.tv-radio.com/franceinte … tdebit.mp3 to my playlist, and playing it, at first play it starts playing for 1 sec and stops suddenly. After if i try to restart it, it does't play at all.

With an older mpd version (0.16.7), I can play this web radio...

Here is mpc status when I try to play radio

mpc status
volume:100%   repeat: off   random: off   single: off   consume: off

Here are logs with mpd 0.19 when I first play a radio successfully and then I try to play twice http://mp3.live.tv-radio.com/franceinte … tdebit.mp3

Oct 27 09:37 : avahi: Initializing interface
Oct 27 09:37 : avahi: Client changed to state 101
Oct 27 09:37 : avahi: Client is CONNECTING
Oct 27 09:37 : state_file: Loading state file /home/remi/.config/mpd/state
Oct 27 09:37 : client: [0] opened from [::1]:32910
Oct 27 09:37 : client: [0] process command "status"
Oct 27 09:37 : client: [0] command returned 0
Oct 27 09:37 : client: [0] process command "play "0""
Oct 27 09:37 : playlist: play 0:"http://broadcast.infomaniak.net/radionova-high.mp3"
Oct 27 09:37 : client: [0] command returned 0
Oct 27 09:37 : playlist: queue song 1:"http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"
Oct 27 09:37 : client: [0] process command list
Oct 27 09:37 : client: process command "status"
Oct 27 09:37 : client: command returned 0
Oct 27 09:37 : client: process command "currentsong"
Oct 27 09:37 : client: command returned 0
Oct 27 09:37 : client: [0] process command list returned 0
Oct 27 09:37 : client: [0] closed
Oct 27 09:37 : curl: icy-metaint=16000
Oct 27 09:37 : decoder_thread: probing plugin mad
Oct 27 09:37 : decoder: audio_format=44100:24:2, seekable=false
Oct 27 09:37 : alsa_output: opened default type=IOPLUG
Oct 27 09:37 : alsa_output: format=S32_LE (Signed 32 bit Little Endian)
Oct 27 09:37 : alsa_output: buffer: size=48..524288 time=1088..11888617
Oct 27 09:37 : alsa_output: period: size=16..174763 time=362..3962880
Oct 27 09:37 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Oct 27 09:37 : alsa_output: buffer_size=22050 period_size=5512
Oct 27 09:37 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:32:2
Oct 27 09:37 : output: converting from 44100:24:2
Oct 27 09:37 : client: [1] opened from [::1]:32912
Oct 27 09:37 : client: [1] process command "status"
Oct 27 09:37 : client: [1] command returned 0
Oct 27 09:37 : client: [1] process command "play "1""
Oct 27 09:37 : playlist: play 1:"http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"
Oct 27 09:37 : player: played "http://broadcast.infomaniak.net/radionova-high.mp3"
Oct 27 09:37 : client: [1] command returned 0
Oct 27 09:37 : client: [1] process command list
Oct 27 09:37 : client: process command "status"
Oct 27 09:37 : client: command returned 0
Oct 27 09:37 : client: process command "currentsong"
Oct 27 09:37 : client: command returned 0
Oct 27 09:37 : client: [1] process command list returned 0
Oct 27 09:37 : client: [1] closed
Oct 27 09:37 : curl: icy-metaint=16000
Oct 27 09:37 : decoder_thread: probing plugin mad
Oct 27 09:37 : mad: mp3 file header indicates too many frames: 75329118
Oct 27 09:37 : mad: input/Input does not appear to be a mp3 bit stream
Oct 27 09:37 : decoder_thread: probing plugin ffmpeg
Oct 27 09:37 : ffmpeg: detected input format 'mp3' (MP2/3 (MPEG audio layer 2/3))
Oct 27 09:37 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 0 bytes read:1254 seeks:0
Oct 27 09:37 : ffmpeg/mp3: After avformat_find_stream_info() pos: 2508 bytes read:2508 seeks:0 frames:6
Oct 27 09:37 : ffmpeg: codec 'mp3'
Oct 27 09:37 : decoder: audio_format=44100:16:2, seekable=false
Oct 27 09:37 : output: closed plugin=alsa name="My ALSA Device"
Oct 27 09:37 : alsa_output: opened default type=IOPLUG
Oct 27 09:37 : alsa_output: format=S16_LE (Signed 16 bit Little Endian)
Oct 27 09:37 : alsa_output: buffer: size=96..1048576 time=2176..23777234
Oct 27 09:37 : alsa_output: period: size=32..349526 time=725..7925760
Oct 27 09:37 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Oct 27 09:37 : alsa_output: buffer_size=22050 period_size=5512
Oct 27 09:37 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:16:2
Oct 27 09:37 : player: played "http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"
Oct 27 09:37 : playlist: stop
Oct 27 09:37 : output: closed plugin=alsa name="My ALSA Device"
Oct 27 09:37 : client: [2] opened from [::1]:32915
Oct 27 09:37 : client: [2] process command "status"
Oct 27 09:37 : client: [2] command returned 0
Oct 27 09:37 : client: [2] process command "play "1""
Oct 27 09:37 : playlist: play 1:"http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"
Oct 27 09:37 : client: [2] command returned 0
Oct 27 09:37 : client: [2] process command list
Oct 27 09:37 : client: process command "status"
Oct 27 09:37 : client: command returned 0
Oct 27 09:37 : client: process command "currentsong"
Oct 27 09:37 : client: command returned 0
Oct 27 09:37 : client: [2] process command list returned 0
Oct 27 09:37 : client: [2] closed
Oct 27 09:37 : curl: icy-metaint=32768
Oct 27 09:37 : decoder_thread: probing plugin mad
Oct 27 09:37 : mad: mp3 file header indicates too many frames: 75329117
Oct 27 09:37 : mad: input/Input does not appear to be a mp3 bit stream
Oct 27 09:37 : decoder_thread: probing plugin ffmpeg
Oct 27 09:37 : ffmpeg: detected input format 'mp3' (MP2/3 (MPEG audio layer 2/3))
Oct 27 09:37 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 0 bytes read:2508 seeks:0
Oct 27 09:37 : ffmpeg/mp3: After avformat_find_stream_info() pos: 2508 bytes read:2508 seeks:0 frames:6
Oct 27 09:37 : ffmpeg: codec 'mp3'
Oct 27 09:37 : decoder: audio_format=44100:16:2, seekable=false
Oct 27 09:37 : alsa_output: opened default type=IOPLUG
Oct 27 09:37 : alsa_output: format=S16_LE (Signed 16 bit Little Endian)
Oct 27 09:37 : alsa_output: buffer: size=96..1048576 time=2176..23777234
Oct 27 09:37 : alsa_output: period: size=32..349526 time=725..7925760
Oct 27 09:37 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Oct 27 09:37 : alsa_output: buffer_size=22050 period_size=5512
Oct 27 09:37 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:16:2
Oct 27 09:37 : player: played "http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3"
Oct 27 09:37 : playlist: stop
Oct 27 09:37 : output: closed plugin=alsa name="My ALSA Device"

Here are logs with 0.16.7 when I successfuly play http://mp3.live.tv-radio.com/franceinte … tdebit.mp3

Oct 27 09:52 : decoder: audio_format=44100:24:2, seekable=false
Oct 27 09:52 : alsa: buffer: size=256..16384 time=5804..371520
Oct 27 09:52 : alsa: period: size=256..16384 time=5804..371520
Oct 27 09:52 : alsa: default period_time = buffer_time/4 = 371519/4 = 92879
Oct 27 09:52 : alsa: buffer_size=16384 period_size=4096
Oct 27 09:52 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:16:2
Oct 27 09:52 : output: converting from 44100:24:2
Oct 27 09:52 : icy_metadata: unknown icy-tag: 'StreamUrl'
Oct 27 09:52 : client: [2] opened from 127.0.0.1:52591
Oct 27 09:52 : client: [2] process command list
Oct 27 09:52 : client: command_process_list: process command "status"
Oct 27 09:52 : client: command_process_list: command returned 0
Oct 27 09:52 : client: command_process_list: process command "currentsong"
Oct 27 09:52 : client: command_process_list: command returned 0
Oct 27 09:52 : client: [2] process command list returned 0
Oct 27 09:52 : client: [2] closed

Any help would be appreciated.
lah

Last edited by lah (2015-01-22 12:08:06)

Offline

#2 2014-10-27 16:51:21

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] MPD mp3 decoding with mpd 0.19

i can confirm this behavior. please file a bug for this. If possible bisect it.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2014-11-04 14:05:36

lah
Member
Registered: 2014-08-26
Posts: 28

Re: [SOLVED] MPD mp3 decoding with mpd 0.19

Hi,

I've compiled latest mpd version v0.19.2-9-g303d67a and problem is now solved.
So, if you encounter this bug, just install mpd-git from AUR.

I won't report any bug now as package is flagged outdated https://www.archlinux.org/packages/extra/i686/mpd/

Lahorde

Last edited by lah (2014-11-04 14:16:11)

Offline

#4 2014-11-05 00:46:56

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] MPD mp3 decoding with mpd 0.19

I actually meant an upstream bug. but since its fixed already anyway, there is no point in this smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2014-11-05 08:05:07

lah
Member
Registered: 2014-08-26
Posts: 28

Re: [SOLVED] MPD mp3 decoding with mpd 0.19

Rasi,

About Arch bug tracking : https://wiki.archlinux.org/index.php/Re … or_Arch.3F was very useful
In my case I wanted to debug mpd and report bug in mpd bugs http://mpd.wikia.com/wiki/Music_Player_ … oubleshoot
As bug has been already been solved in upstream and "out of date flag has been set" for mpd package, I just sent an email to package maintener.

lah

Offline

Board footer

Powered by FluxBB