2025-03-14 21:59:59 -06:00
|
|
|
# mp4box
|
|
|
|
|
|
|
|
|
|
> MPEG-4 Systems Toolbox: muxe streams into MP4 container.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/gpac/gpac/wiki/Fragmentation,-segmentation,-splitting-and-interleaving>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display information about an existing MP4 file:
|
|
|
|
|
|
|
|
|
|
`mp4box -info {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Add an SRT subtitle file into an MP4 file:
|
|
|
|
|
|
|
|
|
|
`mp4box -add {{input_subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}`
|
|
|
|
|
|
|
|
|
|
- Combine audio from one file and video from another:
|
|
|
|
|
|
|
|
|
|
`mp4box -add {{input1.mp4}}#audio -add {{input2.mp4}}#video {{output.mp4}}`
|