FLVThis 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. |
File contents analysisByte 0 [Should be 46]: 46 File signature analysis (Header analysis)FLV file (Starts with 0x46 0x4C 0x56)Additional scanning signature analysisPossible: [FLV file), sig: 464C56] Count: 1 File hex characters[00000000] 46 4C 56 01 05 00 00 00 09 00 00 00 00 12 00 01 FLV............. Base-64 conversionRkxWAQUAAAAJAAAAABIAAREAAAAAAAAAAgAKb25NZXRhRGF0YQgAAAAKAAhkdXJhdGlvbgBA |
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); }