From 2abda8414fc06b0c405032cde5f60aa7f7a5194d Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 11 Nov 2014 15:13:38 +1100 Subject: [PATCH] Moved from jamesstuff --- rip-pulse | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 rip-pulse diff --git a/rip-pulse b/rip-pulse new file mode 100755 index 0000000..687e3ad --- /dev/null +++ b/rip-pulse @@ -0,0 +1,15 @@ +#!/bin/bash -e +echo -n "Will record in... " +for i in 5 4 3 2 1; do + echo -n "$i " + sleep 1 +done +echo +echo "Recording now!" + +src="$(pactl list | grep -A2 '^Source #' | grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1)" +dest="$1" +shift +parec -d "$src" --rate=44100 --format=s16le --channels=1 /dev/stdout | \ + lame -r -s '44.1' --signed --bitwidth 16 --little-endian -m m "$@" /dev/stdin "$dest" + -- 2.39.2