amend concat command

This commit is contained in:
kfrn 2016-05-18 23:32:27 +12:00
parent 283dddc1a1
commit 0dcb47c98b

View File

@ -699,18 +699,22 @@
<h3>Join files together</h3>
<p><code>ffmpeg -f concat -i mylist.txt -c copy <i>output_file</i></code></p>
<p>This command takes two or more files of the same file type and joins them together to make a single file. All that the program needs is a text file with a list specifying the files that should be joined. However, it only works properly if the files to be combined have the exact same codec and technical specifications. Be careful, ffmpeg may appear to have successfully joined two video files with different codecs, but may only bring over the audio from the second file or have other weird behaviors. Dont use this command for joining files with different codecs and technical specs and always preview your resulting video file!</p>
<p>ffmpeg documentation on concatenating files (full list of flags, commands, <a href="https://trac.ffmpeg.org/wiki/Concatenate" target="_blank">https://trac.ffmpeg.org/wiki/Concatenate</a>)</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-f concat</dt><dd>forces ffmpeg to concatenate the files and to keep the same file format</dd>
<dt>-i <i>mylist.txt</i></dt><dd>path, name and extension of the input file. This text file contains the list of files to be concatenated and should be formatted as follows:
<pre><i>path_name_and_extension_to_the_first_file
path_name_and_extension_to_the_second_file
. . .
path_name_and_extension_to_the_last_file</i></pre></dd>
<pre>file '<i>path/to/first_file.ext</i>'
file '<i>path/to/second_file.ext</i>'
. . .
file '<i>path/to/last_file.ext</i>'</pre>
In the above, <strong>file</strong> is simply the word "file". Example of an .txt input file:
<pre>file 'd:/Videos/cats_01.mov'
file 'd:/Videos/cats_02.mov'
file 'd:/Videos/cats_03.mov'</pre></dd>
<dt>-c copy</dt><dd>use stream copy mode to re-mux instead of re-encode</dd>
<dt><i>output_file</i></dt><dd>path, name and extension of the output file</dd>
</dl>
<p>For full list of flags and commands, see the <a href="https://trac.ffmpeg.org/wiki/Concatenate">ffmpeg documentation on concatenating files</a>.</p>
</div>
</div>
</div>