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
  • 22,451
  • 24
  • 104
  • 161
Mohamad Ibrahim
  • 4,085
  • 8
  • 28
  • 42

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,284
  • 3
  • 33
  • 40