Created
August 21, 2015 21:10
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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