Command line usage command-line-usage
Before using Media Packager, ensure that you fulfill the requirements listed in Requirements and that the configuration file contains the required information (see Configuration file in the Using the Adobe Access Reference Implementations.
Media Packager is in the \Reference Implementation\Command Line tools directory on the DVD. To encrypt a single file, use the following syntax:
java -jar AdobePackager.jar
<i class="+ topic ph hi-d="" i "="">
source
<i class="+ topic ph hi-d="" i "="">
dest [
<i class="+ topic ph hi-d="" i "="">
options]
</i class="+ topic>
</i class="+ topic>
</i class="+ topic>
sourceis the file to be encrypted.destspecifies where the encrypted content will be written. If a directory is specified, the encrypted file will be saved in this folder using the same file name as the source file, but the directory must not be the directory which contains the source file.
To encrypt multiple files with the same key (for multi-bit-rate support), use the following syntax:
java -jar AdobePackager.jar
<i class="+ topic ph hi-d="" i "="">
sourcefiles
<i class="+ topic ph hi-d="" i "="">
dest-directory [
<i class="+ topic ph hi-d="" i "="">
options]
</i class="+ topic>
</i class="+ topic>
</i class="+ topic>
sourcefilesis a series of whitespace-delimited source entries representing the files to be encrypted.dest-directoryspecifies where the encrypted content will be written. The encrypted files will be saved in this folder using the same file names as the source files, but the directory must not be the directory that contains the source files.
To view information about an encrypted file, use the following syntax:
java -jar AdobePackager.jar -d
<i class="+ topic ph hi-d="" i "="">
encryptedfile [-e] [-m]
</i class="+ topic>
encryptedfileis the encrypted file.
To view information about a metadata file, use the following syntax:
java -jar AdobePackager.jar -dm <metadatafile> [-e]
metadatafileis a .metadata file containing the DRM metadata.
-h option during packaging.The following table contains descriptions of the command line options shown in the syntax above:
Specifies the name of the file containing the policy. If the policy requires domain registration with a server that uses a different transport certificate than the one specified in the properties file, the domain transport certificate also needs to be provided.
Multiple -p options may be specified, and the client will use the first by default. The values specified on the command line take precedence over those specified in the configuration file.