FLV Files in C++
- Posted: 3 years ago
- Tags:c, code, cplusplus, flv
- 0 comments
This took me a bit of stumbling around before I found it, but if anyone is working with raw flv (Flash video) files, here is how you could print a header. I am using this in a cgi program that is designed to stream flv files from any point in the file. If it seeks to a point that is not the beginning, then it has to print this header so that the flash player is not confused about what kind of file it is:
cout << "FLV"; cout << '\x01'; cout << '\x01'; cout << '\x00'; cout << '\x00'; cout << '\x00'; cout << '\x09'; cout << '\x00'; cout << '\x00'; cout << '\x00'; cout << '\x09';
Comments:
| No Comments Posted |
Add Comment:
Back
