Forrest logo
back to the mp4box tool

mp4box:tldr:46321

mp4box: Add an SRT subtitle file into an MP4 file.
$ mp4box -add ${input_subs-srt}:lang=eng -add ${input-mp4} ${output-mp4}
try on your machine

The command you provided is using the mp4box tool to add subtitle files to an MP4 video.

Here's the breakdown of the command:

  • mp4box: This is the command to run the mp4box tool, which is a multimedia packager and manipulator program.

  • -add ${input_subs-srt}:lang=eng: This option tells mp4box to add a subtitle file to the video. ${input_subs-srt} is a placeholder for the path or filename of the subtitle file (possibly in the SRT format). :lang=eng specifies the language of the subtitle as English.

  • -add ${input-mp4}: This option instructs mp4box to add an input MP4 video file to the command. ${input-mp4} is a placeholder for the path or filename of the MP4 video file.

  • ${output-mp4}: This is a placeholder for the desired path or filename of the output MP4 video file. The resulting video, after adding the subtitle, will be saved with this name.

So, if you replace ${input_subs-srt}, ${input-mp4}, and ${output-mp4} with the actual filenames and paths, the command will add the specified subtitle file to the input MP4 video file and save it with the desired name.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mp4box tool