从 PHP 中的 m4a 文件中检索 ID3 信息
我编写了一些 PHP 代码来从 mp3 文件中提取 ID3 标签。下一步是对 .m4a 文件执行相同的操作。根据我所做的研究,大多数 m4a 文件似乎不使用 ID3,而是使用“原子”的格式。
有没有可以解析这些“原子”的 PHP 库?我见过一些 C#/C++ 的,但没能找到任何 PHP 的。任何其他指南或文档也很棒。
I've written some PHP code to pull out ID3 tags from mp3 files. The next step is to do the same with .m4a files. From the research I've done it looks like most m4a files do not use ID3 but instead a format using 'atoms'.
Are there any PHP libraries out there that can parse out these 'atoms'? I've seen some C#/C++ ones but haven't been able to find any PHP ones. Any other guides or documentation would be great as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该项目处理许多音频文件格式,包括 AAC(M4A 是 AAC):
http://getid3.sourceforge.net/
希望这可以帮助
This project handles many audio files formats including AAC (M4A is AAC) :
http://getid3.sourceforge.net/
hope this can help
不久前我遇到了类似的问题并四处查看。最简单和最有效的方法(在我看来)是使用 exec 命令来获取额外的媒体信息。
我的代码基于 longtailvideo http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/9448/how-to-get-video-duration-with-ffmpeg-and- php
这个脚本可以处理任何 ffmpeg 准备处理的事情(很多!)我知道上面的例子说明了一个视频文件,但是它也可以很好地处理音频
I came across a similar issue not too long ago and had a look around. The simplest and most effective method (in my opinion) is to use the exec command in order to extra media information.
I based my code on a forum post over at longtailvideo http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/9448/how-to-get-video-duration-with-ffmpeg-and-php
This script can handle anything ffmpeg is prepared to handle (which is a lot!) I know the above example illustrates a video file but, it will work fine with audio also