I am attempting to use ffmpeg to concatenate multiple video files together, using an example of saving all files supplied to a file from here (under Automatically generating the input file) with a for loop. The file is successfully created where I want it to be, but upon execution of the command the output states: Unsafe file name '"C:UsersMr. MendelliDesktopTrack 1.mp4"'. The contents of my file index are as follows within the file:
file '"C:UsersMr. MendelliDesktopTrack 1.mp4"'
file '"C:UsersMr. MendelliDesktopTrack 2.mp4"'
I am under the impression that the issue is that the file paths are being wrapped in double quotes, but I can’t figure out how to get rid of them within the for loop example I am using I have tried their example with and without the single quote-wrapping %%i to no avail:
...
(
for %%i in (
%*
) do @echo file '%%i') > "%temp%FileIndex"
...
Additionally, unless there is an alternate wildcard, I am using %* as the use of this script may be used for two or more files, it is not guaranteed I will always only merge two.