Search Unity

Converting Texture2D to Video and GIF

Discussion in 'Scripting' started by OthmanT, Mar 8, 2018.

  1. OthmanT

    OthmanT

    Joined:
    Nov 1, 2017
    Posts:
    4
    Hello everyone, it's my first post on the forum, so I'm not sure I am on the right topic.

    So here my problem, I'm on a mobile project, and I have an array of Texture2D that I need to convert to a video MP4 and a GIF for sharing purpose.

    I was wondering what is the best way to do it, and if there are any asset on the store or Github that would help ?

    Thanks !
     
  2. OthmanT

    OthmanT

    Joined:
    Nov 1, 2017
    Posts:
    4
    Anyone ? (bump)
     
  3. BlackPete

    BlackPete

    Joined:
    Nov 16, 2016
    Posts:
    970
    GIF as in an animated gif? If so, Unity doesn't support that. You'll have to build it yourself using a third party tool or script.

    For converting a bunch of images to MP4, I use ffmpeg, but that's also a third party tool.