[FFmpeg-user] MP2 audio files "Header missing" and audio drops

Renaud Schoonbroodt renaud.schoonbroodt at gmail.com
Thu Jun 13 10:38:53 EEST 2019


Hi,

I have issues with a bunch of .snd audio files presenting regular audio
drops.  I have that issue with my own player application (self compiled
ffmpeg) as well as with ffplay.

FFmpeg complains about "Header missing" and drop the frame (error
-0x41444e49 Invalid data found when processing input) causing an audio
drop. This happens systematically every +/-12 seconds (12, 24, 48,...),
perfectly reproducible.

The file container is MP2/3 (MPEG audio layer 2/3), the codec is MP2 (MPEG
audio layer 2).

Mplayer plays these files perfectly (using mpg123) !

VLC (latest official release) does struggle with these files too, it stops
playing for several seconds every time such an "error" arrives.

Does anyone already experienced this issue ? What's the fix ?

If needed, I can provide several problematic files. What's the best way to
send them ?

I am running Windows 10 64-bit.

This is the version of ffplay I use, directly from the
https://ffmpeg.zeranoe.com/builds/ webiste.

ffplay version N-94014-g80e68ce116 Copyright (c) 2003-2019 the FFmpeg
developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
  libavutil      56. 28.100 / 56. 28.100
  libavcodec     58. 52.102 / 58. 52.102
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 55.100 /  7. 55.100
  libswscale      5.  4.101 /  5.  4.101
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100


Many thanks

Best regards,

Renaud


More information about the ffmpeg-user mailing list