Skip to content

Instantly share code, notes, and snippets.

@csamsel
Created August 21, 2015 21:10
Show Gist options
  • Save csamsel/9af17c0fafac6d6aa45a to your computer and use it in GitHub Desktop.
Save csamsel/9af17c0fafac6d6aa45a to your computer and use it in GitHub Desktop.
bash one liner to create cover.jpg 's in all subdirectories (extract from first mp3 in directory)
find -type d -execdir sh -c 'cd "{}"; find . -name "*.mp3" | head -n1 | xargs --replace=FILENAME ffmpeg -loglevel quiet -i "FILENAME" cover.jpg' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment