mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 16:24:38 +00:00
Sierra VMD (Video and Music Data) is the video format of Sierra and Coktel Vision games of the 1990s. Written clean-room from the public format description at https://wiki.multimedia.cx/index.php/VMD, with ffmpeg as a black-box oracle. - craft-media: `vmd` feature, a demuxer for the 816-byte header and the table of contents; `Container::Vmd`, `CodecId::VmdVideo` and `CodecId::VmdAudio`. - craft-video: `vmd` feature, a decoder for 8-bit paletted pictures (rendering methods 1 to 3, LZ packing, palette changes). - craft-audio: `vmd-decode` feature, a decoder for 8-bit PCM and 16-bit DPCM sound, mono and stereo. - craft-media-testkit: a VMD fixture writer, since ffmpeg reads VMD but cannot write it. Tests compare the decoders with ffmpeg on generated files, and on real files when CRAFT_MEDIA_VMD_SAMPLES names a directory of them. 16-bit, 24-bit and Indeo 3 pictures, IMA ADPCM sound and the later header revisions are not decoded.