#7165 closed defect (fixed)

STSC entry invalid

Reported by: cgbug Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mov regression
Cc: michel.gutierrez@gmail.com Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no



Regression since:

ffmpeg version N-90848-g8ea8be5951 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --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
  libavutil      56. 15.100 / 56. 15.100
  libavcodec     58. 19.100 / 58. 19.100
  libavformat    58. 13.100 / 58. 13.100
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 19.100 /  7. 19.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000660480] STSC entry 7753 is invalid (first=1 count=1 id=1)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000660480] error reading header
stsc_invalid.mp4: Invalid data found when processing input

Attachments (2)

stsc_invalid_cut.mp4 (2.4 MB) - added by cehoyos 22 months ago.
Kapitan Tsubasa – odcinek 01. Pierwsze spotkanie_cut.mp4 (2.4 MB) - added by cehoyos 22 months ago.
Sample from ticket #7194

Change History (6)

comment:1 Changed 22 months ago by cehoyos

  • Keywords regression added; stsc removed
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open

Changed 22 months ago by cehoyos

Changed 22 months ago by cehoyos

Sample from ticket #7194

comment:2 Changed 22 months ago by mig

  • Cc michel.gutierrez@gmail.com added

comment:3 Changed 21 months ago by cjburian

Found this bug report googling for ffmpeg STSC entry is invalid. Perhaps the example files provide enough information to adapt ffmpeg's isom demuxer to tolerate non-compliant files the way avidemux can. Hope these comments are useful:

  1. This problem can be reproduced with another file. It is found here


  1. Common between all three of the example files: (A) they can be opened by MPC, WMP and VLC, (B) they have isom format container, (C) they have variable frame rate video stream. Problem appears to be trouble reading malformed header of isom container, but goes deeper than the header.
  1. The Haali remuxer dsmux.exe can successfully remux the westworld file to mp4 (mp42) file that ffmpeg can ingest. However, dsmux.exe hangs when trying to remux either of the two example attachments uploaded by the OP.
  1. Loading any of the three mentioned files into avidemux v2.6 causes the "Some timing information are incorrect" warning. The user is given the choice of throwing out the timing information or not. Whatever the user's choice, with video and audio codecs set to copy and container set to mp4 (isom), avidemux will output a working mp4 file that ffmpeg can ingest.
Last edited 21 months ago by cjburian (previous) (diff)

comment:4 Changed 21 months ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.