简体   繁体   English

如何访问在处理中播放的电影的音频输出?

[英]How can I access the audio output coming from a movie playing in processing?

I am working on a film analysis program, which retrieves data in realtime from a movie, that is playing in the same sketch. 我正在开发一个电影分析程序,该程序可以从正在同一草图中播放的电影中实时检索数据。 For analysing the sound I tried the minim library, but I can't figure out, how to get the audio signal from the movie. 为了分析声音,我尝试了最小库,但是我不知道如何从电影中获取音频信号。 All I could do was accessing an audio file, I was loading into the sketch manually, or the line-in through the mic. 我所能做的就是访问音频文件,或者手动将其加载到草图中,或者通过麦克风插入。

Thanks a lot! 非常感谢!

Although GStreamer (used by the processing-video library) has access to audio , the processing-video library itself doesn't expose that at the moment. 尽管GStreamer(由处理视频库使用)可以访问音频 ,但处理视频库本身目前无法公开。

You will need to use workarounds at the moment: 您现在需要使用变通方法:

  1. Extract audio from your movie and load straight into minim. 从电影中提取音频并直接加载到最小。 (you can trigger audio playback at the same time as movie playback if you need to) (如果需要,您可以在电影播放的同时触发音频播放)
  2. or use a tool to use system audio output as an input (minim get line in). 或使用工具将系统音频输出用作输入(最小输入行)。 On OSX you can use Soundflower . 在OSX上,您可以使用Soundflower Another option is JACK and it's patch interface. 另一个选择是JACK及其补丁接口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 处理中的音频播放无法正常运行 - Audio playing in Processing not working how I expected Android:如何防止MediaPlayer播放重叠的音频? - Android: How can I prevent MediaPlayer from playing overlapping audio? 如何监视设备的音频输出,以判断声音是否从扬声器/耳机插孔中发出? - How can I monitor the device's audio output to be able to tell if sound is coming out of the speakers/headphone jack? 擦洗音频时如何听到声音播放<audio>标签? - How can I hear sound playing while scrubbing the audio from an <audio> tag? 从页面中删除HTML5音频或视频时,如何防止播放? - How can I prevent HTML5 audio or video from playing when removed from the page? 如何在处理中获取当前播放的音频作为音频输入? - How to get the currently playing audio as audio input in Processing? 播放来自NSStream的Raw pcm音频数据 - Playing Raw pcm audio data coming from NSStream 当用户将手机切换为静音时,如何防止我的iOS VoIP应用播放音频? - How can I prevent my iOS VoIP app from playing audio when the user switches their phone to silent? 如何防止同时播放 js 音频相互干扰 - How can I prevent simultaneously playing js audio from interfering with one another Java如何从电影中提取音频流 - Java how to extract audio stream from movie
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM