devilutionX icon indicating copy to clipboard operation
devilutionX copied to clipboard

[Feature Request]: Add MP4 support for intro movie

Open eisnerguy1 opened this issue 1 month ago • 4 comments

Feature Type

Quality of Life

Describe

I was wondering if it were at all possible to add MP4 support for the intro movie? There was the Diablo II Collector's Edition DVD that had a higher quality version of the intro. I did convert the file located at: "DIABLO2_BOXSET/VIDEO_TS/VTS_22_1.VOB" as an .mp4. I can provide the .mp4 file if that would help at all.

The game could recognize the external video similarly to the process of replacing music files. I mean, creating a folder in the diablo directory called "gendata" and placing "diablo1.mp4" there.

I hope that all makes sense. Thanks! 😄 👍🏻

eisnerguy1 avatar Nov 10 '25 20:11 eisnerguy1

mp4 is a container format and can hold various types of video and audio encoding internally.

Do you happen to know how the mp4 video is encoded? You can generally get that information from a video player.

glebm avatar Nov 10 '25 23:11 glebm

I didn't read properly -- so the source video is VOB and you want it to be playable in-game using a modern format. Perhaps something like webm would be a better fit (e.g. via https://github.com/cubicool/mbew or directly via https://github.com/webmproject/libwebm)

glebm avatar Nov 11 '25 05:11 glebm

Yeah, I could convert the VOB to webm. Would adding webm support for the cutscenes be a worthwhile addition to DevilutionX? How difficult would it be to adding webm support?

eisnerguy1 avatar Nov 11 '25 06:11 eisnerguy1

It'd be excessive complexity for a minor improvement, not so unusual for DevilutionX :)

In terms of the difficulty of implementation, it'd be similar to the existing video code at https://github.com/diasurgical/DevilutionX/blob/master/Source/storm/storm_svid.cpp

glebm avatar Nov 11 '25 14:11 glebm