LibVLC: add APIs for audio-filter
Original title: "How do we use the Audio Filter, such like: pitch-shift?"
I'm using the v4.0 beta version of LibVLCSharp
in Windows 10, I ask this question in here because this is more like a core issue.(VLC lib version is same: v4.0)
I want the audio using the pitch-shift effect. So I tried use:
string[] options = { "--audio-filter=scaletempo_pitch", "--pitch-shift=5", "--scaletempo-search=100", "--scaletempo-overlap=0.5", "--scaletempo-stride=1000" };
_mediaPlayer = new MediaPlayer(_libVLC);
But nothings change, then I tried other way like:
_mediaPlayer.Play(new Media(new Uri(@"Y:\video.mp4"), options));
Or :
videoView.MediaPlayer.Media.AddOption("--audio-filter=scaletempo_pitch");
videoView.MediaPlayer.Media.AddOption("--pitch-shift=5");
But all not working, what's happening? what is the correct way? My second question is : Is it possible to access some custom audio filter file like : *.ax file?