Gists

Things I don't use much...

youtube-dl,

# download youtube video with subtitles
youtube-dl --write-srt --sub-lang en https://www.youtube.com/watch\?v\=4J5Rh1zY-iY

# download just the subtitles
youtube-dl --write-srt --sub-lang en --skip-download https://www.youtube.com/watch\?v\=4J5Rh1zY-iY

also, youtube-dlc

ffmpeg

concatenate files, per https://trac.ffmpeg.org/wiki/Concatenate , using a list of files

printf "file '%s'\n" *.m4a > mylist.txt
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.m4a

or generating the file list of the fly

ffmpeg -f concat -safe 0 -i <(for f in ./*.wav; do echo "file '$PWD/$f'"; done) -c copy output.wav
ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/%s'\n" ./*.wav) -c copy output.wav
ffmpeg -f concat -safe 0 -i <(find . -name '*.wav' -printf "file '$PWD/%p'\n") -c copy output.wav