MP4This is a page for MP4 file analysis (Header). Try sample file: Try an exampleWhat are we looking for?For an MP4 file, we look for the byte sequence 00 00 00 18 66 74 79 70 6D 70 34 32 or the ASCII sequence of ....ftypmp42 |
File contents analysisByte 0 [Should be 00]: 00 File signature analysis (Header analysis)MP4 file (Starts with 0x00 0x00 0x00 0x18 0x66 0x74 0x79 0x70 0x6D 0x70 0x34 0x32)Additional scanning signature analysisPossible: [ICO file, sig: 00000100] Count: 72 File hex characters[00000000] 00 00 00 18 66 74 79 70 6D 70 34 32 00 00 00 01 ....ftypmp42.... Base-64 conversionAAAAGGZ0eXBtcDQyAAAAAW1wNDJtcDQxAAAL5m1vb3YAAABsbXZoZAAAAAC/iBSGv4gUhgAA |
Sample code
public string getMp4(byte[] b) { string TextBox1 = ""; try { TextBox1 += "Byte 0 [Should be 00]: " + Global.intToHex(b[0]) + "<br/>"; TextBox1 += "Byte 1 [Should be 00]: " + Global.intToHex(b[1]) + "<br/>"; TextBox1 += "Byte 2 [Should be 00]: " + Global.intToHex(b[2]) + "<br/>"; TextBox1 += "Byte 3 [Should be 18 or 1C]: " + Global.intToHex(b[3]) + "<br/>"; TextBox1 += "Byte 4 [Should be 66 - f]: " + Global.intToHex(b[4]) + "<br/>"; TextBox1 += "Byte 5 [Should be 74 - t]: " + Global.intToHex(b[5]) + "<br/>"; TextBox1 += "Byte 6 [Should be 79 - y]: " + Global.intToHex(b[6]) + "<br/>"; TextBox1 += "Byte 7 [Should be 70 - p]: " + Global.intToHex(b[7]) + "<br/>"; TextBox1 += "Byte 8 [Should be 6D - m]: " + Global.intToHex(b[8]) + "<br/>"; TextBox1 += "Byte 9 [Should be 70 - p]: " + Global.intToHex(b[9]) + "<br/>"; TextBox1 += "Byte 10 [Should be 34 - 4]: " + Global.intToHex(b[10]) + "<br/>"; TextBox1 += "Byte 11 [Should be 32 - 2]: " + Global.intToHex(b[11]) + "<br/>"; } catch { } return (TextBox1); }