Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Audio VideoPlayer and loading Ambisonics Soundfiles from disk/url

Discussion in 'Audio & Video' started by pojoih, Apr 13, 2018.

  1. pojoih

    pojoih

    Joined:
    Mar 30, 2013
    Posts:
    157
    I'm loading my videos from the filesystem and they've got ambisonics enabled audio tracks but they do not play properly in the audiosource as there is not audioclip active on the source. Seems like the VideoPlayer does play the audioclip of a videofile on an AudioSource a little different.

    I also cannot load extracted Ambisonics Wavefiles at runtime.
    Whats the correct way to play ambisonics AudioClips or Videos with Ambisonic audiotracks which aren't embedded in the app?
     
  2. omniaudio

    omniaudio

    Joined:
    Mar 27, 2018
    Posts:
    4
    I'm wondering about this, as well. Seems like ambisonic AudioClips have to be specifically marked as ambisonic in the inspector (or perhaps possibly via script at runtime? haven't looked into that...). But when using the VideoPlayer to target an AudioSource with it's embedded audio, are ambisonics not supported (since there's no AudioClip created in this case)?
     
    pojoih likes this.
  3. pojoih

    pojoih

    Joined:
    Mar 30, 2013
    Posts:
    157
    had to embed extracted audio for now and load video from URL. Very annoying and not doable if you really stream from another source, not just from filesystem.
     
  4. omniaudio

    omniaudio

    Joined:
    Mar 27, 2018
    Posts:
    4
    Ah ok, I think I was misunderstanding. So, when using the VideoPlayer to target AudioSources with specific tracks embedded in your mp4, you never actually create AudioClips, right? In that case, I can't figure out where/how it's possible to "enable" ambisonics for a particular track since that feature seems to be tied to the use of an AudioClip.

    Basically, is it possible to load/play ambisonics at runtime via the VideoPlayer (e.g. using SetTargetAudioSource etc)?
     
  5. AcousticsLabParma

    AcousticsLabParma

    Joined:
    Jun 5, 2018
    Posts:
    6
    Hi,
    having the same problem: I am able to load external 360° videos and I need to load external Ambisonic tracks without embedding.
    Did you find a solution ?

    Thanks
     
  6. omniaudio

    omniaudio

    Joined:
    Mar 27, 2018
    Posts:
    4
    Unfortunately no I didn't. That's not to say there isn't a solution, but I ended up going a different direction..
     
  7. pojoih

    pojoih

    Joined:
    Mar 30, 2013
    Posts:
    157