This is really annoying. Please help for equalizer

This forum is about all development around libVLC.
spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

This is really annoying. Please help for equalizer

Postby spider58 » 12 Jan 2015 10:15

All my code below. Whats wrong i can't understand

Defines

Code: Select all

<DllImport("libvlc",CallingConvention:=CallinConvention.Cdecl)> _ Public Shared Function libvlc_audio_equalizer_new() as Intptr <DllImport("libvlc",CallingConvention:=CallinConvention.Cdecl)> _ Public Shared Function libvlc_audio_equalizer_set_amp_at_index( Byval equalizer as IntPtr, f_amp as Single, u_band as Integer) As Integer
Usage

Code: Select all

dim equal as Intptr = libvlc_audio_equalizer_new() libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,0) libvlc_audio_equalizer_set_amp_at_index(equal,0F,1) libvlc_audio_equalizer_set_amp_at_index(equal,-5.1F,2) libvlc_audio_equalizer_set_amp_at_index(equal,10.0F,3) libvlc_audio_equalizer_set_amp_at_index(equal,-10.2F,4) libvlc_audio_equalizer_set_amp_at_index(equal,-20.0F,5) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,6) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,7) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,8) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,9) libvlc_media_player_set_equalizer(PlayerHandle,equal)
Nothing happening. Sound doesn't change. :evil: :evil: :evil: :evil:

Thanks inadvance

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: This is really annoying. Please help for equalizer

Postby spider58 » 12 Jan 2015 17:37

note: i using 2.2.0 x64 and compiling my application as ANY CPU.

i'm tried to get amp after set amp

Code: Select all

libvlc_audio_equalizer_get_amp_at_index(equal,0)
this returns correct value which i applied before.

But why sound not affected by equalizer i have no idea.
Im working on hours for this problem.

gonna mad :?

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: This is really annoying. Please help for equalizer

Postby sherington » 12 Jan 2015 18:19

I wrote some test code when the equalizer in LibVLC was first implemented, I've copied it here:

https://gist.github.com/caprica/1a6d0468675af33f7d36

The linked code contains test cases for setting equalizer before playback, during playback, having the equalizer settings persist when changing media and so on.

I just tested this against the latest vlc git and it works properly. I also test with Java bindings and it works fine there too.

I can only suggest that there must be something wrong with your language bindings, but I don't use whatever language it is you're using so I can't say any more.

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: This is really annoying. Please help for equalizer

Postby mangokm40 » 12 Jan 2015 21:43

"All my code below...."

Don't you need a call to libvlc_media_player_set_equalizer()? I thought THAT's when the change happened.

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: This is really annoying. Please help for equalizer

Postby spider58 » 13 Jan 2015 07:41

"All my code below...."

Don't you need a call to libvlc_media_player_set_equalizer()? I thought THAT's when the change happened.
my code has this line. you can scroll down :)

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: This is really annoying. Please help for equalizer

Postby spider58 » 13 Jan 2015 07:42

I wrote some test code when the equalizer in LibVLC was first implemented, I've copied it here:

https://gist.github.com/caprica/1a6d0468675af33f7d36

The linked code contains test cases for setting equalizer before playback, during playback, having the equalizer settings persist when changing media and so on.

I just tested this against the latest vlc git and it works properly. I also test with Java bindings and it works fine there too.

I can only suggest that there must be something wrong with your language bindings, but I don't use whatever language it is you're using so I can't say any more.
thank you. i know this page :) yesterday i visited. and tried same lines, doesn't works.

can you show libvlc.dll defining lines for me please

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: This is really annoying. Please help for equalizer

Postby spider58 » 13 Jan 2015 07:53

I FOUND PROBLEM

2.2.0 has problem. 3.0 nightly building working good without any code changes.


http://nightlies.videolan.org/build/win ... 2-win64.7z

So what can i do? I can't use nightly building. I must use stable version.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: This is really annoying. Please help for equalizer

Postby Jean-Baptiste Kempf » 18 Jan 2015 08:09

@sherington: is it working with 2.2.0 too?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: This is really annoying. Please help for equalizer

Postby sherington » 19 Jan 2015 10:55

I can no longer build vlc-2.2.0 git because of a fontconfig version conflict (0.19 vs 0.18) after I upgraded my OS, so I can't check the latest version.

The version of VLC installed by my OS is: 2.2.0-pre2 Weatherwax, changeset 2.2.0-pre1-15-g5178b24

I tested that just now and the equalizer seems to work just fine for me.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: This is really annoying. Please help for equalizer

Postby Jean-Baptiste Kempf » 20 Jan 2015 03:37

You can build VLC without fontconfig, you know?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: This is really annoying. Please help for equalizer

Postby sherington » 20 Jan 2015 09:46

Yep, my mistake, I got it working with fontconfig too but that's neither here nor there!

So I got a working vlc-2.2-git build at:

vlc: 2.2.0-rc2 Weatherwax, changeset 2.2.0-rc2-131-gf966a0f

I tested it just now and the equalizer works just fine.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: This is really annoying. Please help for equalizer

Postby Jean-Baptiste Kempf » 20 Jan 2015 19:09

Good. Thanks.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: This is really annoying. Please help for equalizer

Postby spider58 » 27 Jan 2015 11:05

Yep, my mistake, I got it working with fontconfig too but that's neither here nor there!

So I got a working vlc-2.2-git build at:

vlc: 2.2.0-rc2 Weatherwax, changeset 2.2.0-rc2-131-gf966a0f

I tested it just now and the equalizer works just fine.
@sherington can you give me a link for vlc: 2.2.0-rc2 Weatherwax, changeset 2.2.0-rc2-131-gf966a0f please?

I ve downloaded RC2 from here. equalizer worked good, everything worked good. But this time i got an error message (ntdll.dll) when i change stream language.

http://www.computerbase.de/downloads/au ... ia-player/

i can change subtitle, deinterlace, equalizer, gamma etc.. but now i cant' change stream language. i dont know all my problems with libvlc will be over :)

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

This is really annoying. Please help for equalizer

Postby sherington » 27 Jan 2015 12:50

Your problems with LibVLC will probably be over when 2.2.0 final is released, right now you're working with a pre-release version.

I can't provide you with any link, especially not for Windows, I build vlc from vlc-git and vlc-2.2-git on Linux regularly and I use that.

I do know that [KU]buntu 14.10 includes 2.2.0-rc2.

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

This is really annoying. Please help for equalizer

Postby spider58 » 27 Jan 2015 14:30

Your problems with LibVLC will probably be over when 2.2.0 final is released, right now you're working with a pre-release version.

I can't provide you with any link, especially not for Windows, I build vlc from vlc-git and vlc-2.2-git on Linux regularly and I use that.

I do know that [KU]buntu 14.10 includes 2.2.0-rc2.
okay, i can't do anything i understand. :) i have to wait for 2.2.0 final.

thanks for the answer.

CeA$1992
New Cone
New Cone
Posts: 2
Joined: 06 Feb 2015 18:26

Re: This is really annoying. Please help for equalizer

Postby CeA$1992 » 06 Feb 2015 18:33

Sorry if I add to the thread only now. We moved from WMP to VLC in a production system last month, but we need the equalizer tool that is not available with the last official release (2.1.x). Can we use the 2.2.0 rc2 suggested ? We use VLC mainly to play OGG file.
Thanks in advance

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: This is really annoying. Please help for equalizer

Postby Jean-Baptiste Kempf » 06 Feb 2015 19:27

Yes, you can.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

CeA$1992
New Cone
New Cone
Posts: 2
Joined: 06 Feb 2015 18:26

Re: This is really annoying. Please help for equalizer

Postby CeA$1992 » 10 Feb 2015 18:51

Ok, thanks.
Right now, we are having another problem: since we have to play OGG file from a remote linux-based server, we need the plugin samba (plugin/access/libaccess_smb.dll) that is not linked on that "rc" version. How can we do ? Locally, at the windows client, the .ogg files play good and the equalizer is working (we use vlcj 3.1.0 to interface libvlc), but we cannot play the same files if they are on a remote linux server.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: This is really annoying. Please help for equalizer

Postby Jean-Baptiste Kempf » 12 Feb 2015 11:19

Windows has native Samba support.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests