Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Video Looking for an encoder to use on Android for real time streaming

Discussion in 'Audio & Video' started by KayH, Aug 8, 2023.

  1. KayH

    KayH

    Joined:
    Jan 6, 2017
    Posts:
    107
    Must encode into memory. The MediaEncoder that comes with Unity would serve my needs but all the constructors require a path so it apparently directly saves to a drive. I neither need nor want that and of course I need the developing video file in memory so I can send it frame by frame.
     
  2. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    And MediaEncoder is, unfortunately, Editor only. Having better access to low-level encoder and live streaming is something we want to work on, but it is still under consideration. Be sure to go vote on the roadmap and leave any other ideas there. It helps us to prioritize future features https://unity.com/roadmap/unity-platform/audio-video.

    Until then, you have multiple choices. The asset store has some live-streaming solutions like AVPro. Otherwise, GStreamer is an open-source multimedia framework, and I think I saw some integration with Unity somewhere. It uses an LGPL licence which comes with its legal issue, so beware.
     
  3. KayH

    KayH

    Joined:
    Jan 6, 2017
    Posts:
    107
    Thanks for the suggestions. I cast a vote for runtime encoding (and runtime decoding). AVPro has a trial version so I will check that.