Page 1 of 1

Filter support in libVLC

Posted: 07 Jun 2024 14:44
by johend
I have searched through this forum, but it is still not clear to me if it is possible to use a filter with libVLC to use for audio playback. For example to activate the "karaoke" audio-filter, or the compressor. Is the use of filters supported, and if so, what is the way to achieve it?

For example, I tried to set a filter by a media option, using:

Code: Select all

libvlc_media_add_option(m, ":audio-filter=karaoke")
but it doesn't seem to work

Re: Filter support in libVLC

Posted: 07 Jun 2024 16:47
by Rémi Denis-Courmont
VLC audio filters are not exposed to LibVLC.

Re: Filter support in libVLC

Posted: 09 Jun 2024 02:00
by Gronky
This works for me in Delphi, it's from the code at a link in the pinned post "Delphi Wrapper for LibVLC v1.1"

Procedure EqualizerOn;
var
eqf : TSetEqualizerPresetForm;
prl p: TStringList;
begin
with mainform do
begin
prl := PasLibVlcPlayer1.EqualizerGetPresetList();
eqf := TSetEqualizerPresetForm.Create(mainform);
eqf.FVLC := PasLibVlcPlayer1.VLC;
eqf.PresetListLB.Items.AddStrings(prl);
// if eqf.ShowModal = mrOK then begin if (eqf.PresetListLB.ItemIndex > -1) then begin

PasLibVlcPlayer1.EqualizerSetPreset(Word(prl.Objects[7])); /// set "headphones" mode for good bass and treble

// end; end;
eqf.Free;
prl.Free;
end;
end;

Re: Filter support in libVLC

Posted: 09 Jun 2024 08:04
by Rémi Denis-Courmont
Equalizer is exposed, yes, but that is an exception to confirm the rule.

Re: Filter support in libVLC

Posted: 10 Jun 2024 09:58
by johend
Thanks, that's clear.
I suspect there is a technical reason to not expose the filter possibilities to libVLC?