mpv-player / mpv-player/mpv

Question: Is there a way to retrieve audio samples in GPU Shader code?

Open
#9,464 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request meta:help-wanted
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Is there any chance to have audio sample float (in some way) accessible in the user shader code, this will help making cool shaders for audio playback (like old winamp vis plugins).

I know this is hard (buffer, sync and other problems) but will open great scenarios on making players based on mpv

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by locating how mpv exposes GPU shader code and how audio samples move through playback, then define the buffer and synchronization behavior needed before implementation; done means shader code can reliably access audio sample floats.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.