{
  "id": "mplayer",
  "name": "MPlayer",
  "homepage": "https://mplayerhq.hu/",
  "description": "UNIX movie player",
  "executables": [
    "mplayer",
    "mencoder"
  ],
  "dotfiles": {
    "paths": [
      "~/.mplayer/config",
      "~/.mplayer/input.conf",
      "~/.mplayer/codecs.conf",
      "~/.mplayer/mencoder.conf",
      "~/.mplayer/gui.conf"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Play media",
    "description": "Play files or URLs with MPlayer. Video and audio driver choice, filters and encoding (mencoder) are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/mplayer/mplayer.1.en.html",
        "revision": "debian-unstable-2026-10",
        "evidence": "mplayer [options] [file|URL|playlist|-]\n-fs\nFullscreen playback (centers movie, and paints black bands around it).\n-loop <number>\nLoops the playback <number> times. 0 means forever.\n-ss <time>\n-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]>\nStop at given time or byte position.\n-volume <-1-100>\nSet the startup volume in the mixer, either hardware or software (if used with -softvol).\n-shuffle\nPlay files in random order.\n-playlist <filename>\nPlay files according to a playlist file (ASX, Winamp, SMIL, or one-file-per-line format).\n-sub <subtitlefile1,subtitlefile2,...>\nUse/display these subtitle files.\n-speed <0.01-100>\nSlow down or speed up playback by the factor given as parameter.\n-nosound\nDo not play/encode sound.\n"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files or URLs",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "man"
        ]
      },
      {
        "id": "playlist",
        "label": "Playlist file",
        "type": "path",
        "option": [
          "-playlist"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "fullscreen",
        "label": "Fullscreen",
        "type": "boolean",
        "option": [
          "-fs"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "loop",
        "label": "Loop count (0 = forever)",
        "type": "integer",
        "option": [
          "-loop"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "start",
        "label": "Start position",
        "description": "Seconds or hh:mm:ss.",
        "type": "string",
        "option": [
          "-ss"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "end",
        "label": "Stop position",
        "description": "[[hh:]mm:]ss, relative to the file start.",
        "type": "string",
        "option": [
          "-endpos"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "volume",
        "label": "Startup volume (0-100)",
        "type": "integer",
        "option": [
          "-volume"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "speed",
        "label": "Speed factor",
        "type": "number",
        "option": [
          "-speed"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "sub",
        "label": "Subtitle file",
        "type": "path",
        "option": [
          "-sub"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "shuffle",
        "label": "Shuffle",
        "type": "boolean",
        "option": [
          "-shuffle"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "nosound",
        "label": "No sound",
        "type": "boolean",
        "option": [
          "-nosound"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "play",
        "label": "Play files",
        "fields": [
          "files",
          "fullscreen",
          "loop",
          "volume"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "play_playlist",
        "label": "Play a playlist",
        "fields": [
          "playlist",
          "shuffle",
          "fullscreen"
        ],
        "required": [
          "playlist"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "playlist",
          "fullscreen",
          "loop",
          "volume"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "start",
          "end",
          "speed",
          "sub",
          "shuffle",
          "nosound"
        ]
      }
    ]
  }
}
