MPD skips the MMS stream at the beginning, FFplay works fine

Need help with MPD?
Post Reply
atelszewski
Posts: 1
Joined: January 11th, 2014, 9:16 pm

MPD skips the MMS stream at the beginning, FFplay works fine

Post by atelszewski » January 11th, 2014, 9:55 pm

Hi,

I'm struggling a strange problem when trying to play an MMS stream, that is when I start playing, the stream is skipped (I'm not sure if this is the correct term) at the beginning. What I mean is that, when I start playing, I have a period of time during which the sound is present and then there is a silence for a while and then the whole thing repeats a few times more and then the stream is played normally. The same stream played with FFplay starts playing immediately without any issues.

The stream in question is the following one:
mmsh://stream.polskieradio.pl/program3

OS: Slackware 14.1 64-bit
MPD: 0.18.6
FFmpeg: 2.1

Output of the FFplay:

Code: Select all

Input #0, asf, from 'mmsh://stream.polskieradio.pl/program3':=0/0   
  Metadata:
    WMFSDKNeeded    : 0.0.0.0000
    DeviceConformanceTemplate: L2
    WMFSDKVersion   : 12.0.7601.17514
    IsVBR           : 0
  Duration: N/A, start: 1797978.720000, bitrate: 100 kb/s
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels, fltp, 96 kb/s
    Stream #0:1(eng): Data: none, 4 kb/s
Output of the MPD:

Code: Select all

config_file: loading file /etc/mpd.conf
path: SetFSCharset: fs charset is: UTF-8
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
opus: libopus 1.1
db: reading DB
curl: version 7.31.0
curl: with OpenSSL/1.0.1c
daemon: opening pid file
daemon: writing pid file
state_file: Loading state file /home/mpd/mpd.state
client: [0] opened from 127.0.0.1:59381
client: [0] process command "play"
playlist: play 0:"mmsh://stream.polskieradio.pl/program3"
client: [0] command returned 0
client: [0] process command list
client: process command "status"
client: command returned 0
client: process command "currentsong"
client: command returned 0
client: [0] process command list returned 0
client: [0] closed
decoder_thread: probing plugin ffmpeg
ffmpeg: detected input format 'asf' (ASF (Advanced / Active Streaming Format))
ffmpeg/asf: gpos mismatch our pos=24, end=38
ffmpeg/asf: gpos mismatch our pos=24, end=26
ffmpeg/asf: gpos mismatch our pos=24, end=3952
ffmpeg/asf: gpos mismatch our pos=24, end=174
ffmpeg/asf: File position before avformat_find_stream_info() is 5124
ffmpeg/asf: parser not found for codec wmav2, packets or times may be invalid.
ffmpeg/asf: parser not found for codec wmav2, packets or times may be invalid.
ffmpeg/asf: All info found
ffmpeg/asf: File position after avformat_find_stream_info() is 9248
decoder: audio_format=48000:f:2, seekable=false
alsa_output: opened default:CARD=PCH type=PLUG
alsa_output: format=FLOAT_LE (Float 32 bit Little Endian)
alsa_output: buffer: size=2048..16384 time=42666..341334
alsa_output: period: size=1024..1024 time=21333..21334
alsa_output: default period_time = buffer_time/4 = 341333/4 = 85333
alsa_output: buffer_size=16384 period_size=1024
output: opened plugin=alsa name="laptop_output" audio_format=48000:f:2
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"
alsa_output: Underrun on ALSA device "default:CARD=PCH"

(here the MPD starts playing smoothly, without skips)
Can anybody give me an advice what might be going wrong?

Post Reply