Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install ffmpeg
- ffprobe file.mp3
- ffprobe file.mp3 2>&1 | grep -A90 'Metadata:'
- ffprobe -loglevel error -show_entries format_tags=artist -of default=noprint_wrappers=1:nokey=1 file.mp3
- # sudo apt-get install ffmpeg lltag eyed3 mp3info id3v2 libimage-exiftool-perl libid3-tools id3tool
- keyword='fill_me_in'
- getTitleFF() { ffprobe "$1" 2>&1 | sed -E -n 's/^ *title *: (.*)/1/p'; }
- getTitleLL() { lltag --show-tags title "$1" | sed -nE 's/^ TITLE=(.*)/1/p'; }
- getTitleEyed() { eyeD3 2>&1 "$1" | grep 'title'; }
- getTitleInfo() { mp3info -p %t "$1"; }
- getTitleId3() { id3v2 -l "$1" | sed -nE 's/^TIT2 ([^)]*): (.*)/1/p'; }
- getTitleExif() { exiftool -title -b "$1"; }
- getTitleId3i() { id3info "$1" | sed -n 's/^=== TIT2 (.*): //p'; }
- getTitleTool() { id3tool "$1" | sed -n 's|^Song Title:t||p'; }
- for prog in FF LL Eyed Info Id3 Exif Id3i Tool; do
- echo "=== getTitle${prog} ==="
- time
- for file in *.mp3; do
- if "getTitle${prog}" "$file" | grep -q "$keyword"; then
- echo "$file"
- fi
- done
- done
- Title : Artist:
- TIT2 (Title/songname/content description):
- Invalid mode/bitrate combination for layer II
- No ID3 v1.x/v2.x tag found!
- Program | Version | Time / s
- ----------+------------+-----------
- exiftool | 10.25 | 49.5 ± 0.5
- lltag | 0.14.5 | 41 ± 1.0
- ffprobe | 3.1.3-1+b3 | 33 ± 0.5
- eyeD3 | 0.6.18 | 24 ± 0.5
- id3info | 3.8.3 | 4.2 ± 0.1
- id3v2 | 0.1.12 | 2.9 ± 0.1
- id3tool | 1.2a | 1.7 ± 0.1
- mp3info | 0.8.5a | 1.4 ± 0.1
- sudo apt-get install mp3info
- mp3info -p %a file.mp3
- sudo apt-get install eyed3
- eyeD3 song.mp3
- eyeD3 song.mp3 | grep artist
- exiftool test.mp3
- ExifTool Version Number : 10.00
- File Name : test.mp3
- Directory : .
- File Size : 8.2 MB
- File Modification Date/Time : 2016:03:02 21:44:58+01:00
- File Access Date/Time : 2016:04:06 21:34:01+02:00
- File Inode Change Date/Time : 2016:03:02 21:45:36+01:00
- File Permissions : rw-rw-r--
- File Type : MP3
- File Type Extension : mp3
- MIME Type : audio/mpeg
- MPEG Audio Version : 1
- Audio Layer : 3
- Sample Rate : 44100
- Channel Mode : Stereo
- MS Stereo : Off
- Intensity Stereo : Off
- Copyright Flag : False
- Original Media : False
- Emphasis : None
- VBR Frames : 9544
- VBR Bytes : 8467680
- ID3 Size : 115419
- Band : Tech N9ne Collabos
- Album : Strangeulation (Deluxe Edition)
- Composer : Tech N9ne Collabos
- Genre : Rap & Hip-Hop
- Copyright : 2014 Strange Music, Inc
- Title : American Horror Story (feat. Ces Cru)
- Artist : Tech N9ne Collabos
- Track : 10
- Year : 2014
- Comment :
- Lyrics :
- Private : (Binary data 8192 bytes, use -b option to extract)
- Picture MIME Type : image/jpeg
- Picture Type : Front Cover
- Picture Description :
- Picture : (Binary data 104371 bytes, use -b option to extract)
- Audio Bitrate : 272 kbps
- Date/Time Original : 2014
- Duration : 0:04:09 (approx)
- sudo apt-get install lltag
- lltag -S somefile.mp3
- lltag --show-tags artist,album,title,number somefile.mp3
- pip install beets # latest version
- apt install beets # repo version
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement