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"
do something
close FILE
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?
EDIT:
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)
https://code.google.com/p/mp4v2/wiki/iTunesMetadata
MP4::Info source
http://cpansearch.perl.org/src/JHAR/MP4-Info-1.12/Info.pm
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.