如何从mp3中读取元数据? [英] How to read metadata from mp3?

查看:346
本文介绍了如何从mp3中读取元数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从mp3文件中读取标签.我想知道是否有人对如何执行此操作有任何建议?我不想使用第三方图书馆为我处理阅读/整理活动.这样做的目的只是让我弄清楚如何读取编码的数据?我知道主要有2种不同的格式,即ID3v1和ID3v2.确实,我的问题只是能够以我可以处理的格式获取信息.对于实际存储所需数据并在获取信息后进行解析,我有一些想法.我主要只需要一些有关如何以纯文本格式收集元数据的指导.

I am trying to read the tags from mp3 files. I was wondering if anyone had any suggestions as to how to do this? I don't want to use a 3rd party library to handle the reading/organizing for me. The purpose of this is just for me to figure out how to read the encoded data? I know that there are primarily 2 different formats, ID3v1 and ID3v2. Really, my issue is just being able to obtain the information in a format that I can handle it. I have a couple ideas for actually storing the data I need and parsing the information once I get it. I mainly just need some guidance for how to collect the metadata in plain text.

推荐答案

使用二进制阅读器对象. http://msdn.microsoft.com/en-us/library /system.io.binaryreader.aspx

Use binary reader object. http://msdn.microsoft.com/en-us/library/system.io.binaryreader.aspx

常见lisp(id3解析器)示例: http://www .gigamonkeys.com/book/practical-an-id3-parser.html

example of common lisp (id3 parser): http://www.gigamonkeys.com/book/practical-an-id3-parser.html

这篇关于如何从mp3中读取元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆