Opened 12 years ago

Last modified 9 years ago

#2459 open defect

mpc8: wrong duration

Reported by: ami_stuff Owned by:
Priority: minor Component: undetermined
Version: git-master Keywords: mpc
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

ffmpeg reports 28s, mpcdec 30s

1323648 / 44100 gives the correct duration

http://ffmpeg.org/trac/ffmpeg/raw-attachment/ticket/1254/musepack8.mpc

$ mpcdec -i musepack8.mpc
mpcdec - Musepack (MPC) decoder v1.0.0 (C) 2006-2009 MDT
Built Feb 26 2009 20:20:48
file: musepack8.mpc
stream version 8
encoder: --Stable-- 1.30.0
profile: 'Standard' (q=5.00)
PNS: off
mid/side stereo: on
gapless: on
average bitrate:  176.5 kbps
samplerate: 44100 Hz
channels: 2
length: 0:30 (1323648 samples)
file size: 662373 Bytes
track peak: 0.00 dB
track gain: 0.00 dB / 0.00 dB
album peak: 0.00 dB
album gain: 0.00 dB / 0.00 dB
C:\>ffmpeg -i musepack8.mpc out.wav
ffmpeg version N-51683-g9dc88ac Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  8 2013 21:19:21 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrn
b --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libr
tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo
ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      52. 25.100 / 52. 25.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  1.100 / 55.  1.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 49.101 /  3. 49.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpc8 @ 026e4020] max_analyze_duration 5000000 reached at 5015510 microseconds
Input #0, mpc8, from 'musepack8.mpc':
  Duration: 00:00:28.42, start: 0.000000, bitrate: 186 kb/s
    Stream #0:0: Audio: musepack8, 44100 Hz, stereo, s16p
Output #0, wav, to 'out.wav':
  Metadata:
    ISFT            : Lavf55.1.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16
, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpc8 -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 0
musepack8.mpc: Input/output error
size=    5175kB time=00:00:30.04 bitrate=1411.2kbits/s
video:0kB audio:5175kB subtitle:0 global headers:0kB muxing overhead 0.001510%

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: mpc added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Carl Eugen Hoyos, 9 years ago

Priority: normalminor

There is a regression concerning the length of the output file that is reported in ticket #5478, the incorrectly reported length of the input file is minor imo.

Note: See TracTickets for help on using tickets.