You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
517 B
Plaintext

6 years ago
#!/bin/bash
output=${1:-podcast}
arecord -Dpulse_monitor -f cd ${output}_sc.wav &
arecord -Dpulse -f cd ${output}_mic.wav
ffmpeg -i ${output}_mic.wav -i ${output}_sc.wav -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 ${output}.mp3
today=$(date +%Y%m%d-%H%M);
mkdir -p "podcast.$today"
mv podcast.$today podcasts/;
mv -v ${output}_sc.wav podcasts/podcast.$today/${output}_sc.$today.wav;
mv -v ${output}_mic.wav podcasts/podcast.$today/podcast_mic.$today.wav;
mv -v ${output}.mp3 podcasts/${output}.$today.mp3;