You are not logged in.

#1 2017-08-10 12:33:19

DaveJ
Member
Registered: 2015-08-26
Posts: 6

mpd detects wrong duration of mp3

For (as far as I checked) any .mp3 file in my library, mpd detects the wrong duration. Upon playback, it will eventually stop at the correct time, but the duration of the song is always shown longer than it actually is.

For example, here the output of ffprobe for the file:

  Duration: 00:04:33.08, start: 0.000000, bitrate: 209 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
    Stream #0:1: Video: png, rgba(pc), 500x500, 90k tbr, 90k tbn, 90k tbc

and mpg123's output:

> 10454+00000  04:33.08+00:00.00 --- 100=100 192 kb/s  626 B acc    0 clip p+0.000 

While mpc puts out:

4:57

for the duration.

Interestingly, .m4a files seem to be detected correctly.
Does anyone know, how this could be fixed, or at least, what the problem might be?

-------

Additionally, mpd --version:

Music Player Daemon 0.21 (v0.20.9-233-g501a4af91)

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2017 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
 simple proxy upnp

Storage plugins:
 local smbclient curl

Neighbor plugins:
 smbclient upnp

Decoders plugins:
 [mpg123] mp3
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
 [dsdiff] dff
 [dsf] dsf
 [wavpack] wv
 [modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr
          anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv
          cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv
          g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka
          mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve
          mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp
          qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf
          tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd
          wav webm wma wmv wsaud wsvga wv wve
 [pcm]

Filters:
 libsamplerate soxr

Tag plugins:
 id3tag

Output plugins:
 shout null fifo pipe alsa oss pulse jack httpd recorder

Encoder plugins:
 null vorbis opus lame wave flac

Archive plugins:
 [bz2] bz2

Input plugins:
 file alsa archive curl ffmpeg smbclient

Playlist plugins:
 extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols:
 file:// http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// smb:// alsa://

Other features:
 avahi epoll icu inotify ipv6 systemd tcp un

Offline

Board footer

Powered by FluxBB