Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MPEG4 AVC header size?

Tags:

mpeg-4

fuzzing

Just one question : what is the size in bytes of the header of a .mp4 file ?

The goal is to fuzz just this header.

Thanks Karl

like image 544
Karl Emax Avatar asked Nov 29 '25 03:11

Karl Emax


1 Answers

It depends. ISO media container format (.mp4) uses a strusture of elements called atoms. It depends on the number of tracks, the H.264 encoding properties, the muxers also like to put their names in the file in a free atom.

Expect it to be at least 1 kByte. Anything over 4k is not very likely.

If you encounter the string mdat (header of the movie data atom), the file header is probably over.

like image 82
vbence Avatar answered Dec 01 '25 08:12

vbence