r/MAME • u/allancampbell3 • 3d ago
Discussion/Opinion Mame native UI - adding video preview
I have been working on adding a video-preview feature to the native MAME UI. Here is a sample of what it looks like (see video).
- Adds a 3rd tab called "Video" to the Image/Info section on the right of the UI
- Plays MP4 video (with sound) that is named the same as the ROM file that is selected in the UI
Has configuration options for:
- Setting the folder to use as the source of the MP4 files
- Falling back to a static image if no MP4 is available (and a PNG is available)
- Adjusting volume of the video playback from 0-100%
- Turning off the videos' sound entirely
The code doesn't start playing the video for a moment, to allow for smooth/fast scrolling through the games list. I have it set up to use games' logo files as the "fallback" image, so it displays the logo of the game for a moment and then plays the associated video.
Let me know what you think of this addition.
42
Upvotes
3
u/azukihusband 3d ago
Reminds me of some of those arcade compilations that show a video preview to get an idea on what the game is like. I don't know if it would be possible to add this to official MAME but as an option to turn off, and on would be sweet.
2
u/MechanicalMoogle 3d ago
MP4 is a container, not a codec, so it's important to be clear about exactly what codecs are supported. Getting it into mainline would be dicey given the potential patent encumbrance of some codecs.
Additionally, given how many people are just vibin' it up lately without understanding the code they're writing enough to be able to integrate it cleanly into the codebase, I hope you don't consider it out of line when I ask: Have you been working on adding that feature to MAME's internal UI, or has Claude been working on adding it for you?
2
u/No-Concentrate3364 3d ago
Seems interesting, but I still prefer screenshot over video. Takes less space and is less distracting.
1
u/dukdukgoos 3d ago
super cool!
1
u/Rippedgeek 3d ago
Really like this idea, and hope to see this as an option in the future for sure.
1
u/Quick-Advertising-17 3d ago
Looks great to me.
0
u/jflatt2 3d ago
Why not just play the game. Sandbox it so that it doesnt pull in an autosave, maybe use skipframes plugin to get straight into attract mode