Allfilepath with Pipe as seperator?

Hi!

Is it possible to create a list of files with the pipe character as the separator, as described here.

I already tried, however it seems the pipe is used internally. Is there an escape char I can mask use to mask the pipe?

I've tried e.g.: /ffmpeg\ffmpeg.exe -i "concat:{allfilepath|sep=|}" -c copy "Merged {file}"

Btw, /ffmpeg is an alias to the executable...

Pipes in command lines will redirect output to things and wouldn’t usually work as a separator between paths. Are you sure that’s what ffmpeg actually wants?

Thanks Leo for your reply and yes, that's what I want to achieve according to here

Especially the following command:

ffmpeg -i "concat:input1.mp4|input2.mp4|input3.mp4|input4.mp4" -c copy output10.mp4

Anyway, I guess it works as expected, but I did not realize in the first run, because the output of ffmpeg did not succeed, but this is a different story.

When adding a pause command to the script, I can see that DO created a file list separated by the pipe char. So basically it worked, but not my ffmpeg command line :laughing:

This rusty thing probably still works.

I got this partly working with this lines

@disablenosel:type=grp:Movies
@nodeselect
@leavedoswindowopen 
(for %%i in ({allfilepath|sep= }) do @echo file '%%i') > mergelist.tmp
/ffmpeg\ffmpeg.exe -y -f concat -safe 0 -i mergelist.tmp -c copy "Merged {file}"  
del mergelist.tmp

My selected files are
grafik

However problem is that those lines insert double quotes into the temp file mergelist.tmp
grafik
In this case ffmpeg fails because the quoted file names.

If I add @nofilenamequoting to the script, the content of the temp file looks like
grafik
which is not great either :laughing:

So is there any chance to get this running?
Should have put this in a separate thread.

Basically I'm in the need of creating a temp file with this content
grafik
Preferable without using some JScript.

You’ll probably save yourself time by using scripting now rather than trying to do it with awful DOS for-loops and similar, only to give up and use scripting later.

If you can understand that DOS for-loop and its percent codes then basic JScript won’t be a problem and will be much more straightforward.

I saw this answer coming :yum:
OK so I will drop DOS and code it with JScript :grimacing:

1 Like