hudec117 / Mpv.NET-lib-

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

How to add an Audio Filter? #36

Closed jiatao99 closed 3 years ago

jiatao99 commented 3 years ago

I am trying to change the audio pitch during playback. Like the following:

     var s = Math.Pow(2, (double)value / 12);
     _player.API.Command($"--af_add=rubberband=pitch-scale={s}");

However, I always get invalid command exception. I have tried a lot of combination, but nothing works.


--af_add=rubberband=pitch-scale=
af_add rubberband=pitch-scale=
af=rubberband=pitch-scale=
--af rubberband=pitch-scale=
``