Filter support in libVLC

This forum is about all development around libVLC.
johend
New Cone
New Cone
Posts: 4
Joined: 21 May 2024 13:35

Filter support in libVLC

Postby johend » 07 Jun 2024 14:44

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Filter support in libVLC

Postby Rémi Denis-Courmont » 07 Jun 2024 16:47

VLC audio filters are not exposed to LibVLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Gronky
Blank Cone
Blank Cone
Posts: 13
Joined: 31 Mar 2022 19:52

Re: Filter support in libVLC

Postby Gronky » 09 Jun 2024 02:00

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;

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Filter support in libVLC

Postby Rémi Denis-Courmont » 09 Jun 2024 08:04

Equalizer is exposed, yes, but that is an exception to confirm the rule.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

johend
New Cone
New Cone
Posts: 4
Joined: 21 May 2024 13:35

Re: Filter support in libVLC

Postby johend » 10 Jun 2024 09:58

Thanks, that's clear.
I suspect there is a technical reason to not expose the filter possibilities to libVLC?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests