mp4ff-encrypt

command
v0.48.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

mp4ff-encrypt encrypts a fragmented mp4 file using Common Encryption with cenc or cbcs scheme. A combined fragmented file with init segment and media segment(s) will be encrypted. For a pure media segment, an init segment with encryption information is needed. For video, only AVC with avc1 and HEVC with hvc1 sample entries are currently supported. For audio, all supported audio codecs should work.

Usage of mp4ff-encrypt:

mp4ff-encrypt [options] infile outfile

options:

-init string
      Path to init file with encryption info (scheme, kid, pssh)
-iv string
      Required: iv (16 or 32 hex chars)
-key string
      Required: key (32 hex or 24 base64 chars)
-kid string
      key id (32 hex or 24 base64 chars). Required if initFilePath empty
-pssh string
      file with one or more pssh box(es) in binary format. Will be added at end of moov box
-scheme string
      cenc or cbcs. Required if initFilePath empty (default "cenc")
-version
      Get mp4ff version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL