Skip to content

Instantly share code, notes, and snippets.

@drench
Created September 29, 2018 21:44
Show Gist options
  • Save drench/863f8a07eeefaf1f9090901cfd432872 to your computer and use it in GitHub Desktop.
Save drench/863f8a07eeefaf1f9090901cfd432872 to your computer and use it in GitHub Desktop.
#!/bin/sh
dir=$(mktemp -d)
unzip "$1" -d "$dir"
for f in $dir/*.m4a; do
echo "converting $f to mp4…"
afconvert -f mp4f "$f"
done
castnow $dir/*.mp4
@drench
Copy link
Author

drench commented Sep 29, 2018

This plays Bandcamp downloads that are zipped m4a (Apple Lossless) on a Chromecast. It depends on https://github.com/xat/castnow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment