-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,215 additions
and
41 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
FQ="$1" | ||
|
||
c() { | ||
echo -e "\x1b[97m# $1\x1b[0m" | ||
} | ||
|
||
s() { | ||
echo "\$ $1" | ||
sh -c "${1/fq/$FQ -C}" | ||
} | ||
|
||
c "Overview of mp3" | ||
s "fq . file.mp3" | ||
echo | ||
c "Show ID3v2 tag in mp3 file" | ||
s "fq '.headers[0]' file.mp3" | ||
echo | ||
c "Resolution of ID3v2 cover art" | ||
s "fq '.headers[0].frames[] | select(.id == \"APIC\").picture.chunks[] | select(.type == \"IHDR\") | {width, height}' file.mp3" | ||
echo | ||
c "Extract image file" | ||
s "fq '.headers[].frames[] | select(.id == \"APIC\")?.picture | tobits' file.mp3 >file.png" | ||
s "file file.png" | ||
rm -f file.png |
Oops, something went wrong.