Skip to content

Videos stripped from build via gameci/unity-build — "Can't create LinuxVideoMedia, format 0 not supported" #843

Description

@gheorghiuradu

Summary

A VideoClip in Assets/Resources/Video/ plays correctly in the Unity editor, but
is silently missing from builds produced by the game-ci/unity-builder action.
No runtime errors — the video simply never plays.

Environment

  • Action: game-ci/unity-builder@v5
  • Unity: 6000.4.6f1
  • Target platform: StandaloneWindows64, StandaloneLinux, StandaloneOSX

Reproduction

  1. Place an .mp4 in Assets/Resources/Video/
  2. Load and play it at runtime via Resources.Load<VideoClip>(), or via PlayOnAwake in the editor
  3. Works in the editor; produces no video in the CI build

Relevant build log

Start importing Assets/Resources/Video/Tutorial.mp4 using Guid() (VideoClipImporter)
Error: Can't create LinuxVideoMedia, format 0 not supported

Image

What I ruled out

  • Disabling Transcode in the VideoClip import settings — no change
  • Re-encoding the source with several different codecs — no change
  • No errors at runtime, so nothing surfaced until I read the build logs

Question

Is this expected behaviour when importing video assets inside the Linux-based
builder image, or is it a missing codec dependency in the container? Either way,
it might be worth a note in the docs; the failure is silent and cost me two days.

I found a workaround and I'll post it as an answer below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions