Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Video Playing a live video in Unity on Win and Linux

Discussion in 'Audio & Video' started by Moonbeam49, Oct 4, 2019.

  1. Moonbeam49

    Moonbeam49

    Joined:
    Apr 9, 2017
    Posts:
    6
    Hi, i'm looking for a solution to play live streamed video with sound in unity. I use vlc webcam stream to http as a source.

    Options I've tried:
    1) Reading the stream with Video Player component directly. Best result I got, was black screen when I streamed an .asf file. Unity recognized it as video, but wasn't able to play it properly. With other video containers unity either would not recognize it, or will throw an error saying that a video has no duration.

    2)Writing my own server and clent to stream signal from the webcam. Managed to play the video with a number of solvable issues, but was not able to transfer audio signal, plus the whole idea feels like a ton of unnecessary work.

    3)https://assetstore.unity.com/packages/tools/video/vive-media-decoder-63938 works great, but only on windows. Doesn't solve the linux issue.

    Have anybody solved the same problem? Maybe someone managed to find proper stream settings in vlc, for unity in-built video player to properly understand the signal?

    Thank you in advance for your time.
     
    DrRek likes this.
  2. DrRek

    DrRek

    Joined:
    Apr 9, 2016
    Posts:
    7
    Did you found a practical solution?
     
  3. Moonbeam49

    Moonbeam49

    Joined:
    Apr 9, 2017
    Posts:
    6
    Unfortunatlely, no.