# audioEngine Analyser using a \<Video\> element's audio track

**URL:** <https://forum.babylonjs.com/t/audioengine-analyser-using-a-video-elements-audio-track/3345>\
**Category:** Questions\
**Created:** [May 20, 2019, 5:07am UTC](https://forum.babylonjs.com/t/audioengine-analyser-using-a-video-elements-audio-track/3345 "2019-05-20T05:07:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgmakes](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jgmakes/32/2415_2.png) [@jgmakes](https://forum.babylonjs.com/u/jgmakes)\
**Post date:** [May 20, 2019, 5:07am UTC](https://forum.babylonjs.com/t/audioengine-analyser-using-a-video-elements-audio-track/3345/1 "2019-05-20T05:07:41Z")

</div>

I’m using a element to texture an element of my scene, and I want to pass it’s audio data along to an audioEngine analyser so that I can have meshes react dynamically. I’m hoping that the two will be synced up as well.

I found some examples of using the mic from browser’s webcam:  
[https://playground.babylonjs.com/#MB5S2C#6](https://playground.babylonjs.com/#MB5S2C#6)  
But nothing for video files.

If need be, I can have a separate mp3 for the soundtrack and silent mp4 for the texture, but that’s going to be a lot of preparation or preprocessing files, and I’d love to have a system that just handles one video format. Any ideas?

Thanks so much 🙂

---

<div class="post-metadata">

**Author:** ![Wingnut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/wingnut/32/53_2.png) [@Wingnut](https://forum.babylonjs.com/u/Wingnut)\
**Post date:** [May 22, 2019, 2:20pm UTC](https://forum.babylonjs.com/t/audioengine-analyser-using-a-video-elements-audio-track/3345/2 "2019-05-22T14:20:53Z")

</div>

Hi Jonah… welcome to the BJS forum! Good question, too. I don’t have any definitive solutions… but… did you read this:

> <https://stackoverflow.com/questions/44300703/get-mediastreamtrackaudio-from-video>

shrug. It might be worth SOMETHING. Our friend [David Rousset](https://www.davrous.com/) WAS our web-audio expert, but I haven’t seen him around, lately. Stay tuned for more/better comments.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 22, 2019, 3:34pm UTC](https://forum.babylonjs.com/t/audioengine-analyser-using-a-video-elements-audio-track/3345/3 "2019-05-22T15:34:24Z")

</div>

[https://playground.babylonjs.com/#MB5S2C#8](https://playground.babylonjs.com/#MB5S2C#8)

This should do to extract and reuse the track as an input.

Click the scene to start .
