Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.56 KB

File metadata and controls

28 lines (18 loc) · 1.56 KB

FFmpeg.Unity

A Videoplayer for Unity, with an example using YoutubeDLSharp.

What is it?

FFmpeg.Unity implements a working Videoplayer based on ffmpeg functionality.

How do I install it?

  1. You can install FFmpeg.Unity through the Unity Package Manager directly from git:
Window > Package Management > Package Manager.
Click the "+" button, select "Install package from git URL..."
Paste "https://github.com/VirtualBrightPlayz/FFmpeg.Unity.git?path=/Packages/FFmpeg.Unity#master"
  1. By installing the package using the method above, you will need to copy over the Scenes/ and Scripts/ folders.

  2. You will need the "latest" FFmpeg 6.1 Shared (LGPL):
    Windows Linux

  3. Windows: Only copy the .dll files found within the bin directory in the downloaded archive to a Assets/StreamingAssets/ffmpeg directory in your project.

  4. Linux: Only copy the .so files found within the lib directory in the downloaded archive to a Assets/StreamingAssets/ffmpeg. If using yt-dlp, make sure to set executable bits on Assets/StreamingAssets/yt-dlp e.g. chmod u+x yt-dlp

  5. You can then open the Scenes/FFplay example scene to test the Videoplayer with a working YouTube link in the "Content Url" field of the "FF Play Player" script component during Unity play mode.