Skip to content
Back to skills

Media Mpv

ASecurity

Play music and video on SlateOS with mpv (files, folders, streams and URLs), pause/seek/volume during playback, and inspect media files. Use for any request to play, pause, skip, or ask about a video or audio file.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 29, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 29, 2026

npx -y skills add BenchGrid-dev/slate --skill media-mpv --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Media Mpv?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Media Mpv
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/benchgrid-dev-media-mpv/badge)](https://www.skillsdirectory.com/skills/benchgrid-dev-media-mpv)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: slate-media-mpv
description: Play music and video on SlateOS with mpv (files, folders, streams and URLs), pause/seek/volume during playback, and inspect media files. Use for any request to play, pause, skip, or ask about a video or audio file.
---

# Media playback with mpv

## Play

```
mpv --input-ipc-server=/tmp/mpv-slate ~/Music/album/          # a folder is a playlist
mpv --input-ipc-server=/tmp/mpv-slate --no-video song.flac      # audio only
mpv --input-ipc-server=/tmp/mpv-slate "https://…"               # streams and sites via yt-dlp if installed
```

Always start it through `desktop_launch` with `--input-ipc-server=/tmp/mpv-slate` so it can be controlled without keys. Tier: observe (playback changes nothing on disk).

## Control a running player

Send JSON commands to the socket (needs `socat` or a small Python snippet):

```
echo '{"command":["set_property","pause",true]}'  | socat - /tmp/mpv-slate     # pause
echo '{"command":["set_property","pause",false]}' | socat - /tmp/mpv-slate     # resume
echo '{"command":["seek",30]}'                    | socat - /tmp/mpv-slate     # +30 s
echo '{"command":["playlist-next"]}'              | socat - /tmp/mpv-slate     # next track
echo '{"command":["set_property","volume",60]}'   | socat - /tmp/mpv-slate     # player volume (system volume: the audio-volume skill)
echo '{"command":["get_property","time-pos"]}'    | socat - /tmp/mpv-slate     # where are we
echo '{"command":["quit"]}'                       | socat - /tmp/mpv-slate
```

Without socat: `python3 -c 'import socket,json;s=socket.socket(socket.AF_UNIX);s.connect("/tmp/mpv-slate");s.send(json.dumps({"command":["set_property","pause",True]}).encode()+b"\n")'`. Keys with the window set also work (`space` pause, `Left`/`Right` seek, `q` quit), but the socket is exact and needs no focus.

## Inspect a file

`mpv --no-config --frames=0 --term-playing-msg='${duration} ${width}x${height} ${audio-codec-name}' file` prints duration and codecs, or `ffprobe file` if ffmpeg is installed.

## Verify

`get_property pause` / `time-pos` over the socket tells you the real state; report that.

Files in this skill

  • SKILL.md2.1 KB
  • manifest.toml180 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.