|laziness, impatience, and hubris|
Search hex string in vary large binary fileby westrock2000 (Beadle)
|on Feb 06, 2015 at 23:25 UTC||Need Help??|
westrock2000 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to search iTunes M4V movie files for a switch that determines if the "1080P" metatag has been set. The string is
68 64 76 64 00 00 00 11 64 61 74 61 00 00 00 15 00 00 00 00 02 00 00 00
So I have two questions
The first problem is that my video files are on the order of 4-20GB and I'm not sure if the standard
open FILE "video"
since this would be a very large file that is bigger then my memory.
How can I read the file from disk?
And then 2nd how would I do a regular expression for binary instead of searching for text?
I have used MP4::Info for other parts of my task.
Would it be possible to add the metatag info to the module code?
I have never altered a module before
The info I found about the iTunes data is
HD Video = hdvd 8-bit integer (boolean)