Morgan Davis

Loading

Yes, it snows in San Diego. It’s the only place where you can be tossing a Frisbee on the beach and throwing snowballs all within an hour.

02.27.2011

Mt. San Miguel

02.25.2011

My Cup of Tea

Usage: Start a PowerShell, drop into a directory containing flac music files, and then run this flac2mp3.ps1 script. It will find all the *.flac files in the current directory and encode them as *.mp3 files (adjust arguments as desired). Requires both the flac and lame command line tools.

File: flac2mp3.ps1


$flac = "c:\program files\flac\flac"
$lame = "c:\program files\lame\lame"
$tmp = "flac2mp3temp.wav"

foreach ($f in gci *.flac) {
    $f.name -match "(^.+)\..+"
    $fn = $matches[1]
    & $flac -d "$f" -o $tmp
    & $lame -b 320 -h -m s $tmp "$fn.mp3"
    remove-item $tmp
}

02.08.2011

Beams and Rays

02.02.2011

Sand Diego