FLV File Contents Analysis[Back] This is a page for FLV file analysis (Header). Try sample file: Try an exampleWhat are we looking for?For an FLV file, we are looking for "FLV" or, in hex, 46 4C 56 at the start of the file. Try your ownOr enter your own URL to analyse the first six sectors of the file: |
File contents analysisObject reference not set to an instance of an object. |
Sample code
public string getFlv(byte[] b) { string TextBox1 = ""; try { TextBox1 += "Byte 0 [Should be 46]: " + Global.intToHex(b[0]) + "<br/>"; TextBox1 += "Byte 1 [Should be 4c]: " + Global.intToHex(b[1]) + "<br/>"; TextBox1 += "Byte 2 [Should be 56]: " + Global.intToHex(b[2]) + "<br/>"; TextBox1 += "Byte 3: Version (should be 1): " + Global.intToHex(b[3]) + "<br/>"; TextBox1 += "Byte 4: Flags (should be 5 - audio and video): " + Global.intToHex(b[4]) + "<br/>"; uint filesize = ((uint)b[8] << 24) + ((uint)b[7] << 16) + ((uint)b[6] << 8) + ((uint)b[5]); } catch { } return (TextBox1); }