< ^ txt
Sun Jan 29 09:07:21 EST 2017
Slept from one to eight-thirty.
I feel short of crappy this morning, despite sleeping enough and only drinking two beers last night.
High of twenty-eight today. Up to an inch of snowfall possible
- Send Ed link to crazy smiths in China
Done.
https://www.youtube.com/watch?v=68NXH4Nmbvk
- Rip flac's to mp3
Done.
#!/bin/sh
# Usage: flacdir2mp3dir.sh [FLAC_DIRECTORY]
# Rips flac files to mp3 files.
# The argument should be the full path to the flac directory, properly escaped.
mp3_root='/data/mp3'
mp3_quality='2' # Lower numbers are higher quality; 0-3 should be pretty transparent.
flac_dir=${1%/} # Remove trailing slash, if any
base_dir=$(basename "${flac_dir}")
output_dir="${mp3_root}"/"${base_dir}"
mkdir -p "${output_dir}"
cp "${flac_dir}"/*jpg "${output_dir}"/
for input_file in "${flac_dir}"/*flac; do
base_file=$(basename "${input_file}" .flac)
output_file="${mp3_root}"/"${base_dir}"/"${base_file}".mp3
ffmpeg -i "${input_file}" -c:a libmp3lame -q:a ${mp3_quality} "${output_file}"
done
I'm digging a lot of the new albums I bought, but this morning particularly:
- Two Door Cinema Club - Good Morning
- John Grant - Grey Trickles, Black Pressure
Breakfast: coffee, macaroni
Lunch:
Dinner: pizza
< ^ txt