Search Unity

I made a mp4 video streaming solution using FFMPEG

Discussion in 'Audio & Video' started by matija-mandurov, Jan 8, 2020.

  1. matija-mandurov

    matija-mandurov

    Joined:
    Mar 4, 2016
    Posts:
    1
    As mentioned many times by people on this forums Unity is lacking a real time video streaming solution.

    All the solutions I found so far basically use either JPEG or PNG to send single frames which is unacceptable from a performance and bandwidth perspective.

    So I made my own.

    I took this and modified it be a two way stream between two instances of Unity.

    https://github.com/keijiro/FFmpegOut

    This works in Editor and Standalone, but I have encountered some major issues trying to make it work on Android and this is where I need your help.

    If anyone knows a project that successfully uses FFMPEG on Android and works in Unity I would be delighted. I can confirm neither of the following work:

    https://github.com/tanersener/mobile-ffmpeg

    https://github.com/bravobit/FFmpeg-Android

    While I cannot reveal the exact code and how I did it, I am more than happy to assist anyone and guide them in the right direction, and if I get a working version of FFMPEG on Android, I can package this into an Asset and when can all finally have video streaming in Unity.
     
  2. mite51

    mite51

    Joined:
    Jun 25, 2015
    Posts:
    25
    Did you have any luck with this?
     
  3. diogomiguelmm

    diogomiguelmm

    Joined:
    Sep 9, 2020
    Posts:
    6
  4. jiraphatK

    jiraphatK

    Joined:
    Sep 29, 2018
    Posts:
    300
    ffmpeg mobile works for me in android build sofar. But It's only an experimental projects for me. I'll upload the project to github when I have time
     
  5. arora22rohit

    arora22rohit

    Joined:
    Sep 4, 2018
    Posts:
    1
    Any update on this?