mdec

Decode PlayStation 1 MDEC macroblock data via I/O port commands.

3|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/sadnescity/psx-spx-claude-plugin --skill mdec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mdec
Source: https://github.com/sadnescity/psx-spx-claude-plugin/tree/main/skills/mdec
Command: npx skills add https://github.com/sadnescity/psx-spx-claude-plugin --skill mdec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires , and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the complex challenge of decoding and decompressing video in PlayStation 1 hardware format (MDEC) through precise and in-depth understanding of I/O ports, commands, and data formats.

Core Features & Use Cases

  • In-depth MDEC Decoding: Understands and executes Macroblock Decoder commands and operations for FMV (Full Motion Video) decoding.
  • I/O Ports & Commands: Knows and manages MDEC's I/O ports and control registers, allowing for direct manipulation and status checks.
  • Data Format Analysis: Grasps the unique MDEC data formats including Run-Length compressed blocks and YUV-to-RGB conversion processes.
  • Use Case: Use this Skill for reverse engineering PSX game assets or creating a software that interacts directly with the PlayStation 1 hardware to decompress video data.

Quick Start

Activate the 'mdec' skill to get the current state of MDEC I/O Ports or execute a macroblock decoding command.

Frequently Asked Questions about mdec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decode PlayStation 1 MDEC video data?

To decode PlayStation 1 MDEC video data, you need to process JPEG-style macroblocks through a decompression pipeline, managing I/O ports and control registers to execute specific decoding commands.

What is the MDEC data format used for PSX FMV decompression?

The MDEC data format for PSX FMV decompression consists of Run-Length compressed blocks that must undergo YUV-to-RGB conversion to extract the final video output from the PlayStation 1 hardware format.

How do I manage I/O ports when reverse engineering PSX MDEC commands?

Managing I/O ports when reverse engineering PSX MDEC commands involves directly manipulating control registers to check status and dispatch commands for setting quantization and scale tables.

Can I use this approach to extract Full Motion Video assets from PSX games?

Yes, you can extract Full Motion Video assets from PSX games by applying MDEC decoding to manipulate specific macroblocks, parse their unique data formats, and reverse engineer the video data.

Why does my PSX macroblock decompression pipeline fail during YUV to RGB conversion?

PSX macroblock decompression pipelines often fail during YUV to RGB conversion if the correct scale and quantization tables were not properly loaded into the MDEC I/O ports prior to execution.

Do I need specific quantization tables for PlayStation 1 hardware video decompression?

Yes, PlayStation 1 hardware video decompression requires specific quantization and scale tables to be set via MDEC commands before processing the Run-Length compressed macroblock data.