查找视频文件中的音频峰值
我有一堆想要处理的视频文件。我想编写一个程序,可以找到每个文件中的音频峰值并返回这些峰值发生的时间。
我已经在不同的语言中寻找了很多不同的 API,但无法让它们中的任何一个工作。我偏爱 php 和 java,所以如果有人知道这些语言中任何好的音频处理库那就太好了!但实际上我不太关心语言。我需要在 cron 上运行这个程序。
另外,是否可以在脚本中使用对 ffmpeg 的系统调用来完成此任务?提前致谢。
I have a bunch of video files that I want to process. I want to write a program that can find the audio peaks in each file and return the times where those peaks occurred.
I've looked for a lot of different APIs in different languages but couldn't get any of them to work. I am partial to php and java, so if anyone knows any good audio processing libraries in those languages that would be great! But really I don't care too much about the language. I will need to run this program on a cron.
Also, is it possible to use system calls to ffmpeg from within a script to accomplish this? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然我只用它来直接处理音频文件,但 python 包装器围绕 theechonest 的音频分析服务可以从各种视频文件中提取音频。它使用 ffmpegs 共享库来执行此操作,尽管我发现通过 python 使用此包装器比通过命令行更容易。
api 中特别令人感兴趣的是 echonest.video,引用文档:
我会添加其他几个有用的网址,但显然我只能添加一个,因为我没有声誉......
无论如何,希望这是一个有用的线索。
While I've only used this to work directly with audio files, the python wrapper around theechonest's audio analysis service can slurp in the audio from various video files. It uses ffmpegs shared libs to do this, though I find this wrapper much easier to work with via python then the command line.
Of particular interest within the api is echonest.video which is, to quote the docs:
I'd add a couple other helpful urls but apparently I can only add one since I don't have a reputation...
anyway, hopefully that's a helpful lead.