-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: extensive alignment of top-levle documentation for all packages.
Extension .m4s is now interpreted as mp4 file in mp4ff-pslister.
- Loading branch information
Showing
45 changed files
with
700 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
Package aac - parse and generate AAC meta data including ADTS headers. | ||
Package aac parses and generates AAC meta data including ADTS headers. | ||
*/ | ||
package aac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
Package av1 - parsing of av1 AV1CodecConfigurationRecord. | ||
Package av1 decodes (parses) and encodes (writes) AV1 CodecConfigurationRecord. | ||
*/ | ||
package av1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
Package avc - parse AVC(H.264) NAL unit headers, slice headers and complete SPS and PPS. | ||
Package avc parses AVC (H.264) NAL unit headers, slice headers and complete SPS and PPS. | ||
*/ | ||
package avc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
/* | ||
Package bits - bit and bytes reading and writing including Golomb codes and EBSP. | ||
Package bits provides bit and bytes reading and writing including Golomb codes and EBSP as used by MPEG video standards. | ||
All readers and writers accumulate errors in the sense that they will stop reading or writing at the first error. | ||
The first error, if any, can be retrieved with AccError(). | ||
The first error, if any, can be retrieved with an AccError() method. | ||
Beyond plain bit reading and writing, reading and writing of ebsp (Encapsulated Byte Sequence Packets) is supported. | ||
EBSP uses insertion of start-code emulation prevention bytes 0x03 and is used in MPEG video standards from AVC (H.264) and forward. | ||
EBSP (Encapsulated Byte Sequence Packets) uses insertion of start-code emulation prevention bytes 0x03 and is | ||
used in MPEG video standards from AVC (H.264) and forward. The main types are: | ||
- [Reader] reads bits and bytes from an underlying [io.Reader] with accumulated error | ||
- [Writer] writes bits and bytes to an underlying [io.Writer] with accumulated error | ||
- [EBSPReader] reads EBSP from an underlying [io.Reader] with accumulated error | ||
- [EBSPWriter] writes EBSP to an underlying [io.Writer] with accumulated error | ||
- [ByteWriter] writes byte-based structures to an underlying [io.Writer] with accumulated error | ||
- [FixedSliceReader] reads various byte-based structures from a fixed slice with accumulated error | ||
- [FixedSliceWriter] writes various byte-based structures to a fixed slice with accumulated error | ||
*/ | ||
package bits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
/* | ||
Package cmd - command line tools built using mp4ff. | ||
Package cmd provides command line tools built using mp4ff. | ||
Install like | ||
go install ./... | ||
or remotely as | ||
or directly from the repo | ||
as | ||
go get -u github.com/Eyevinn/mp4ff/cmd/mp4ff-info | ||
go install github.com/Eyevinn/mp4ff/cmd/mp4ff-info | ||
go install github.com/Eyevinn/mp4ff/cmd/mp4ff-subslister | ||
... | ||
*/ | ||
package cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
mp4ff-crop crops a (progressive) mp4 file to just before a sync frame after specified number of milliseconds. | ||
The goal is to leave the file structure intact except for cropping of samples and | ||
moving mdat to the end of the file, if not already there. | ||
Usage of mp4ff-crop: | ||
mp4ff-crop [options] <inFile> <outFile> | ||
options: | ||
-d uint | ||
Duration in milliseconds (default 1000) | ||
-version | ||
Get mp4ff version | ||
*/ | ||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
mp4ff-decrypt decrypts a fragmented mp4 file encrypted with Common Encryption scheme cenc or cbcs. | ||
For a media segment, it needs an init segment with encryption information. | ||
Usage of mp4ff-decrypt: | ||
mp4ff-decrypt [options] infile outfile | ||
options: | ||
-init string | ||
Path to init file with encryption info (scheme, kid, pssh) | ||
-k string | ||
Required: key (hex) | ||
-version | ||
Get mp4ff version | ||
*/ | ||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
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 | ||
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 chars) | ||
-kid string | ||
key id (32 hex 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 | ||
*/ | ||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
mp4ff-info prints the box tree of input mp4 (ISOBMFF) file. | ||
Usage of mp4ff-info: | ||
mp4ff-info [options] infile | ||
options: | ||
-l string | ||
level of details, e.g. all:1 or trun:1,subs:1 | ||
-version | ||
Get mp4ff version | ||
*/ | ||
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.