[FFmpeg-user] ffmpeg not seeing past junk in ogg files

Silent Strider silent.strider at gmx.de
Fri Dec 27 16:16:40 EET 2019


Greetings,

I try to identify some music/sound files extracted from a game.

I noticed, that ffmpeg/ffprobe do ignore junk at the beginning of mp3
files (e.g. "Skipping 217 bytes of junk at 0"), but not on other, in
my case ogg files.

If trying to identify such a padded ogg file, neither ffmpeg nor
ffprobe deliver me the actual content. Only the message "Invalid data
found when processing input" is thrown.

I added functional files as attachment. The ogg_padded file is only
padded with 25x 0x00.

Is there a way to work around this problem? I tried setting the
probesize, formatprobesize and analyzeduration to tremendous values,
but this didn't help.

The command line shows this:
ffprobe version git-2019-12-26-b0d0d7e Copyright (c) 2007-2019 the
FFmpeg developers
   built with gcc 9.2.1 (GCC) 20191125
   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-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
--enable-amf
   libavutil      56. 37.100 / 56. 37.100
   libavcodec     58. 65.100 / 58. 65.100
   libavformat    58. 35.101 / 58. 35.101
   libavdevice    58.  9.101 / 58.  9.101
   libavfilter     7. 69.101 /  7. 69.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
[mp3 @ 000002538defbf00] Skipping 217 bytes of junk at 0.
[mp3 @ 000002538defbf00] Estimating duration from bitrate, this may be
inaccurate
Input #0, mp3, from 'mp3_padded':
   Duration: 00:00:10.53, start: 0.000000, bitrate: 37 kb/s
     Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 37 kb/s

ffprobe version git-2019-12-26-b0d0d7e Copyright (c) 2007-2019 the
FFmpeg developers
   built with gcc 9.2.1 (GCC) 20191125
   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-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
--enable-amf
   libavutil      56. 37.100 / 56. 37.100
   libavcodec     58. 65.100 / 58. 65.100
   libavformat    58. 35.101 / 58. 35.101
   libavdevice    58.  9.101 / 58.  9.101
   libavfilter     7. 69.101 /  7. 69.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
[ogg @ 0000026922d5bf00] 25 bytes of comment header remain
Input #0, ogg, from 'ogg_unpadded':
   Duration: 00:00:09.62, start: 0.000000, bitrate: 41 kb/s
     Stream #0:0: Audio: vorbis, 48000 Hz, mono, fltp, 70 kb/s

ffprobe version git-2019-12-26-b0d0d7e Copyright (c) 2007-2019 the
FFmpeg developers
   built with gcc 9.2.1 (GCC) 20191125
   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-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
--enable-amf
   libavutil      56. 37.100 / 56. 37.100
   libavcodec     58. 65.100 / 58. 65.100
   libavformat    58. 35.101 / 58. 35.101
   libavdevice    58.  9.101 / 58.  9.101
   libavfilter     7. 69.101 /  7. 69.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
ogg_padded: Invalid data found when processing input
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ogg_padded
Type: application/octet-stream
Size: 50031 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20191227/e303d28a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp3_padded
Type: application/octet-stream
Size: 49105 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20191227/e303d28a/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ogg_unpadded
Type: application/ogg
Size: 50006 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20191227/e303d28a/attachment.ogx>


More information about the ffmpeg-user mailing list