Rendered at 18:15:40 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
boutell 4 hours ago [-]
OP here.
I built this because my household has taken a renewed interest in owning our own media. We like DVDs, because they are cheap and abundant, and our projector doesn't go past 720p anyway; it's mostly about that "movie on the wall" atmosphere.
But we don't want a stack of scratchable media in the living room. So I used Handbrake at first. This went great until my household discovered we only had the movie. The main complaint was the loss of special features, but commentaries were also a loss. Even the menus often have charm. When they are not awful.
Basically I had missed the value of DVDs themselves as an experience.
I could just back them up as ISOs and play them that way, but that would require 6GB per movie, and I'm cheap. So... I built this. Fully interactive DVD, but with much smaller video. There's a native player and a web player, which works well over Tailscale.
My first question was, "why didn't someone do this already?" Turns out, DVDs don't really have menus, not as a file format anyway. A DVD is actually closer to an Atari 2600 cartridge with video duct-taped to it. Every half-second of that DVD can have interactive code associated with it. The audio, video, and code are married to one another. The menu buttons are painted and their interactions handled on the fly by the VM code. You can build entire games with it, and people did. This is why DVD-ripping software just rips the largest video track and calls it a day.
I came up with a different solution: convert the video tracks to an MP4 file on the side and point to them from each half-second of an "mvob" file for each track, rather than storing inefficient MPEG2 video directly with each half-second of metadata.
So yeah: I used AI and a modicum of human insight to rescue a legacy video file format after everyone else has moved on. I'd do it again. AMA.
Tepix 5 minutes ago [-]
Cool project. I'd use x265, however. Is it easy to switch to that?
Keeping only stereo audio seems like a poor choice for some. Is it configurable also?
peter_d_sherman 4 hours ago [-]
>"Because a DVD is not what you think it is. There is no XML file announcing the track titles and calling out all the buttons and what they do. There is no map. It is all territory. A DVD is a program written for a virtual machine. Think "Atari 2600 with video duct-taped to it." Every half-second of that DVD can have code associated with it. The audio, video, and code are married to one another. The menu buttons are painted and their interactions handled on the fly by the VM code. [...] Replaces libdvdnav and libdvdread with a dedicated DVD VM instruction evaluator (Groups 0..6, GPRM[0..15], SPRM[0..23], RSM resume slots), a compact .mvob indexer, and a clean-room, bounds-checked .IFO/.BUP & PCI/HLI parser (src/dvd_ifo.c)"
Interesting!
>"Encodes video with libx264 (-crf 18 -preset slow -tune film) and every audio track with stereo AAC (-c:a aac -b:a 192k), in the disc's own audio stream order, so the DVD's audio choices pick the right track."
Yes, this would potentially shrink a DVD by 75% or so!
boutell 4 hours ago [-]
Yep, that's pretty much what happens. I considered going with AV1, but H.264 seems to be widely trusted for shrinking DVDs.
I built this because my household has taken a renewed interest in owning our own media. We like DVDs, because they are cheap and abundant, and our projector doesn't go past 720p anyway; it's mostly about that "movie on the wall" atmosphere.
But we don't want a stack of scratchable media in the living room. So I used Handbrake at first. This went great until my household discovered we only had the movie. The main complaint was the loss of special features, but commentaries were also a loss. Even the menus often have charm. When they are not awful.
Basically I had missed the value of DVDs themselves as an experience.
I could just back them up as ISOs and play them that way, but that would require 6GB per movie, and I'm cheap. So... I built this. Fully interactive DVD, but with much smaller video. There's a native player and a web player, which works well over Tailscale.
My first question was, "why didn't someone do this already?" Turns out, DVDs don't really have menus, not as a file format anyway. A DVD is actually closer to an Atari 2600 cartridge with video duct-taped to it. Every half-second of that DVD can have interactive code associated with it. The audio, video, and code are married to one another. The menu buttons are painted and their interactions handled on the fly by the VM code. You can build entire games with it, and people did. This is why DVD-ripping software just rips the largest video track and calls it a day.
I came up with a different solution: convert the video tracks to an MP4 file on the side and point to them from each half-second of an "mvob" file for each track, rather than storing inefficient MPEG2 video directly with each half-second of metadata.
So yeah: I used AI and a modicum of human insight to rescue a legacy video file format after everyone else has moved on. I'd do it again. AMA.
Keeping only stereo audio seems like a poor choice for some. Is it configurable also?
Interesting!
>"Encodes video with libx264 (-crf 18 -preset slow -tune film) and every audio track with stereo AAC (-c:a aac -b:a 192k), in the disc's own audio stream order, so the DVD's audio choices pick the right track."
Yes, this would potentially shrink a DVD by 75% or so!