Modrinth · Minecraft mod
MediaPlayer
A decode library for Minecraft based on ffmpeg.
Quick answer
Which MediaPlayer release should I use?
MediaPlayer 1.0.1 targets 1.21.1 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is MediaPlayer required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does MediaPlayer 1.0.1 need?
1.0.1. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add MediaPlayer without breaking your instance.
Built for MediaPlayer 1.0.1. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.1. It targets 1.21.1 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.1. It opens that exact file at the source.
About this project
What does MediaPlayer add?
MediaPlayer
A decode library for Minecraft based on ffmpeg.
Features:
- Video and audio decoder
- Hardware acceleration
- Supports many media formats
- Only Windows x64 platform is supported
How to use:
For user
Use the commands
/summon mediaplayer:video
/mediaplayer video
to play video.
Or use
/mediaplayer audio
to play audio.
Use
/mediaplayer clear
stop all video and audio.
For developer
Create decoder
var file = new File("<video file path>");
var decoder = VideoDecoder.create(file);
Decode and render frame
decoder.fetch();
bufferSource.getBuffer(VideoRenderType.create(decoder.frame));
/* Rendering code */
Play companion audio from video
Minecraft.getInstance().getSoundManager().play(new AudioInstance(decoder.audio.decode(false), null));
Play independent audio
Minecraft.getInstance().getSoundManager().play(new AudioInstance(new AudioDecoder.decode(false), null));
Project description from Modrinth.
Pick your setup
MediaPlayer by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21
2 loader builds1.20.1
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MediaPlayer versions and loaders
1.0.1
MediaPlayer-1.0.1.jar
18 May 2025
1.0.1
MediaPlayer-1.0.1.jar
18 May 2025
1.0.0
MediaPlayer-1.0.0.jar
17 May 2025
1.0.0
MediaPlayer-1.0.0.jar
17 May 2025
1.0.0
MediaPlayer-1.0.0-neoforge.jar
14 Jul 2024
1.0.0
MediaPlayer-1.0.0-fabric.jar
14 Jul 2024
Looking for an older file? The official Modrinth project page is in Resources.