paulgorman.org

< ^ txt

Fri Jul 6 08:05:31 EDT 2018 Slept from ten-thirty to six. Woke briefly around two. High of seventy-seven and sunny today. Stopped at Starbucks on my way to work. Work: - Ask Sherri if she wants to lift weight at lunch Done. Monday. - Follow up with Scott about Yardi Portal payment integration for multiple payment processors Done. - Look at kickstart for Raspbian A bit. The story is not great. - 3:30 PM call with Yardi Done. Twenty-minute walk at lunch. Saw a trio of dragonflies, a blue jay, morning doves, a turkey vulture, and a big yellow butterfly. Home: - Shell script to produce opus from flac Done. - A D&D thing Done. - Play with termloop No. Patrick Stuart interviews Bryce Lynch: https://www.youtube.com/watch?v=BbGUuEtbNeE&feature=youtu.be ``` --- falstaff ~ % cat ~/bin/flac2opus.sh #!/bin/bash # Covert flac music files in directory $din to opus files in directory $dout. # Paul Gorman, July 2018. set -euf din=/data/opus-in dout=/data/opus-out art=cover.jpg oe () { dout="$2" din="$3" art="$4" fo=$(basename "$1" | sed 's/\.flac$//;t' | sed 's/\.m4a$//;t' | sed 's/\.mp3$//;t' | sed 's/\.wav$//;t').opus sd=$(echo "$1" | awk -F/ '{ print $(NF - 1) }') mkdir -p "${dout}/${sd}" if [ -e "${din}/${sd}/${art}" ]; then cp -u "${din}/${sd}/${art}" "${dout}/${sd}/" fi opusenc --quiet --bitrate 128 "$1" "${dout}/${sd}/${fo}" } export -f oe find "$din" -type f -iname '*.flac' | parallel oe {} "$dout" "$din" "$art" ``` Encoding took about an hour to convert my whole library. The FLAC's shrunk from around 160 GB to around 25 GB of Opus files. Haven't listened on my highest fidelity rig, but the Opus files sound great on any cans I'm realistically going to plug into my phone. Breakfast: cafe latte, sausage sandwich Lunch: coconut ice cream, strawberries and blueberries, nuts Dinner: beer, chips

< ^ txt