You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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>
1095
+
<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. If possible, run the command from the same directory where the files and the text file reside. Otherwise you'll have to use <code>-safe 0</code>, see below for more information. 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>
1096
1096
<dl>
1097
1097
<dt>ffmpeg</dt><dd>starts the command</dd>
1098
1098
<dt>-f concat</dt><dd>forces ffmpeg to concatenate the files and to keep the same file format</dd>
1099
1099
<dt>-i <em>mylist.txt</em></dt><dd>path, name and extension of the input file. Per the <ahref="https://ffmpeg.org/ffmpeg-formats.html#Options" target="_blank">FFmpeg documentation</a>, it is preferable to specify relative rather than absolute file paths, as allowing absolute file paths may pose a security risk.<br>
1100
-
This text file contains the list of files to be concatenated and should be formatted as follows:
1100
+
This text file contains the list of files (without their absolute path) to be concatenated and should be formatted as follows:
1101
1101
<pre>
1102
-
file '<em>./first_file.ext</em>'
1103
-
file '<em>./second_file.ext</em>'
1102
+
file '<em>first_file.ext</em>'
1103
+
file '<em>second_file.ext</em>'
1104
1104
. . .
1105
-
file '<em>./last_file.ext</em>'
1105
+
file '<em>last_file.ext</em>'
1106
1106
</pre>
1107
1107
In the above, <strong>file</strong> is simply the word "file". Straight apostrophes ('like this') rather than curved quotation marks (‘like this’) must be used to enclose the file paths.<br>
1108
1108
<strong>Note:</strong> If specifying absolute file paths in the .txt file, add <code>-safe 0</code> before the input file.<br>
0 commit comments