我正在尝试从跟踪器音乐文件中提取元数据。唯一能够提供至少一些东西的工具
$ 文件 aa_arofl.xm aa_arofl.xm:Fasttracker II模块声音数据标题:“Archons of light \032FastTracker v2.00 \004\001\024\001”
可见光通信允许我在 GUI 中查看元数据,但找不到有关如何将其放入命令行输出的信息。有任何想法吗?
答案1
IIRC VLC 使用TagLib 音频元数据库提供来自 的元数据Fasttracker II Extended Modules
。
提供源代码,并提供有关如何使用该库的示例。您可能想看一下examples/tagreader.cpp
,它可以满足您的需求:
$ ./a.out ../../test/aa_arofl.xm
******************** "../../test/aa_arofl.xm" ********************
-- TAG (basic) --
title - "Archons of light "
artist - ""
album - ""
year - "0"
comment - "Greetings thou music-
lover !
Lo and behold!
A new production from
(c) ArchAngel is now
removing some of thy
blessed harddiskspace
in hope of bringing
some joy into this
cruel world...
My humble greetings
this time, goes to:
...
答案2
ffmpeg 可以做到。
ffprobe dualtrax-the_travel_to_orion.xm
给出:
...
Input #0, libmodplug, from 'dualtrax-the_travel_to_orion.xm':
Metadata:
name : the travel to orion!
instrument : dualtrax/cro/orion/nmg
: and again a nice chipt
: une for orion-keygens!
: hope you like it :]
: dedicated to neoman
: march2001
sample : the travel to orion!
: Drum
extra info : 11 patterns, 8 channels, 6/32 instruments, 2/9 samples
...
您可以将元数据导出到 field=value 格式的文件中:
ffmpeg -i dualtrax-the_travel_to_orion.xm -f ffmetadata metadata.txt && cat metadata.txt
给出:
;FFMETADATA1
name=the travel to orion!
instrument=dualtrax/cro/orion/nmg\
and again a nice chipt\
une for orion-keygens!\
hope you like it :]\
dedicated to neoman\
march2001
sample=the travel to orion!\
Drum
extra info=11 patterns, 8 channels, 6/32 instruments, 2/9 samples
encoder=Lavf57.71.100