0

My MP4 file issue is a bit complicated, so I have created a very simple scenario to help me diagnose it step by step.

I can create a working MP4 file that works flawlessly. The following is its structure shown by Mp4Explorer: enter image description here

For debugging purpose, I removed the media data box mdat, and al stts, stsz,stss, stsc, stco boxes and kept everything else the same. This means the MP4 file has no media data. It just has some metadata.

enter image description here

This file is named error.mp4. If I run:

ffprobe "error.mp4"

I get the following error:

[mov,mp4,m4a,3gp,3g2,mj2 @ 00000286e763ef00] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x800): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

Could anyone shed some light on this error? Why is it "Could not find codec parameters for stream 0"? If I remove the video track and leave the audio track as is, ffprobe will be happy with no errors.

Hong
  • 17,643
  • 21
  • 81
  • 142
  • 1
    ffmpeg likes to decode a few frames, especially for video, to populate stream parameters. No mdat, nothing to decode. – Gyan Sep 16 '22 at 04:29

0 Answers0