Delay in audio changes using libvlc 3.0 rc5

This forum is about all development around libVLC.
mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Delay in audio changes using libvlc 3.0 rc5

Postby mangokm40 » 09 Jan 2018 20:56

My issue is a small delay when making audio changes such as volume, mute, or audio track. The change takes almost a second to
occur. This delay is NOT happening in the vlc rc5 executable. It also doesn't happen with libvlc 2.2.x.

I'm just wondering if anyone else has seen this. It's most annoying when changing the volume 5% at-a-time. With the delay, it
can take a looong time to drop volume 30%. :) As I said, vlc doesn't have this issue and changes volume 5% at-a-time with no delay.

Thanks.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby Jean-Baptiste Kempf » 14 Jan 2018 11:09

So, it works in VLC but not in libVLC? (in 3.0-rc5)
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.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby mangokm40 » 17 Jan 2018 20:45

"So, it works in VLC but not in libVLC? (in 3.0-rc5)"

Correct. To be clear, it still works. It just has a 'delay' that doesn't happen in vlc 3.0-rc5 or in libvlc 2.2.x.

I was just wondering if anyone else had gotten it. My code is the same as with 2.2.x.

Thanks

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby Jean-Baptiste Kempf » 20 Jan 2018 19:29

Do you force a special audio output?
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.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby mangokm40 » 22 Jan 2018 15:41

Do you force a special audio output?

I don't know how to do that. :)

I don't think I'm providing enough information for anyone to help me. I'll just create a simple project. If the problem happens there, I will post the code.

I found it perplexing because my code didn't change. I just linked libvlc 3.0 instead of 2.2.8.

When I have the code sample, I'll post it here.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby Jean-Baptiste Kempf » 22 Jan 2018 17:35

OK.
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.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby mangokm40 » 23 Jan 2018 21:20

I made a simple project and DID NOT get the weird delay. Sorry to have wasted your time.

My best guess is a problem with event handling, since I did none in the simple project. Perhaps there's some updates in the event firing in version 3.0 and I have to update my handlers.

Thanks (again) for your time.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby Jean-Baptiste Kempf » 23 Jan 2018 23:09

OK.
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.

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

Re: Delay in audio changes using libvlc 3.0 rc5

Postby mangokm40 » 14 Feb 2018 17:32

Doubt this will be useful to anyone, but....

The delay in 3.0 happens when I have "caching" command-line settings. I just tested with/without "--file-caching=3000" and that makes the delay occur when changing audio values. Note this doesn't happen in 2.2.x. In fact, I had forgotten that value was left from a test last year. :)

Thanks for your time, Mr. Kempf.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests