[FFmpeg-user] Concat command for ffmpeg fails "Unsafe file name" - why?

Bo Berglund bo.berglund at gmail.com
Thu Mar 16 13:10:21 EET 2023

On Thu, 16 Mar 2023 10:07:22 +0000, Rob Hallam <ffmpeg at roberthallam.com> wrote:

>On Thu, 16 Mar 2023 at 09:59, Bo Berglund <bo.berglund at gmail.com> wrote:
>> What is the reason for this when the tmp files obviously are created just fine
>> using ffmpeg in an earlier step???
>> What can be done about it?
>-safe 0 as stated options:
>https://ffmpeg.org/ffmpeg-formats.html#Options (also mentioned on the

Thanks, that did the trick!

Does it matter where on the command line safe is put (in the beginning or at the
end before the output file name)?
Maybe it must be defined before ffmpeg reaches file arguments?
Or does it read ALL arguments before starting to process them?

ffmpeg -hide_banner -safe 0 -f concat -i _filelist1_.txt -c copy ./Test.mp4


ffmpeg -hide_banner -f concat -i _filelist1_.txt -c copy -safe 0 ./Test.mp4

Where the _filelist1_.txt file contains full path to the videos to be pasted

Bo Berglund
Developer in Sweden

More information about the ffmpeg-user mailing list