Docs/Connect With Foobar2000.md

This feature allows you for example to stream to your work PC your music and videos from your home Media Server.

foobar2000 is a Windows program but it can run on other platforms through the Wine project. On macOS, the easiest way to install foobar2000 is through Wineskin.

Connecting with foobar2000

First, you must make sure the status page of BubbleUPnP Server shows that it is accessible from the Internet.

You can access your Media Server from the Internet for streaming music and videos on Windows, using the foobar2000 music player as the client.

After installation, in the View menu of foobar2000 select “UPnP Browser”. The UPnP Browser window displays all your discovered LAN Media Server allowing browsing an playing music as shown in the left screenshot.

In the view Menu, select “Add remote Internet UPnP Server…” and enter BubbleUPnP Server connection settings (screenshot):

  • the public hostname of BubbleUPnP Server with the protocol (http or https) and port. For example: http://1.2.3.4:5081 or https://1.2.3.4:5081 It is recommended that you use https whenever possible
  • the login and password you defined in the “Network and Security tab” of BubbleUPnP Server
  • If you are behind a HTTP proxy, you must set it before connecting with “Configure http proxy settings…” or in File > Preferences > Tools > UPnP > Browser

TIP: If you are on a corporate network only allowing outgoing HTTP traffic on port 80, you can setup BubbleUPnP Server to run on port 80 (provided you have no other web server using this port). For HTTPS, use port 443.

After clicking OK and if the connection to BubbleUPnP Server is successful, the UPnP Browser tree will show a new Media Server named “BubbleUPnP Server () [Internet]”:

This “Super” Media Server lists all your Media Servers on your remote LAN for which the setting “Make this Media Server available in Android BubbleUPnP and foobar2000 for Internet access” is enabled in BubbleUPnP Server (in the Media Servers tab).

To disconnect or remove the BubbleUPnP Server “Super” Media Server from the UPnP Browser, right click its root node and select “Remove server” in the context menu.

Note that you can integrate the “UPnP Browser” as a panel in the main foobar2000 window to avoid having a separate floating window. Here are basic instructions to do so:

  • make sure the standalone “UPnP Browser” window is closed
  • enter layout editing mode: View > Layout > Enable layout editing mode
  • right click in an existing panel
  • select “Replace UI Elements…”
  • select a splitter in the list
  • right click again in the new created area and select “Replace UI Elements…” again
  • in the list select “UPnP Browser”
  • exit layout editing mode: untick View > Layout > Enable layout editing mode

Transcoding audio to mp3

As with Android BubbleUPnP as a client, it is possible to transcode audio on the fly when accessing your Media Servers with foobar2000. Unlike Android BubbleUPnP, the transcoding settings are configured in BubbleUPnP Server, in the “Settings / foobar2000 remote access” tab.

  • Max audio bitrate: all files whose bitrate is greater than the specified bitrate will be transcoded to the specified bitrate. If bitrate is unknown, transcoding is performed. Set to “None” to disable all transcoding.
  • Apply Max audio bitrate only to lossless audio: if enabled, only lossless files (FLAC, ALAC, …) are applied the Max audio bitrate rule so only lossless files will possibly be transcoded. This prevents any lossy->lossy transcoding which should be avoided if possible, if audio sound quality is important.

Transcoded files will not be seekable in foobar2000.

Changing these settings will only take effect in foobar2000 when browsing folders that were not previously browsed. To apply changes on browsed folders, you must disconnect/reconnect the BubbleUPnP Server “Super” Media Server.

It is possible to override server transcode settings (only lossless audio) in foobar2000, in Files -> Preferences > Tools > UPnP > Browser > Remote Internet Servers:

Playing videos

It is also possible to play videos from BubbleUPnP Server. To play a video:

  • Browse to the video folder using the UPnP Browser
  • In the “UPnP Browser Selection” playlist, double-click the video. Then select a video player app (VLC, …) to start playback. You can alternatively open the video with context menu > UPnP Controller > Open …
  • It is possible to set video transcoding in foo_upnp settings, in Files -> Preferences > Tools > UPnP > Browser > Remote Internet Servers > Video transcoding