Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFmpeg: How to open a file with an apostrophe in its name?

I am trying to concatenate a bunch of audio files with the following command:

ffmpeg -f concat -safe 0 -i Filelist.txt -c copy out.mp3

Unfortunately, one of my audio files has an apostrophe in its name, which are used to indicate the start and end of the filename:

file 'Murfy's in Trouble!.mp3'

giving the following error:

                            Impossible to open 'Murfy%s'
Filelist.txt: No such file or directory

I tried escaping it with \ and %, but those don't work. Is there any way around this without changing all my filenames?


1 Answers

Escaping ' in a quote needs to be done with '\'', as per the documentation.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!