Changes between Version 32 and Version 33 of Concatenate


Ignore:
Timestamp:
Jan 20, 2017, 3:50:58 PM (2 years ago)
Author:
jamadagni
Comment:

Added -safe 0 option which is required for absolute paths for concat demuxer input file

Legend:

Unmodified
Added
Removed
Modified
  • Concatenate

    v32 v33  
    2626Note that these can be either relative or absolute paths. Then you can [https://ffmpeg.org/ffmpeg.html#Stream-copy stream copy] or re-encode your files:
    2727{{{
    28 ffmpeg -f concat -i mylist.txt -c copy output
    29 }}}
     28ffmpeg -f concat -safe 0 -i mylist.txt -c copy output
     29}}}
     30
     31The `-safe 0` above is not required if the paths are relative.
    3032
    3133It is possible to generate this list file with a bash for loop, or using `printf`. '''Either''' of the following would generate a list file containing every *.wav in the working directory:
     
    4749
    4850{{{
    49 ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$PWD/$f'"; done) -c copy output.wav
    50 ffmpeg -f concat -i <(printf "file '$PWD/%s'\n" ./*.wav) -c copy output.wav
    51 ffmpeg -f concat -i <(find . -name '*.wav' -printf "file '$PWD/%p'\n") -c copy output.wav
     51ffmpeg -f concat -safe 0 -i <(for f in ./*.wav; do echo "file '$PWD/$f'"; done) -c copy output.wav
     52ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/%s'\n" ./*.wav) -c copy output.wav
     53ffmpeg -f concat -safe 0 -i <(find . -name '*.wav' -printf "file '$PWD/%p'\n") -c copy output.wav
    5254}}}
    5355