Audio::M4P::Decrypt is a DRMS decryption of Apple iTunes style MP4 player files.
Originally derived from the DeDRMS.cs program by Jon Lech Johansen
SYNOPSIS
use Audio::M4P::Decrypt;
my $outfile = 'mydecodedfile';
my $deDRMS = new Audio::M4P::Decrypt;
$deDRMS->DeDRMS($mp4file, $outfile);
See also the M4pDecrypt.pl example program in this distribution.
METHODS
new
my $cs = new Audio::M4P::Decrypt;
my $cs_conparam = Audio::M4P::Decrypt->new(
strHome => '~', sPfix => '.', dirSep => '/'
);
Optional arguments: strHome is the directory containing the keyfile directory. After running VLC on a .m4p file under Windows, MacOS X, and Linux, this should be found by the module automatically (APPDATA dir under Win32, ~/ under OS X and Linux). sPfix is '.' for MacOS/*nix, nil with Windows. dirSep is the char that separates directories, often /.
For debugging purposes, use eg: my $cs_conparam = Audio::M4P::Decrypt->new( DEBUG => 1, DEBUGDUMPFILE => 'm4ptree.html' );
DEBUG turns on debugging output. DEBUGDUMPFILE is an output file name to dump an html picture of the m4p data structure.
DeDRMS
my $cs = new Audio::M4P::Decrypt;
$cs->DeDRMS('infilename', 'outfilename');
Decode infilename, write to outfilename. Reading slurps up an entire file, so output can overwrite the same file without a problem, we hope. Backup first.
DecryptFile
$cs->DecryptFile('infilename', 'outfilename');
More descriptive alias for the DeDRMS method.
Product's homepage
Requirements:
· Perl