12345678910111213141516
// avi width and height #include <iostream> #include <fstream> using namespace std; int main() { int width,height; std::ifstream f; f.open ("thevideo.avi",f.binary|f.in); f.seekg(64,f.beg); f.read((char*)&width,4); f.read((char*)&height,4); f.close(); std::cout << width << "x" << height << "\n"; return 0; }