in reply to Search hex string in vary large binary file
Just to point out an issue with your approach: If you were simply looking for a specific sequence of 24 bytes within up to 20,000,000,000 bytes, what about false positives? To avoid that, you'd actually have to parse the file and only look in the appropriate places for that flag. Which, if you were to DIY, would be a lot of reading specs and writing code, so it really is best to use an existing tool.
You're in luck! Someone actually submitted a patch for MP4::Info to add support for the HDVD tag: https://rt.cpan.org/Public/Bug/Display.html?id=101016
There's a quick & really dirty way to patch the module on your system: "wget -nv https://rt.cpan.org/Ticket/Attachment/1444239/767837/0001-add-support-for-HDVD-tag.patch -O- | patch `perldoc -l MP4::Info`" (you'll probably need to do this as root). However, a somewhat cleaner way would be to patch the module before installation:
# in the shell: $ cd /tmp $ wget http://www.cpan.org/authors/id/J/JH/JHAR/MP4-Info-1.13.tar.gz $ tar xzf MP4-Info-1.13.tar.gz $ cd MP4-Info-1.13/ $ wget -nv https://rt.cpan.org/Ticket/Attachment/1444239/767837/0001-a +dd-support-for-HDVD-tag.patch -O- | patch
... and then install to a local module repository separate from your system's modules. For example, see the instructions under "I don't have permission to install a module on the system!" in A Guide to Installing Modules.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search hex string in vary large binary file
by BrowserUk (Patriarch) on Feb 07, 2015 at 15:03 UTC | |
by Anonymous Monk on Feb 07, 2015 at 15:57 UTC | |
by BrowserUk (Patriarch) on Feb 07, 2015 at 16:18 UTC | |
by Anonymous Monk on Feb 07, 2015 at 19:56 UTC | |
by BrowserUk (Patriarch) on Feb 07, 2015 at 20:55 UTC | |
|