Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin (Read 2735 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Both foobar2000 2.0 & Preview 2.1 cannot play gapless through the UPnP / DLNA Plugin (UPnP/DLNA Renderer, Server, Control Point by bubbleguuum).

While old foobar2000 version 1.6 plays perfectly gapless using the UPnP / DLNA Plugin, the newer versions sadly don't anymore. Once in a while with a new start I actually get them to play gaplessly, but most of the time they don't. I know the plugin is old, but unfortunately it is the only one we have for that purpose.

I know there is the new UPnP MediaRenderer Output 1.4 plugin, but it is just not what some of us need, as we are not at our PC when we listen to music.

I wish this could be fixed somehow.


Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #1
No change in foobar2000 core can cause that. A third party component can still access media library contents like before and decode tracks like before.

Are you certain you are testing things correctly?

Only way I can think of that the player could cause a gap to appear between two tracks is if the core prevented a third party component from accessing two files at the same time and prevented said component from buffering things on its own. Or knew how long buffer the component it wants to sabotage has and artifically prevents the component from accessing a new file until enough time has passed for buffer to run out. This of course doesn't happen.

I see no mention on foo_upnp's features that it claims to support gapless. AFAIK gapless with UPnP is actually a pretty difficult scenario as the standard doesn't have means to achieve this. To my knowledge only official way to get gapless output is to produce a single continuous stream from the source. But I'm not expert on UPnP, just trying to recall what bubbleguuum said while he was still active in foobar2000 community.

 

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #2
Thanks for your reply!

Like I said, it works flawlessly gapless with foobar v1.6.

I tried fresh installations of foobar2000 v2 and v2.1. It's always the same: Music stops at the end of a track and then approximately 0.5s later the next track starts. I don't know if that is considered correct testing, but I can hear the gap.

You say that nothing in the core could cause it, so that's weird, because before it always worked. Weird is also that 1 in 10 times (after restarting foobar2000) it works.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #3
Is gapless playback enabled under Preferences/Tools/UPnP/Controller ?

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #4
Yes, it's enabled, but I use foobar2000 as an UPnP server and not controller (opposite direction I guess).

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #5
I tried it with BubbleUPnP and the WHA playing to a WiiM Pro and playback was gapless for me.
What control point and player are you using?

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #6
using foobar v2.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #7
It doesn't work with neither my Wiim Pro streamer nor my smartphone using the foobar2000 app nor access from another PC via foobar2000.

It is weird, because every now and then it does work without having gaps. I mean it shouldn't really matter as I rarely listen to concerts and most albums don't have transitions between the tracks, but still, it's annoying.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #8
It doesn't work with neither my Wiim Pro streamer nor my smartphone using the foobar2000 app nor access from another PC via foobar2000.
Are you saying that it's not gapless if you use the WiiM Home App playing to the WiiM Pro (although this probably isn't using UPnP at all)?
I'm sure that gapless playback is down to the control point and renderer and their support of SetNextAVTransportURI, it's nothing to do the server.
Have you tried a clean install with just foo_upnp?

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #9
I have made a fresh installation with the newest preview and what can I say, gapless playback actually seems to work now. Strange thing is that I could never get it to work with v2 and since then I always just updated to the newest preview, hoping it would finally play gapless again. I hope this is not just coincidence and tomorrow the gaps between tracks come back. But so far looks good. I am carefully optimistic.

One thing I have realized is that if I just put foobar2000 in Windows autostart then it never loads the complete library, which are almost 40.000 songs right now. So I start it with delay (2 minutes as 1 is not enough) and that seems to work. Could it have to do with that? I don't know.

Strangly I never had problems like that with v1.6. No problems with gapless playback nor incomplete loading of the library.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #10
If you turn on UPnP Server debugging (Preferences > Tools > UPnP > Server > Basic Settings) and view it from the console window, you should see that the following track is being loaded well before the end of the current one.
As long as that's happening, and your network isn't so slow that the renderer can't buffer what it needs then I don't believe the server can be responsible for any of the gapless problems.

My assumption here is that you're simply serving files and don't have any DSP chains active, as that could affect buffering too.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #11
Thanks for that explanation. I will check it.

And you are correct: I basically don't use any DSP except for the advanced limiter + replay gain.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #12
Here we go again. No gapless playback, no matter what control point or player I use. Restarting everything doesn't help and again, v1.6 works as it should.

Nothing has changed on the PC where foobar2000 runs as a server. Also no VPN or whatever. The PC is basically doing nothing and it is reasonable hardware (Intel i3, 8 GB, everything stored on internal SSDs, everywhere in my network at least 50MBit/s at any time) I don't get it.

Re: Foobar2000 2.0 & Preview 2.1 - Not gapless through UPnP / DLNA Plugin

Reply #13
Just want to give an update quick:

Installed everything again (v2.1) and so far everything works. It's been stable like that for a view days now. I have no idea what causes these problems. I just hope it finally works. Very, very strange.