Using FFmpeg's concat filter to join segmented video files.
However, recently I ran into this error message:
[SOLUTION][concat @ 0x5488ec0] Unsafe file name '/some/folder/somewhere/dva-test-000.avi'
/dev/fd/63: Operation not permitted
Since Feburary 2013, it seems that absolute filepaths are considered non-safe for the concat filter.
Either use relative paths or add "-safe 0" as option to the concat filter.
Like this, for example:
Of course, adding "safe 0" means that safety-checks are now disabled. Use at your own risk!
Code: Select all
$ ffmpeg -f concat -safe 0 -i <(for f in ./*.avi; do echo "file '$PWD/$f'"; done) -c copy output.avi
Thanks to thread "FFMpeg concat demuxer unsafe file name" (superuser.com)