I want to read a MPEG video file as stream of frames. I am using
$readmemh("centaur_1.mpg",mem);
but it does not seem to work as its designed to read ASCII code from text files that corresponds to the ranges of hex characters. Any suggestions on how can I do it?