A very basic FFmpeg command looks like this:
- ffmpeg
- starts the command -
- -i input_file.ext
- path and name of the input file
- -i input_file.ext
- path and name of the input file
- -flag some_action
- tell FFmpeg to do something, by supplying a valid flag and action
- output_file.ext
- path and name of the output file.
Because this is the last part of the command, the filename you type here does not have a flag designating it as the output file.
@@ -197,7 +196,7 @@
- ffmpeg
- starts the command -
- -i input_file.ext
- path and name of the input file
- -i input_file.ext
- path and name of the input file
- -c copy
- copy the streams directly, without re-encoding.
- -map 0
- map all streams of the input to the output.
By default, FFmpeg will only map one stream of each type (video, audio, subtitles) to the output file. However, files may have multiple streams of a given type - for example, a video may have several audio tracks for different languages. Therefore, if you want to preserve all the streams in the original, it's necessary to use this option.
Note: rewrapping is also known as remuxing, short for re-multiplexing.