mkdir ~/Downlaods/manzanita
cd ~/Downlaods/manzanita
wget --user=<USER> --password=<PASSWORD> www.manzanitasystems.com/manzuser/dwbavr.zip
wget --user=<USER> --password=<PASSWORD> www.manzanitasystems.com/manzuser/etzqgz.zip
unzip -P <PASSWORD> -o dwbavr.zip
unzip -P <PASSWORD> -o etzqgz.zip
tar -xvzf mp2tsme-8.1.78.x86_64.tgz
tar -xvzf mp4mux-3.0.9.x86_64.tgz
ln -s manzanita/mp4mux/mp4mux /usr/bin/mp4mux
ln -s manzanita/mp2tsme/mp2tsme /usr/bin/mp2tsme
Fully automated way to configure the license
$ (echo 3; echo <manzanitaLicenseServer>; echo y; echo <manzanitaCustomerKey> ) | mp4mux -liccfg
$ (echo 3; echo <manzanitaLicenseServer>; echo y; echo <manzanitaCustomerKey> ) | mp2tsme -liccfg
Using Manzanita embedding(608/708) captions is a 4 step process.
- Demux the mp4's elementary streams using MP4Mux.
- Embed the scc sidecar file into the h.264 video elementary stream using MP2TSME.
- Create an MP4Mux config file.
- Mux the new video elementary stream that has captions with the audio stream using MP4Mux.
$ mkdir ~/Desktop/manzanita
$ cd ~/Desktop/manzanita
$ wget <location of an mp4> -O source.mp4
$ wget <location of an scc caption file> -O caption.scc
$ mp4mux -dd source.mp4 1 source.h264 2 source.aac
$ mp2tsme -c source.h264 source_ecc.h264 caption.scc
$ echo 'mp4mux-config 2,0
output: {/Users/<USER>/Desktop/manzanita/source_ecc.mp4}
delivery-target: Disabled
movie-fragments: Disabled
fragment-time: 2.0
major-brand: mp42
free-box: Before-mdat
tracks [
video [
filename: {/Users/<USER>/Desktop/manzanita/source_ecc.h264}
track-id: 1
]
audio [
filename: {/Users/<USER>/Desktop/manzanita/source.acc}
track-id: 2
]
]
/mp4mux-config
' > config.cfg
$ mp4mux config.cfg