If you run
ffmpeg -f concat -i inputs.txt -c copy output.mp4
and get this error:[concat @ 0x563ca0173700] Unsafe file name '/media/gabriel/3339-3730/record/20221113/18/31.mp4' inputs.txt: Operation not permitted
...it is because you forgot to use
-safe 0
.See:
If you run
ffmpeg -f concat -safe 0 -i inputs.txt -c copy output.mp4
and get this error:[mp4 @ 0x55ced96f2100] Could not find tag for codec pcm_alaw in stream #1, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
...it is because "
ffmpeg
does not support PCM (pcm_alaw, pcm_s16le, etc) in the MP4 container." See here: codec not currently supported in container and here. So, runtime ffmpeg -f concat -safe 0 -i inputs.txt -c:v copy -c:a aac output.mp4
instead, to re-encode the audio into AAC format. Or, runtime ffmpeg -f concat -safe 0 -i inputs.txt -c copy output.mkv
to write into a .mkv container instead of into a .mp4 container.