mathiasbynens / small

Smallest possible syntactically valid files of different types
https://mathiasbynens.be/notes/minimal-html
1.93k stars 184 forks source link

mp3 format is not correct #97

Closed lucemia closed 5 years ago

lucemia commented 6 years ago
➜  Desktop ffprobe -i mp3.mp3
ffprobe version 4.0.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[mp3 @ 0x7fb4d7002a00] Format mp3 detected only with low score of 1, misdetection possible!
[mp3 @ 0x7fb4d7002a00] Invalid frame size (72): Could not seek to 72.
mp3.mp3: Invalid argument
lieff commented 6 years ago

This is ffmpeg issue.

Invalid frame size (72): Could not seek to 72.

Makes no scene. There indeed one frame 72 bytes size. Not even all bytes used. Another question why it cannot seek at frame\file end? It is a valid file position for stdio.