2016-09-22 08:03:38 +01:00
|
|
|
# mp4box
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2024-02-14 17:25:13 -03:00
|
|
|
> MPEG-4 Systems Toolbox: muxe streams into MP4 container.
|
2019-06-04 10:25:19 +01:00
|
|
|
> More information: <https://gpac.wp.imt.fr/mp4box>.
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Display information about an existing MP4 file:
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2022-12-06 07:47:56 +01:00
|
|
|
`mp4box -info {{path/to/file}}`
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Add an SRT subtitle file into an MP4 file:
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-09-22 08:03:38 +01:00
|
|
|
`mp4box -add {{input_subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}`
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Combine audio from one file and video from another:
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2021-04-03 20:08:57 -04:00
|
|
|
`mp4box -add {{input1.mp4}}#audio -add {{input2.mp4}}#video {{output.mp4}}`
|