2

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?

Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
Mohamad Ibrahim
  • 5,085
  • 9
  • 31
  • 45

1 Answers1

2

Check out the $fread() system task. This will allow you to open a file in binary mode. Check the link below for an example:

Marty
  • 6,494
  • 3
  • 37
  • 40