Skip to main content
fix typos in command line
Source Link
weakish
  • 29.8k
  • 5
  • 51
  • 64
  1. 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:

    1. https://nono.ma/says/concat-unsafe-file-name-operation-not-permitted
    2. ffmpeg concat: "Unsafe file name"
  2. 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, run time 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, run time ffmpeg -f concat -safe 0 -i inputs.txt -c copy output.mkv to write into a .mkv container instead of into a .mp4 container.

  1. 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:

    1. https://nono.ma/says/concat-unsafe-file-name-operation-not-permitted
    2. ffmpeg concat: "Unsafe file name"
  2. 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, run time 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, run time ffmpeg -f concat -safe 0 -i inputs.txt -c copy output.mkv to write into a .mkv container instead of into a .mp4 container.

  1. 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:

    1. https://nono.ma/says/concat-unsafe-file-name-operation-not-permitted
    2. ffmpeg concat: "Unsafe file name"
  2. 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, run 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, run ffmpeg -f concat -safe 0 -i inputs.txt -c copy output.mkv to write into a .mkv container instead of into a .mp4 container.

added 6 characters in body
Source Link
Gabriel Staples
  • 51.4k
  • 30
  • 272
  • 353

If you're looking for how to combine many .mov or .MOV files into one instead, see my other answer here: Super User: Combine MOV video files. I also have a find command there to gather all files of interest rapidly into files.txt or inputs.txt, rather than having to do it manually.

If you're looking for how to combine many .mov or .MOV files into one instead, see my other answer here: Super User: Combine MOV video files. I also have a find command to gather all files of interest rapidly into files.txt or inputs.txt, rather than having to do it manually.

If you're looking for how to combine many .mov or .MOV files into one instead, see my other answer here: Super User: Combine MOV video files. I also have a find command there to gather all files of interest rapidly into files.txt or inputs.txt, rather than having to do it manually.

added 191 characters in body
Source Link
Gabriel Staples
  • 51.4k
  • 30
  • 272
  • 353

If you're looking for how to combine many .mov or .MOV files into one instead, see my other answer here: Super User: Combine MOV video files. I also have a find command to gather all files of interest rapidly into files.txt or inputs.txt, rather than having to do it manually.

If you're looking for how to combine many .mov or .MOV files into one instead, see my other answer here: Super User: Combine MOV video files. I also have a find command to gather all files of interest rapidly into files.txt or inputs.txt, rather than having to do it manually.

added 206 characters in body
Source Link
Gabriel Staples
  • 51.4k
  • 30
  • 272
  • 353
Loading
added 283 characters in body
Source Link
Gabriel Staples
  • 51.4k
  • 30
  • 272
  • 353
Loading
added 2 characters in body
Source Link
Gabriel Staples
  • 51.4k
  • 30
  • 272
  • 353
Loading
Source Link
Gabriel Staples
  • 51.4k
  • 30
  • 272
  • 353
Loading