patriciaxxx
Programmer
I am trying to run the following batch file from a folder. The folder also contains the ffmpeg exe and any mp3 files and a subfolder named ‘files’.
What should happen is whichever folder I choose to drop all the files / folder as mentioned above in and then run the bat file I should get a single mp3 file in the folder named ‘files’ which has be concatenated with all the mp3 files. But it doesn’t seem to work.
The for loop should return the names on the fly in the above format (spaces included, if any) as that is what ffmpeg reads. The above example assumes 3 mp3 files named elvis 01.mp3, elvis 02.mp3 and elvis 03.mp3
Code:
ffmpeg -f concat -i <( for f in *.mp3; do echo "file '$(pwd)/$f'"; done ) "files\concat.mp3”
What should happen is whichever folder I choose to drop all the files / folder as mentioned above in and then run the bat file I should get a single mp3 file in the folder named ‘files’ which has be concatenated with all the mp3 files. But it doesn’t seem to work.
Code:
file 'elvis 01.mp3'
file 'elvis 02.mp3'
file 'elvis 03.mp3'
The for loop should return the names on the fly in the above format (spaces included, if any) as that is what ffmpeg reads. The above example assumes 3 mp3 files named elvis 01.mp3, elvis 02.mp3 and elvis 03.mp3