Opened 6 years ago

Closed 6 years ago

#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

Description

Sample:
https://www.datafilehost.com/d/9da3642a

Regression since:
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=9e67447a4ffacf28af8bace33faf3ea432ddc43e

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 Carl Eugen Hoyos 6 years ago.
Kapitan Tsubasa – odcinek 01. Pierwsze spotkanie_cut.mp4 (2.4 MB ) - added by Carl Eugen Hoyos 6 years ago.
Sample from ticket #7194

Change History (6)

comment:1 by Carl Eugen Hoyos, 6 years ago

Keywords: regression added; stsc removed
Priority: normalimportant
Reproduced by developer: set
Status: newopen

by Carl Eugen Hoyos, 6 years ago

Attachment: stsc_invalid_cut.mp4 added

by Carl Eugen Hoyos, 6 years ago

Sample from ticket #7194

comment:2 by mig, 6 years ago

Cc: michel.gutierrez@gmail.com added

comment:3 by cjburian, 6 years ago

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

https://theoutline.com/post/637/westworld-recut-into-single-timeline

  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 6 years ago by cjburian (previous) (diff)

comment:4 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.