Tag: cplusplus


FLV Files in C++

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';

Tag cloud

  1. 1 entries are tagged with 2007
  2. 2 entries are tagged with applevalley
  3. 1 entries are tagged with archlinux
  4. 1 entries are tagged with automation
  5. 1 entries are tagged with bigsur
  6. 5 entries are tagged with burningman
  7. 3 entries are tagged with code
  8. 1 entries are tagged with cplusplus
  9. 1 entries are tagged with desert
  10. 1 entries are tagged with drinks
  11. 1 entries are tagged with dspam
  12. 2 entries are tagged with dunes
  13. 1 entries are tagged with energy
  14. 1 entries are tagged with esplanade
  15. 5 entries are tagged with europe
  16. 1 entries are tagged with evdo
  17. 1 entries are tagged with flv
  18. 1 entries are tagged with gadgets
  19. 1 entries are tagged with government
  20. 2 entries are tagged with losangeles
  21. 1 entries are tagged with motivation
  22. 1 entries are tagged with moving
  23. 1 entries are tagged with newserver
  24. 1 entries are tagged with rails
  25. 2 entries are tagged with recipe
  26. 5 entries are tagged with ruby
  27. 1 entries are tagged with salmon
  28. 3 entries are tagged with site
  29. 1 entries are tagged with snow
  30. 6 entries are tagged with travel
  31. 1 entries are tagged with trip
  32. 1 entries are tagged with website
  33. 2 entries are tagged with work
  34. 1 entries are tagged with x4200
  35. 3 entries are tagged with yz250

Twitter Updates

Links to check out

Subscribe RSS