mp4 文件中的重复 stsd 条目

Duplicate stsd entry in mp4 file

我目前正在使用ffmpeg读取视频文件并获取旋转码、大小等。 但是,这个特定的视频文件导致了以下错误:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe484026e40] Duplicate stsd found in this track

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe484026e40] error reading header

我无法解决这个问题,因为视频似乎没有 stsd(样本描述)。

stsd 不是“标准定义描述”,而是“样本描述”。

如果 stsd 重复或缺失,则解析器无法知道如何解析 mdat。因此文件已损坏,因此无法播放。