Thursday, July 10, 2008

Differentiate 3GPP and Quicktime compliant

Differentiate 3GPP and Quicktime compliant:
---------------------------------------------------------------
if the atom is 'ftyp',then we will read next 3 bytes;
Based on these 3 bytes, we will identify whether the file is a quicktime compliant or
3GPP compliant;
it may be the following for 3GP compliant:
3GP or 3G2 ( ftyp3gp or ftyp3g2)
For Quicktime compliant ftyp following codes are :
mp4,m4v,m4a (ftypmp4 , ftypm4v,ftypm4a)

Note:
if the file type is .mp4, it may contains the ftyp3GP code

No comments: