From 16c8d68e398b96ac8599db438abea4dde5333fdb Mon Sep 17 00:00:00 2001 From: kfrn Date: Sat, 7 Oct 2017 00:21:29 +1300 Subject: [PATCH] Add note on terminology --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0ca8cfb..8d56d6a 100644 --- a/index.html +++ b/index.html @@ -73,6 +73,7 @@

Change container (rewrap)

Rewrap a file

ffmpeg -i input_file.ext -c copy -map 0 output_file.ext

This script will rewrap a video file. It will create a new video video file where the inner content (the video, audio, and subtitle data) of the original file is unchanged, but these streams are rehoused within a different container format.

+

Note: rewrapping is also known as remuxing, short for re-multiplexing.

ffmpeg
starts the command
-i input_file.ext
path and name of the input file
@@ -83,7 +84,7 @@

Rewrap a file

The new container you are rewrapping to is defined by the filename extension used here, e.g. .mkv, .mp4, .mov.

Important caveat

-

It may not be possible to rewrap a file's contents to a new container without re-encoding one or more of the streams. Some containers can only contain streams of a certain encoding type: for example, the .mp4 container does not support uncompressed audio tracks. (In practice .mp4 goes hand-in-hand with a H.264-encoded video stream and an AAC-encoded video stream, although other types of video and audio streams are possible). Another example is that the Matroska container does not allow data tracks; see the MKV to MP4 recipe.

+

It may not be possible to rewrap a file's contents to a new container without re-encoding one or more of the streams within (that is, the video, audio, and subtitle tracks). Some containers can only contain streams of a certain encoding type: for example, the .mp4 container does not support uncompressed audio tracks. (In practice .mp4 goes hand-in-hand with a H.264-encoded video stream and an AAC-encoded video stream, although other types of video and audio streams are possible). Another example is that the Matroska container does not allow data tracks; see the MKV to MP4 recipe.

In such cases, ffmpeg will throw an error. If you encounter errors of this kind, you may wish to consult the list of transcoding recipes.