mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2024-11-06 05:27:24 +01:00
amend concat command
This commit is contained in:
parent
283dddc1a1
commit
0dcb47c98b
14
index.html
14
index.html
@ -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. Don’t 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>
|
||||
|
Loading…
Reference in New Issue
Block a user