mpv-player / mpv-player/mpv

Windows: allow PCM output to write to a named pipe

Open
#9,953 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected behavior of the wanted feature

I'd love to be able to use the PCM audio output module to write to a Windows named pipe, like \\.\pipe\mpv-pcm-output, to be able to synchronously read it from another piece of software. I tried configuring it:

ao=pcm
ao-pcm-file=\\.\pipe\mpv-pcm-output

but it doesn't work as of now.

Log file

output.txt

Relevant part:

[ao/pcm] File: \\.\pipe\mpv-pcm-output (WAVE)
[ao/pcm] PCM: Samplerate: 44100 Hz Channels: 2 Format: float
[ao/pcm] Failed to open \\.\pipe\mpv-pcm-output for writing!
[ao] Failed to initialize audio driver 'pcm'
Could not open/initialize audio device -> no sound.
Audio: no audio

Exiting... (Interrupted by error)

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

Start at the PCM audio output module and trace how the ao-pcm-file path is opened on Windows. Use the provided log as the baseline, then verify that a Windows named-pipe path can support synchronous PCM reads without the current initialization failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.