combine-segs

command
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 6 Imported by: 0

README

Multiplex example

This folder provides an example of multiplexing tracks from fragmented MP4 files.

The functions

 combineInitSegments
 combineMediaSegments

combines the tracks from two or more different init or media segments. The combined tracks get unique track names as specified using parameters. Note that they should start at 1 according to the file format specification.

In principle, the trex box data from the init segment may be needed when generating media segments since that may contain default values. In practice, for this specific case of just transfering tracks, it should work without propagating the trex data.

The data is written to the combined mdat box track by track, so that there is exactly one trun box for each track. Interleaving data into more trun boxes should be possible by writing fractions of samples from the different input files.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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