I have all my images in one folder and currently use ffmpeg to join them to create an mp4.
It works fine, but I am worried about potential licencing issues as I would be distributing the encoder. There is also the issue of the ffmpeg binaries being pretty huge, making my app 250mb inspite of having a rather low amount of assets (<1mb images, <20mb music). This is not cool for mobile.
Is there an asset or some built in functionality to export video reliably using the encoders installed on the respective systems?
Hi!
Indeed, depending on ffmpeg for an app you’re distributing is a slippery slope depending on the codecs you use and other possibly patented technologies (I’m not a lawyer, so don’t just take my word for this). Unity has the MediaEncoder API that lets you do just what you are describing, but for now it’s only available on the editor side. There is no reason that it would not be made available in runtime eventually - especially for desktops, which already works in-editor - other than development time constraints.
I believe AVPro Movie Capture does what you want, but the platform coverage is incomplete (e.g. in the mobile area, it supports iOS but not Android).
Hope this is somewhat helpful,
Dominique Leroux
A/V developer at Unity.
Thanks for the reply Dominique. The MediaEncoder would be fantastic, but alas. I will check out AVPro Movie Capture or have to write my own stuff…