Libvlc : audio-filter as argument

This forum is about all development around libVLC.
bounty
New Cone
New Cone
Posts: 2
Joined: 14 Nov 2015 18:47

Libvlc : audio-filter as argument

Postby bounty » 14 Nov 2015 19:01

Hi
when I use
C:\Program Files (x86)\VideoLAN\VLC\vlc.exe mymusic.mp3 –audio-filter=mono
It works well .

When I use libvlc in C or C++

char const *vlc_argv[] = {
"--audio-filter=mono"
};
int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
libvlc = libvlc_new(vlc_argc, vlc_argv);

It seems that VLC does not use the filter.
What's wrong?

grindstone
New Cone
New Cone
Posts: 9
Joined: 27 Oct 2015 14:04

Re: Libvlc : audio-filter as argument

Postby grindstone » 15 Nov 2015 15:43

It seems to me that "--audio-filter=mono" doesn't work at all. As a workaround you can use the "transcode" - option instead:

Code: Select all

char smem_options[256]; sprintf(smem_options, "#transcode{acodec=s16l,channels=1}:duplicate{dst=display,dst=dummy}"; const char * const vlc_argv[] = { "--sout", smem_options }; int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv); libvlc = libvlc_new(vlc_argc, vlc_argv);

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

Re: Libvlc : audio-filter as argument

Postby Rémi Denis-Courmont » 16 Nov 2015 09:34

audio-filter is not meant to be used with LibVLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

bounty
New Cone
New Cone
Posts: 2
Joined: 14 Nov 2015 18:47

Re: Libvlc : audio-filter as argument

Postby bounty » 16 Nov 2015 11:42

Thanks for the tip grindstone.

My aim was to be able to use an audio -filter custom , but
I understand that this is only possible through libvlccore

https://forum.videolan.org/viewtopic.php?f=32&t=121953

grindstone
New Cone
New Cone
Posts: 9
Joined: 27 Oct 2015 14:04

Re: Libvlc : audio-filter as argument

Postby grindstone » 16 Nov 2015 14:22

@bounty:
That's a very interesting thread! Maybe it's valuable to create libvlccore bindings for freeBasic (or maybe it's easier to use the command line args). I'll have a look at it.

ppcat
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Feb 2015 11:16
VLC version: 2.1.5
Operating System: Windows 7
Contact:

Re: Libvlc : audio-filter as argument

Postby ppcat » 17 Nov 2015 08:21

Hi.
It works great.
Can I to chain 2 audio filters this way?
If not, maybe is there other way?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests