Studio Menu
Home/Docs/Trailer and music

Trailer and music

Open your modpack with a video and give its menus their own soundtrack.

The trailer

A video played right after Minecraft's loading screen, before the title screen (and before "What's new"). It is off by default; everything about it is up to the modpack creator.

Files

Put them in config/studiomenu/trailer/, or drop an .mp4 onto the editor:

  • trailer.mp4: H.264 video, decoded in pure Java on several CPU cores at once. On a 12-core PC that is about 80–95 fps at 720p and 50 fps at 1080p, so 720p and 1080p at 30 fps play smoothly, and 720p at 60 fps too. Bigger videos are scaled down on the fly.
  • Or a folder of numbered pictures (frames/frame_0001.png, …) played at folderFps.
  • trailer.ogg: the sound (optional).
The sound is a separate file. The trailer's picture comes from the MP4 and its sound from trailer.ogg, because Minecraft plays OGG audio. An MP4 with sound and no trailer.ogg plays silently. The second command below makes the OGG from your video.

Converting your video

With ffmpeg (free):

ffmpeg -i my_trailer.mov -an -c:v libx264 -profile:v main -pix_fmt yuv420p -vf scale=1280:-2 -r 30 -g 30 trailer.mp4
ffmpeg -i my_trailer.mov -vn -c:a libvorbis -q:a 5 trailer.ogg

-g 30 puts a keyframe every second. Studio Menu decodes the parts between keyframes in parallel, so this is what makes the trailer fast: a video with very few keyframes plays at single-core speed. For 60 fps use -r 60 -g 60.

In the editor

📦 Modpack → Trailer: turn it on, choose the video and the sound, Play a preview, and set when it plays, skipping, keys, how long before it can be skipped, the hint, fit and volume. The trailer waits until its first frames are ready, then starts picture and sound together; frames that would arrive late are skipped so the picture stays in time with the sound.

All settings

In config/studiomenu/pack.json → "trailer":

SettingValuesDefault
enabledtrue / falsefalse
filefile or folder name inside trailer/trailer.mp4
folderFpsspeed of a picture folder24
whenalways, once (first launch), new_version (once per pack version)always
skippabletrue / falsetrue
skipKeysspace, escape, enter, click, anyspace,escape
skipAfterseconds before skipping works0
skipHint / skipHintTextshow the "press … to skip" hint / your own texttrue / built-in
fitcover (fills the screen) or contain (whole picture, with bars)cover
volume0–100 (follows the master volume)100
fadeIn / fadeOutmilliseconds400 / 500
backgroundcolor behind the video#000000
qualitylargest picture edge kept1280

What a player already watched (once / new_version) is kept in .minecraft/studiomenu-state.json, never in the modpack. "Export complete modpack" includes the trailer.

Menu music

  • Put .ogg files in config/studiomenu/music/ (or drop them onto the editor). They play in the menus outside a world, in order or shuffled, and follow the game's "Music" volume.
  • Empty folder = Minecraft's own music. Menu music can also be turned off in ⚙ → Modpack.
  • Music in game too (⚙ → Modpack, or "gameMusic": true in pack.json): the pack's music also plays inside worlds and replaces Minecraft's. It uses config/studiomenu/music/game/, or the menu songs when that folder is empty. In game there are 30 to 90 seconds of silence between songs, like Minecraft; in the menus, 3 seconds.
  • When you add songs, ⚙ shows a "New songs: load them now" button.
  • Menu music stays quiet while the trailer plays.

Convert any audio file to OGG with ffmpeg -i song.mp3 -c:a libvorbis -q:a 5 song.ogg.