When trying to stitch several videos together with FFmpeg with the following command.
ffmpeg -f concat -i list.txt -c:v copy concat.mp4
I came across this error.
[concat @ 0x7fca4281b800] Unsafe file name '2021-09-16 08.13.mov' list.txt: Operation not permitted
The issue, which I've been able to fix manually other times, is that there's an unsafe character one or more input video names, the space.
As it turns out, we only need to turn off this safety measure for FFmpeg to skip this check, passing the
-safe 0 flag in our command.
ffmpeg -f concat -safe 0 -i list.txt -c:v copy concat.mp4
Hope that helps!