Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. sudo apt-get install ffmpeg
  2. ffprobe file.mp3
  3.  
  4. ffprobe file.mp3 2>&1 | grep -A90 'Metadata:'
  5.  
  6. ffprobe -loglevel error -show_entries format_tags=artist -of default=noprint_wrappers=1:nokey=1 file.mp3
  7.  
  8. # sudo apt-get install ffmpeg lltag eyed3 mp3info id3v2 libimage-exiftool-perl libid3-tools id3tool
  9.  
  10. keyword='fill_me_in'
  11.  
  12. getTitleFF() { ffprobe "$1" 2>&1 | sed -E -n 's/^ *title *: (.*)/1/p'; }
  13. getTitleLL() { lltag --show-tags title "$1" | sed -nE 's/^ TITLE=(.*)/1/p'; }
  14. getTitleEyed() { eyeD3 2>&1 "$1" | grep 'title'; }
  15. getTitleInfo() { mp3info -p %t "$1"; }
  16. getTitleId3() { id3v2 -l "$1" | sed -nE 's/^TIT2 ([^)]*): (.*)/1/p'; }
  17. getTitleExif() { exiftool -title -b "$1"; }
  18. getTitleId3i() { id3info "$1" | sed -n 's/^=== TIT2 (.*): //p'; }
  19. getTitleTool() { id3tool "$1" | sed -n 's|^Song Title:t||p'; }
  20.  
  21. for prog in FF LL Eyed Info Id3 Exif Id3i Tool; do
  22. echo "=== getTitle${prog} ==="
  23. time
  24. for file in *.mp3; do
  25. if "getTitle${prog}" "$file" | grep -q "$keyword"; then
  26. echo "$file"
  27. fi
  28. done
  29. done
  30.  
  31. Title : Artist:
  32.  
  33. TIT2 (Title/songname/content description):
  34.  
  35. Invalid mode/bitrate combination for layer II
  36. No ID3 v1.x/v2.x tag found!
  37.  
  38. Program | Version | Time / s
  39. ----------+------------+-----------
  40. exiftool | 10.25 | 49.5 ± 0.5
  41. lltag | 0.14.5 | 41 ± 1.0
  42. ffprobe | 3.1.3-1+b3 | 33 ± 0.5
  43. eyeD3 | 0.6.18 | 24 ± 0.5
  44. id3info | 3.8.3 | 4.2 ± 0.1
  45. id3v2 | 0.1.12 | 2.9 ± 0.1
  46. id3tool | 1.2a | 1.7 ± 0.1
  47. mp3info | 0.8.5a | 1.4 ± 0.1
  48.  
  49. sudo apt-get install mp3info
  50.  
  51. mp3info -p %a file.mp3
  52.  
  53. sudo apt-get install eyed3
  54.  
  55. eyeD3 song.mp3
  56.  
  57. eyeD3 song.mp3 | grep artist
  58.  
  59. exiftool test.mp3
  60. ExifTool Version Number : 10.00
  61. File Name : test.mp3
  62. Directory : .
  63. File Size : 8.2 MB
  64. File Modification Date/Time : 2016:03:02 21:44:58+01:00
  65. File Access Date/Time : 2016:04:06 21:34:01+02:00
  66. File Inode Change Date/Time : 2016:03:02 21:45:36+01:00
  67. File Permissions : rw-rw-r--
  68. File Type : MP3
  69. File Type Extension : mp3
  70. MIME Type : audio/mpeg
  71. MPEG Audio Version : 1
  72. Audio Layer : 3
  73. Sample Rate : 44100
  74. Channel Mode : Stereo
  75. MS Stereo : Off
  76. Intensity Stereo : Off
  77. Copyright Flag : False
  78. Original Media : False
  79. Emphasis : None
  80. VBR Frames : 9544
  81. VBR Bytes : 8467680
  82. ID3 Size : 115419
  83. Band : Tech N9ne Collabos
  84. Album : Strangeulation (Deluxe Edition)
  85. Composer : Tech N9ne Collabos
  86. Genre : Rap & Hip-Hop
  87. Copyright : 2014 Strange Music, Inc
  88. Title : American Horror Story (feat. Ces Cru)
  89. Artist : Tech N9ne Collabos
  90. Track : 10
  91. Year : 2014
  92. Comment :
  93. Lyrics :
  94. Private : (Binary data 8192 bytes, use -b option to extract)
  95. Picture MIME Type : image/jpeg
  96. Picture Type : Front Cover
  97. Picture Description :
  98. Picture : (Binary data 104371 bytes, use -b option to extract)
  99. Audio Bitrate : 272 kbps
  100. Date/Time Original : 2014
  101. Duration : 0:04:09 (approx)
  102.  
  103. sudo apt-get install lltag
  104.  
  105. lltag -S somefile.mp3
  106.  
  107. lltag --show-tags artist,album,title,number somefile.mp3
  108.  
  109. pip install beets # latest version
  110. apt install beets # repo version
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement