Skip to content

Instantly share code, notes, and snippets.

ffmpeg -i “$1″ -acodec alac “`basename “$1″ .flac`.m4a” \
-metadata title=\”"$(metaflac –show-tag=TITLE “$1| sed ‘s/title=//g’)”\” \
-metadata author=\”"$(metaflac –show-tag=ARTIST “$1| sed ‘s/artist=//g’)\” \
-metadata album=\”"$(metaflac –show-tag=ALBUM “$1| sed ‘s/album=//g’)”\” \
-metadata year=\”"$(metaflac –show-tag=DATE “$1| sed ‘s/date=//g’)\” \
-metadata track=\”"$(metaflac –show-tag=TRACKNUMBER “$1| sed ‘s/tracknumber=//g’)”\” \
-metadata genre=\”"$(metaflac –show-tag=GENRE “$1| sed ‘s/genre=//g’)\”
adejones /
Last active Jan 27, 2020 — forked from RWJMurphy/
Python class and utility for file rotation. Configurable daily, weekly and monthly retention; can use hard links to save space; supports `argparse` config files.
#!/usr/bin/env python3
# vim: ft=python ts=4 sw=4 expandtab
# Copyright (c) 2013 Reed Kraft-Murphy <>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
You can’t perform that action at this time.