A simple FLV file parser, pure C++ implementation
Output:
FLV header: stream info: [audio: true, video: true]
[1] Script Tag: Script Tag, nothing special
[2] Video Tag: Format:AVC, Key Frame
[3] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[4] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[5] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[6] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[7] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[8] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[9] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[10] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[11] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[12] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[13] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[14] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[15] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[16] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[17] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[18] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[19] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[20] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[21] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[22] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[23] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[24] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[25] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[26] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[27] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[28] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[29] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[30] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[31] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[32] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[33] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[34] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[35] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[36] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[37] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[38] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[39] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[40] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[41] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[42] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[43] Video Tag: Format:AVC, Key Frame
[44] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[45] Audio Tag: Format:AAC, 44 kHz, 16-bit samples, Stereo
[46] Video Tag: Format:AVC, Inter Frame
...