硬汉嵌入式论坛

 找回密码
 立即注册
查看: 4052|回复: 4
收起左侧

[音频视频处理] MP3文件格式学习

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
发表于 2016-2-2 15:05:05 | 显示全部楼层 |阅读模式
参考资料:
1. https://zh.wikipedia.org/wiki/MP3
2. http://id3.org/
3. 开源的C语言的MP3标签解析https://github.com/larsbs/id3v2lib
4. MP3音频格式:http://www.datavoyage.com/mpgscript/mpeghdr.htm
   (根据这个网站的说明,MP3的规格书貌似要花点钱才可以,网上搜是搜不到的)
5. https://en.wikipedia.org/wiki/MP3
6. http://blog.csdn.net/sunshine1314/article/details/2514322/
7. http://www.cnblogs.com/gansc23/archive/2010/11/27/1889537.html(Xing帧,VBR帧格式)
8. http://www.mp3-tech.org/
9. http://www.360doc.com/content/11/1124/20/4132862_167116186.shtml
==========================================
mp3文件大体分3个部分:ID3V2,   Frame ,ID3V1
ID3V1 :
按照下表整理后的格式:

typedef __packed struct
{
    uint8_t ucTAG[3];                   /* 固定T A G三个字母 */
    uint8_t ucSongTitle[30];     /* 标题                      */
    uint8_t ucAlbum[30];           /* 专辑              */
    uint8_t ucArtist[30];          /* 作者              */
    uint8_t ucYear[4];              /* 出品年底        */
    uint8_t ucComment[30];   /* 备注              */
    uint8_t ucGenre;             /* 流派               */
}ID3V1_T;


1.png
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
 楼主| 发表于 2016-2-2 17:07:21 | 显示全部楼层
ID3V2的版本较多:
1.png
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
 楼主| 发表于 2016-2-2 18:04:17 | 显示全部楼层
ID3V2的标签头说明:
http://id3.org/id3v2-00
===============================
1.png

2.png
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
 楼主| 发表于 2016-2-3 15:16:59 | 显示全部楼层
2.png
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
 楼主| 发表于 2016-2-5 12:07:24 | 显示全部楼层
mp3_theory.pdf (215 KB, 下载次数: 112)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-7 17:42 , Processed in 0.258563 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表