使用mp3tagiconv解决MP3乱码问题
来源:互联网 发布:xilinx ise软件 编辑:程序博客网 时间:2024/05/01 20:18
引子此项目主页:https://code.google.com/p/mp3tagiconv/
mp3tagiconv是一款可用于解决MP3乱码问题的软件。它可以自动探测MP3标签的编码,并以合理的方式重新写入,经过其处理的编码可被Linux、Windows(包括Windows Media Player)和各种移动设备正确识别。(原理见这里):
mp3tagconv is a Mutagen based script intending to convert the encoding of tags of MP3 files, so that it can be recognized correctly by music players in Linux, Windows, etc.
The program is now only tested in Simplified Chinese, we will be happy if information about other languages is provided.
If you want to know more about how it works, please refer to An explanation in Chinese.
Usage
The script depends on mutagen to run. Please install it from the repository of your distribution (in Ubuntu: python-mutagen).
For mp3 files with Chinese tags(we first try gbk, then utf8), ID3v2 tags which are already encoded in unicode will not be affected:
mp3tagiconv a.mp3
You can use -e to specify the encoding used if the tag is stored by latin-1. The program will guess your encoding according to your list:
mp3tagiconv -e gbk,utf8 b.mp3If you don't want to confirm for every file(not recommended):
mp3tagiconv --do-update *.mp3
Details
Actually, the program does the following things:
- Read tags of a MP3 file from its ID3v2 and ID3v1. ID3v1 is used to supplement the result of ID3v2.
- Guess the encoding of the tags.
- Decode the tags, then:
- Write directly to ID3v2 tag of MP3 file via mutagen.
- Encode the tags with local encoding(eg. gbk in Chinese) and write it to ID3v1 tag of the file.
- The modified tag now can be recognized by most of the applications, eg. rthymbox, totem, juk, Windows Media Player, etc.
- 使用mp3tagiconv解决MP3乱码问题
- 千千静听解决mp3乱码问题
- 解决ubuntu下mp3乱码问题
- ubuntu 解决 mp3 乱码
- archlinux mp3乱码解决
- 对 mp3 乱码问题的分析和解决(ZZ)
- Linux下mp3标签乱码问题的分析和解决
- 解决linux下MP3乱码
- 使用Filter解决乱码问题
- ubuntu-配置(解决mp3乱码)
- Ubuntu下解决mp3文件名乱码
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- Linux下将CD音乐提取为mp3的方法和中文乱码问题的解决
- 嵌入式Linux中的读写方式研究
- 处理概括关系之二 :Pull Up Method(函数上移)
- Android 异步获取图片并缓存到本地
- 关于HTML5令人激动的10项预测
- UML类图关系(泛化 、继承、实现、依赖、关联、聚合、组合)
- 使用mp3tagiconv解决MP3乱码问题
- OpenCV学习笔记(7)—轮廓
- Installing OEM for second instance
- 什么是对分带宽/对半带宽 (bisection bandwidth)
- C++类构造函数初始化列表
- ubuntu设置静态IP
- Socket send函数和recv函数详解
- HashMap 变为线程安全的方法
- Android 使用AudioRecord录音相关和音频文件的封装