Changes between Version 32 and Version 33 of Concatenate
- Timestamp:
- Jan 20, 2017, 1:50:58 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Concatenate
v32 v33 26 26 Note 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: 27 27 {{{ 28 ffmpeg -f concat -i mylist.txt -c copy output 29 }}} 28 ffmpeg -f concat -safe 0 -i mylist.txt -c copy output 29 }}} 30 31 The `-safe 0` above is not required if the paths are relative. 30 32 31 33 It 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: … … 47 49 48 50 {{{ 49 ffmpeg -f concat - i <(for f in ./*.wav; do echo "file '$PWD/$f'"; done) -c copy output.wav50 ffmpeg -f concat - i <(printf "file '$PWD/%s'\n" ./*.wav) -c copy output.wav51 ffmpeg -f concat - i <(find . -name '*.wav' -printf "file '$PWD/%p'\n") -c copy output.wav51 ffmpeg -f concat -safe 0 -i <(for f in ./*.wav; do echo "file '$PWD/$f'"; done) -c copy output.wav 52 ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/%s'\n" ./*.wav) -c copy output.wav 53 ffmpeg -f concat -safe 0 -i <(find . -name '*.wav' -printf "file '$PWD/%p'\n") -c copy output.wav 52 54 }}} 53 55
