hudec117 / Mpv.NET-lib-

.NET embeddable video/media player based on mpv for WinForms and WPF
MIT License
139 stars 36 forks source link

Any Way to Alter Audio with NAudio? #23

Closed mysteryx93 closed 4 years ago

mysteryx93 commented 4 years ago

I'm considering the idea of redesigning a 432hz Media Player to use NAudio to shift the pitch at runtime... do you see any way I could hook into MPV.NET to let it play the video and alter the audio?

One option could be to play the video with MPV and audio with NAudio separately.

There are 2 main problems I'm seeing.

1st, keeping audio and video in sync.

2nd, audio codec support. MPV supports most codecs; NAudio would probably struggle with exotic formats. Unless I can have MPV parse the audio and then hook into it to change the WaveStream.

Anything useful comes to your mind?

mysteryx93 commented 4 years ago

Looking into NAudio, I don't think this is possible nor related.