# Audio missing in Captured Video

**URL:** <https://forum.8thwall.com/t/audio-missing-in-captured-video/2040>\
**Category:** Technical Support\
**Created:** [July 11, 2024, 11:26am UTC](https://forum.8thwall.com/t/audio-missing-in-captured-video/2040 "2024-07-11T11:26:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Equanimous\_Technolog](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Equanimous\_Technolog](https://forum.8thwall.com/u/Equanimous_Technolog)\
**Post date:** [July 11, 2024, 11:26am UTC](https://forum.8thwall.com/t/audio-missing-in-captured-video/2040/1 "2024-07-11T11:26:25Z")

</div>

Hy, I have one video which is imported in a-assets and used further in a-entity and i want to capture the audio of the video but currently it captures only video of scene not audio. I have added include-scene-audio to true in capture config but not works and also i have tried request-mix to auto but it captures only mic audio not scene. can anyone help.

```auto
<video
      id="selfieVid"
      src="assets/Vid/SelfieVid.mp4"
      playsinline
      webkit-playsinline
      loop="true"></video>

```

I have this video tag in `<a-assets>`.

---

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)\
**Post date:** [July 11, 2024, 6:18pm UTC](https://forum.8thwall.com/t/audio-missing-in-captured-video/2040/2 "2024-07-11T18:18:19Z")

</div>

Hi @Equanimous_Technolog ,

Capturing audio in the scene can be tricky, especially when trying to capture audio from a video texture.

We have [a sample project](https://www.8thwall.com/playground/aframe-audio-and-media-recorder) demonstrating how to include scene audio in A-Frame with MediaRecorder, which is done with [xrextras-capture-config](https://github.com/8thwall/web/tree/master/xrextras/src/aframe#xrextras-capture-config) and `<a-entity sound>`.

Unfortunately, a video texture is not considered “scene audio”. As a workaround, I suggest following the same approach as the sample project and manually playing the sound via its own entity and muting the video track itself.

For example:

```auto
<!-- html -->
<a-scene>
  <a-assets>
    <video id="video" src="./assets/video-sound.mp4" muted></video>
    <audio id="audio" src="./assets/video-sound.mp4"></audio>
  </a-assets>

  <xrextras-capture-config request-mic="manual" ...></xrextras-capture-config>

  <a-camera position="0 1 2">
    <a-entity sound="src: #audio"></a-entity>
  </a-camera>
  
  <a-box material="src: #video"></a-box>
  
</a-scene>

```

```auto
// js
const playVideo = () => {
  const video = document.getElementById('video')
  const audio = document.querySelector('[sound]')
  audio.components.sound.playSound()
  video.play()
}
window.addEventListener('click', playVideo)

```

Let us know how things go!

---

<div class="post-metadata">

**Author:** ![Equanimous\_Technolog](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Equanimous\_Technolog](https://forum.8thwall.com/u/Equanimous_Technolog)\
**Post date:** [July 12, 2024, 10:09am UTC](https://forum.8thwall.com/t/audio-missing-in-captured-video/2040/3 "2024-07-12T10:09:11Z")

</div>

Thanks for your reply and need one another help also. I also wanted to capture the audio of the evercoast video (.ecm file) which i have added already using aframe api of the [evercoast](https://support.evercoast.com/docs/a-frame). Can you help me with that also.  
Here is the code i have added in the a-scene

```auto
 <a-entity
        id="ecsEntity"
        evercoast-asset="src: https://streaming.evercoast.com/Evercoast/UKRAINE.PZ.ec.take.002/2676/UKRAINE.PZ.ec.take.002.v2.ecm;"
        evercoast-asset-fade=""
        evercoast-text-track="offset: 170"
        position="0 0 0"
        scale="0.5 0.5 0.5"
        rotation="0 80 0"
        visible="false">
      </a-entity>

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)\
**Post date:** [September 10, 2024, 7:06pm UTC](https://forum.8thwall.com/t/audio-missing-in-captured-video/2040/4 "2024-09-10T19:06:15Z")

</div>

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.
