kaltura / nginx-vod-module

NGINX-based MP4 Repackager
GNU Affero General Public License v3.0
1.99k stars 439 forks source link

min frame duration is error while reading media header #1224

Open JackZhai2018 opened 3 years ago

JackZhai2018 commented 3 years ago

when stream a mp4 file to hls, error as below is output. how to resolve it. thanks in advance.

mp4_parser_parse_stts_atom_frame_duration_only: min frame duration is error while reading media header

JackZhai2018 commented 3 years ago

update: mp4_parser_parse_stts_atom_frame_duration_only: min frame duration is zero while reading media header

erankor commented 3 years ago

This error means that all frames have duration = 0, the file is probably either corrupt or fragmented MP4 (which is not supported)

touchsky2018 commented 3 years ago

@erankor thanks for your reply.

the mp4 file is created with programe. it can be lived in vlc. can you tell me which property should be set in atom tree to avoid this problem?

erankor commented 3 years ago

can you send a URL to the MP4? also, you can check if it's fragmented using MP4Box:

# MP4Box -info /tmp/regular.mp4 | grep 'Fragmented File'
        Fragmented File no - 3 track(s)

# MP4Box -info /tmp/fragmented.mp4 | grep 'Fragmented File'
        Fragmented File yes - 2 track(s)