Support us on Patreon to keep GamingOnLinux alive. This ensures we have no timed articles and no paywalls. Just good, fresh content! Alternatively, you can donate through Paypal, Flattr and Liberapay!
Prefered format for videos in Unity
Eike commented on 12 May 2019 at 5:58 pm UTC

Hello,

I'm currently testing a point and click created with Unity which shall support Linux. The first problem was that the animated intro didn't display (and nothing else instead either). It seems it's using H.264 packed in an MP4 container. But according to the Unity page I found, "H.264 (typically in a .mp4, .m4v, or .mov format) is the optimal supported video codec because it offers the best compatibility across platforms." Which seemed to be what the developers were doing!?

So... What's the preferred way to pack (high quality) video in Unity?

Ciao,
Eike

tuubi commented on 12 May 2019 at 7:07 pm UTC

EikeSo... What's the preferred way to pack (high quality) video in Unity?
The table on the Unity manual page you linked to suggests that only .ogv, .vp8 and .webm videos are supported on all three platforms, including Linux. Of these three container formats, your best bet for quality is probably opus audio and vp9 video in a webm container. Let me know if you need help with encoding, but everything you need should be available in your distro repositories.

Eike commented on 14 May 2019 at 1:06 pm UTC

tuubiThe table on the Unity manual page you linked to suggests that only .ogv, .vp8 and .webm videos are supported on all three platforms, including Linux. Of these three container formats, your best bet for quality is probably opus audio and vp9 video in a webm container. Let me know if you need help with encoding, but everything you need should be available in your distro repositories.

VP8, not VP9, right?
Thanks for the tips!

tuubi commented on 14 May 2019 at 1:22 pm UTC

No, I meant the VP9 video codec, not the older VP8.

Eike commented on 14 May 2019 at 2:12 pm UTC

I'm asking because Unity explicitly has VP8 in its compatibility list (and unfortunately doesn't mention VP9 at all).

tuubi commented on 14 May 2019 at 3:04 pm UTC

EikeI'm asking because Unity explicitly has VP8 in its compatibility list (and unfortunately doesn't mention VP9 at all).
Are you talking about the formats Unity can transcode a video clip into? If you are, you should be able to encode the video externally, and disable transcoding in Unity. As far as I can see, Unity can only encode vp8 or h264 video, while they list containers in their platform compatibility table that can't hold either of those formats.

In any case, VP9 offers better image quality if Unity can play it back on all target platforms, but VP8 is not awful either.

(I assumed my original answer was correct based on the fact that @mdiluz "liked" it, and he works for Unity these days.)

You need to Register and Login to comment, submit articles and more.


Or login with...

Livestreams & Videos
Community Livestreams
  • Tac Tics: „SteamWorld Heist“
  • Date:
See more!
Popular this week
View by Category
Contact
Latest Comments
Latest Forum Posts