From 393a8cc22f117245238df5dad2363cc853bac6a4 Mon Sep 17 00:00:00 2001 From: Kieran O'Leary Date: Tue, 10 May 2022 21:40:51 +0100 Subject: [PATCH 1/2] join files recipe - remove './' from example, fixes #457 --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 8b6e52c..0fdc832 100644 --- a/index.html +++ b/index.html @@ -1097,12 +1097,12 @@
ffmpeg
starts the command
-f concat
forces ffmpeg to concatenate the files and to keep the same file format
-i mylist.txt
path, name and extension of the input file. Per the FFmpeg documentation, it is preferable to specify relative rather than absolute file paths, as allowing absolute file paths may pose a security risk.
- This text file contains the list of files to be concatenated and should be formatted as follows: + This text file contains the list of files (without their absolute path) to be concatenated and should be formatted as follows:
-  file './first_file.ext'
-  file './second_file.ext'
+  file 'first_file.ext'
+  file 'second_file.ext'
   . . .
-  file './last_file.ext'
+  file 'last_file.ext'
 
In the above, file is simply the word "file". Straight apostrophes ('like this') rather than curved quotation marks (‘like this’) must be used to enclose the file paths.
Note: If specifying absolute file paths in the .txt file, add -safe 0 before the input file.
From aba38e0a08f910467dddbd827386d1a3a6a96249 Mon Sep 17 00:00:00 2001 From: Kieran O'Leary Date: Tue, 10 May 2022 23:08:20 +0100 Subject: [PATCH 2/2] join files recipe - add @brainwane path hint --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 0fdc832..7c72121 100644 --- a/index.html +++ b/index.html @@ -1092,7 +1092,7 @@
Join files together

ffmpeg -f concat -i mylist.txt -c copy output_file

-

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!

+

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 -safe 0, 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!

ffmpeg
starts the command
-f concat
forces ffmpeg to concatenate the files and to keep the same file format