libVLCSharp Audio Filters Support
Posted: 20 Apr 2020 22:17
I am trying to use audio filters dynamic range compressor or volume normalizer in a windows form application with libVLCSharp. I have tested the command line parameters in the actual command line and they work there. But it does not work with the following code. Any help is highly appreciated. I am trying to solve this for days now.
I have also tried using these parameters with Media.M.AddOption(string[] options), with the "--" syntax and with ":" syntax, but this does not work either.
Thanks
Martin
Code: Select all
Core.Initialize();
InitializeComponent();
_libVLC = new LibVLC(new string[] { "--audio-filter=compressor", "--compressor-rms-peak=0", "--compressor-attack=10", "--compressor-release=165", "--compressor-threshold=-30", "--compressor-ratio=20", "--compressor-knee=1", "--compressor-makeup-gain=19" });
_mp = new MediaPlayer(_libVLC);
videoView1.MediaPlayer = _mp;
_mp.Play(new Media(_libVLC, @"C:\Testfile.mp4", FromType.FromPath));
Thanks
Martin