RasPi 3B - Noob Guide
Posted by: Obsydian on 20 November 2018
If i wanted to setup to Raspberry Pi to use Bubble to stream Tidal to my Naim streamer, what else do I need and how do i configure.
I understand the Raspberry Pi is a good solution, but do i need a bare bones version or one with a DAC built in.
Obsydian posted:dknk posted:Sounds like a plan Guinnless, but the bubble install .deb file contains a static ffmpeg. However, when bubble starts up it does not find it. Even if you install ffmpeg by apt-get it still does not see it after a restart, not sure why. So I tried another Bubble install method from their site, I think you mentioned it earlier.
sudo apt-get install ffmpeg
cd
mkdir bubbleupnpserver
cd bubbleupnpserver
wget https://bubblesoftapps.com/bub...nPServer-distrib.zip
unzip BubbleUPnPServer-distrib.zip
chmod 755 launch.sh
./launch.sh > /dev/null 2>&1This all works, ffmpeg from apt-get is found and runs under user pi.
Thanks guys, the last one or two lines may have not worked, see script below, after the final command nothing happened and it did not progress to the next line, i.e. pi@raspberrypi:~/bubbleupnpserver $
pi@raspberrypi:~/bubbleupnpserver $ unzip BubbleUPnPServer-distrib.zip
Archive: BubbleUPnPServer-distrib.zip
inflating: BubbleUPnPServerLauncher.jar
inflating: LICENCE.txt
inflating: bcprov-jdk16-146.jar
inflating: launch.bat
inflating: launch.sh
pi@raspberrypi:~/bubbleupnpserver $ chmod 755 launch.sh
pi@raspberrypi:~/bubbleupnpserver $ ./launch.sh > /dev/null 2>&1
Typo, missed &
./launch.sh > /dev/null 2>&1 &
Seems to have worked, but refreshing ffmpeg audio or video not found no (ffmpeg not found)
pi@raspberrypi:~/bubbleupnpserver $ chmod 755 launch.sh pi@raspberrypi:~/bubbleupnpserver $ ./launch.sh > /dev/null 2>&1 & [1] 6966 pi@raspberrypi:~/bubbleupnpserver $ |
Of course you have ffmpeg installed?
You have made sure that any other versions of bubble are not running?
Obsydian posted:Guinnless posted:[@mention:76187608726740196] yes it all worked for me using the above method. ffmpeg was an older version but worked just fine but curiosity for the better of me and I decided to do an update by getting the static libs from ffmpeg's homepage.
When playing music you can see when the track changes from FLAC to WAV and the update made the transition quicker. I heard no SQ benefits but didn't really expect to. ????
No difference, a few rave on this forum and others it is as good as ripped
You misunderstood. I meant the ffmpeg update to the latest version didn't make any difference to SQ. It was a slightly tongue in cheek remark. A FLAC to WAV decompress is just that.
Bubble streaming is as good as ripped.
dknk posted:Of course you have ffmpeg installed?
You have made sure that any other versions of bubble are not running?
Other versions, sorry don't understand, as in the prior build ?
DKNK means run
ps -ef | grep -i bubb
There should only be one Bubble process running.
Thanks guys will try later.
I uninstalled Bubble Next, i found very limited options, but going back to Bubble UnPNP Android app may need to move it to my tablet, as on my mobile it needs to constantly run, otherwise i get license issues and connectivity.
ok i went through the whole sequence again (see below)
FFMEG - does say it installed, but still not showing as not found in the Bubble Server Status
pi@raspberrypi:~ $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version (7:3.2.10-1~deb9u1+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Does look i have two Bubble versions now, how do i kill one ?
pi@raspberrypi:~ $ ps -ef | grep -i bubb
root 381 1 7 15:44 ? 00:00:33 java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -jar BubbleUPnPServerLauncher.jar -dataDir /root/.bubbleupnpserver -httpPort 58050 -httpsPort 58051 -nologstdout
pi 1771 997 49 15:51 pts/0 00:00:16 java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -jar BubbleUPnPServerLauncher.jar
ok managed to close one, appears only one now running (see below), but same issue still FFMPEG not found
pi@raspberrypi:~ $ ps -ef | grep -i bubb
root 415 1 3 15:58 ? 00:00:31 java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -jar BubbleUPnPServerLauncher.jar -dataDir /root/.bubbleupnpserver -httpPort 58050 -httpsPort 58051 -nologstdout
pi 1426 1149 0 16:12 pts/0 00:00:00 grep --color=auto -i bubb
Also just tried to install FFMPEG (though command above says installed ???) using the instructions at https://www.johnvansickle.com/ffmpeg/ but without success at the last step folder was not created.
I used the above URL and it worked flawlessly. Did you follow the FAQ page?
How are you coming to the conclusion that Bubble can't find ffmpeg?
What does ffmpeg -version give you?
I am assuming FFMPEG installed, reference the commands below:
pi@raspberrypi:~ $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version (7:3.2.10-1~deb9u1+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Why do i think FFMPEG is not installed
From the BubbleUPnP IP login status panel, i see the following, so assume FFMPEG issue
Status
<colgroup><col /></colgroup>
Version: | 0.9-update30 | ||
Audio Transcoding supported: | no (ffmpeg not found) | ||
Video Transcoding supported: | no (ffmpeg not found) | ||
Image Transcoding supported: | yes |
Following the FAQ at the URL, all went fine until the command below, after that i get the error directory does not exists
Now I have the directory "ffmpeg-git-20180203-64bit-static".
$ ls ffmpeg-git-20180203-64bit-static ffmpeg ffmpeg-10bit ffprobe GPLv3.txt manpages model qt-faststart readme.txt
You may have two ffmpeg build in different locations with one of them being corrupt.
Run
whereis ffmpeg
mine reports
ffmpeg: /usr/local/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
Run
sudo apt-get remove ffmpeg
to remove the standard build.
And then follow the instructions here to the letter
https://www.johnvansickle.com/ffmpeg/faq/
Afterwards you'll need to logout and back in so you pick up the updated profile.
Then run
ffmpeg -version
and I get on mine
ffmpeg version N-47455-g1096614c42-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libxml2 --enable-libxvid --enable-libzimg
Still getting stuck at this point
Now I have the directory "ffmpeg-git-20180203-64bit-static".
$ ls ffmpeg-git-20180203-64bit-static ffmpeg ffmpeg-10bit ffprobe GPLv3.txt manpages model qt-faststart readme.txt
pi@raspberrypi:~ $ ls ffmpeg-git-20180203-64bit-static
ls: cannot access 'ffmpeg-git-20180203-64bit-static': No such file or directory
pi@raspberrypi:~ $ ffmpeg ffmpeg-10bit ffprobe GPLv3.txt manpages model qt-faststart readme.txt
bash: ffmpeg: command not found
Whoa, Whoa, Whoa...Obysdian, Guinnless. I have a suggestion. This thread has gone off the rails. Fighting one little fire after another. This is a learning RaspPi thread right? Let's put a BIG TORCH to this and start over. Too many things are installed, not installed, duplicated, etc.
Obsysdian, installing Bubbleupnpserver on Raspbian is very straight forward and should not be this complicated. I propose that you just stop now. Wipe that SD Card and reinstall a bare bones Raspbian OS again. You are somewhat aware how to do it, so doing it again should be easier. When you get the bare bones installed and are able to log in, come back and let us know. From a bare bones fresh install with no unknown things attempted, you should be able to get Bubble up and running in just a half dozen commands. Really, it is that simple. Agree? No harm done, and you'll be better off and even more experienced.
My .02 cents worth.
Agree DKNK, I was thinking clean slate.
Also as you mention the thread was intended as a simple and easy guide to get up and running.
Yes DKNK that's a good plan.
Morning gents, so new 128GB microSD (nice Samsung one spare from an upgrade).
1. Installed Raspian - ALL OK
2. Install Java and Bubble - ALL OK (Note said Java already installed
sudo apt-get install oracle-java8-jdk
wget https://launchpad.net/~bubbleg...server_0.9-5_all.deb
sudo dpkg -i bubbleupnpserver_0.9-5_all.deb
sudo systemctl start bubbleupnpserver
sudo systemctl enable bubbleupnpserver
3. Bubble logged in and configured, note at work so created a WIFI hotspot off my mobile
Odd as the connection worked for all updates, quite a few MB, but in the Bubble Server Config i do have an error "HTTP: ERROR: Cannot connect. Check that the public host name is valid and that port 58050 is opened on your router".
In addition same error message
Status
Version: | 0.9-update30 | ||
Audio Transcoding supported: | no (ffmpeg not found) | ||
Video Transcoding supported: | no (ffmpeg not found) | ||
Image Transcoding supported: | yes |
Note i then also ran the JohnVanSickle update, again final step same issue folder not found, what i did spot was a possible error, my setup is showing amd64 and the URL FAQ shows 64bit
ffmpeg-git-20181126-amd64-static/ffmpeg
ffmpeg-git-20181126-amd64-static/GPLv3.txt
pi@raspberrypi:~ $ ls ffmpeg-git-20180203-64bit-static
ls: cannot access 'ffmpeg-git-20180203-64bit-static': No such file or directory
Raspian is not a 64 bit operating system. And AMD64 is the wrong CPU.
The one you want is below assuming a Pi 3 or above (I'm not sure about older models). Note there are two links in that line - the "md5" part contains the hash you need to check. Or for testing purposes you could have just installed the default ffmpeg -
sudo apt-get install ffmpeg. This works fine with Bubble.
armhf: ffmpeg-git-armhf-static.tar.xz - md5
There is an issue with the bubble .deb install, it can't find ffmpeg. Already noted earlier! Uninstall that! Stop with the staitic ffmpeg install!
Remove the deb install
dpkg-P bubbleupnpserver
Do the manual install..
sudo apt-get install ffmpeg
cd
mkdir bubbleupnpserver
cd bubbleupnpserver
wget https://bubblesoftapps.com/bub...nPServer-distrib.zip
unzip BubbleUPnPServer-distrib.zip
chmod 755 launch.sh
./launch.sh > /dev/null 2>&1 &
This works!
I haven't had the time or inclination to figure out why the .deb install fails to see ffmpeg, even though it says it installs it's own static version. Whatever, the above method of downloading the zip install works just fine.
Gents once again thanks for your patience and guidance, i decided to start over and ...
Easy peasy, the error was as DKNK mentioned above and also GUINNLESS.
Hopefully the last question, then we can hopefully sit back and enjoy the music ...
In the Bubble Server setup (below) i set Audio format to WAV, is anything else required?, i assume thereafter it is all seemless?
Audio decoding to PCM (FFmpeg) | ||||||||||||
|
Another silly question when controlling the Bubble Android App, which is the renderer, i assume the Naim (Openhome), NOT the BubbleUPnP (Openhome) ?
And how to i determine if it is actually transcoding, or is that down to my ears ?
Glad you got there.
Yes Naim is the renderer. In Bubble's (many) options you can select the option to display bit rate/format etc. When a track starts it will briefly shows as FLAC and then turn to WAV.
Decode audio to PCM for: "All audio formats + constraints below"
Audio format: "Auto"
Gapless should be ticked.