用php设置mp3的专辑艺术

用php设置mp3的专辑艺术

本文介绍了用php设置mp3的专辑艺术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在寻找使用PHP设置mp3专辑艺术的最佳方法.

I am looking for the best or any way to set the Album Art of mp3s using PHP.

建议?

推荐答案

相册艺术是由于ID3v2规范而被标识为附加图片"的数据帧,并且getID3()现在只是使用纯PHP在ID3v2中写入所有可能的数据帧的一种方法.

Album art is a data frame identified as "Attached picture" due ID3v2 specification, andgetID3() now is only one way to write all possible data frames in ID3v2 with pure PHP.

查看此来源: http://getid3.sourceforge.net/source/write.id3v2.phps

在源代码中搜索此文本:

Search for this text in the source:

// 4.14  APIC Attached picture

有一段代码负责写专辑封面.

there's a piece of code responsible for writing album art.

另一种似乎不如纯PHP慢的方法是使用某些外部应用程序,该应用程序将由PHP脚本启动.如果您的服务旨在在高负载下工作,那么二进制编译工具将是一个更好的解决方案.

Another way, that seems to be not as slow as pure PHP, is to use some external application, that will be launched by PHP script. If your service designed to work under a high load, binary compiled tool will be a better solution.

这篇关于用php设置mp3的专辑艺术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 00:47