cute70.jpg
CuteStudio Ltd.

SeeDeClip4 on Linux

Debian or Raspbian are the recommended Linux distributions.
Raspbian is based on Debian and both have HUGE online support if you run into trouble.

Click on any image to learn about it and how to install Linux and Raspbian:

linux_penguin.jpg
 + 
raspbian.jpg

SeeDeClip4 is very smooth and fast on Linux, the threading, file and socket/network IO is extremely efficient there which is why Linux is the choice of the internet.

You'll notice a significant speed boost by moving from Windows to Linux, and that means music imports, responsiveness and speed are all improved. Additionally you can run a Linux server for a year or more without it slowing down, running out of memory or crashing, it's an extremely reliable base for SeeDeClip4.

Debian 8 on a i7 makes a formidable server for big music collections accessible for all the family.

Note:
  • 'sudo apt-get' is a regular Linux system command and will require your password.
    These 'apt' commands install the up to date file importers for MP3, AAC, FLAC etc.

  • Read this for raspberry Pi network connectivity.

  • The previous php slave called phpslave.php is now obsolete and can be deleted.
    The new system includes the slave software in the SeeDeClip4 server distribution so you'll always be running the latest slave whenever you start up runslave.sh.
    The slave engine slave.php gets downloaded into /tmp and run from there every time the slave is run.

SeeDeClip4 headless slave

Turn your Raspberry Pi or other Linux box into a 24bit HiFi source! (Click on the image for information).
raspbian.jpg

Raspbian can support a headless slave that uses the direct ALSA 'aplay' utility to render the audio. This bypasses HTML5 and allows the full 24bit sound to be played to your DAC hooked up to the linux box.

Headless merely means there is no need for a screen or keyboard, just the Raspberry Pi (ideally mounted in a box) can be positioned next to your HiFi and either feed your DAC directly via USB or electrically isolated with a USB/Optical adapter. Any adapter capable of 24bit should be good for the job, the key aim here is to preserve detail and using 16bit here will lose some: it needs to be 24bit.

Task summary

  1. Download runslave.sh from SeeDeClip4's home page with your browser.
  2. Permissions:
    chmod +x runslave.sh

  3. Edit it for your system and requirements (see below).
  4. Run it on your headless audio slave:
    ./runslave.sh


1. Download/Install

You will need to download the runslave.sh shell script from the home page of the SeeDeClip4 you have installed, copy it to the raspberry Pi (or other linux machine).

You can do this using the command line if you like, for instance if SeeDeClip4 is running on 198.168.0.10:
wget 198.168.0.10:8000/runslave.sh -O runslave.sh

if you get 'command not found' you may need to install wget first:
sudo apt-get update
sudo apt-get install wget


2. Permissions

To allow it to run on the Pi:
Type
chmod +x runslave.sh


3. Edit/Configure

The file runslave.sh is designed to be fairly stable and will not be updated very often. You can edit this file to specify the bitrates, depth, card number etc. so the default settings become your own settings.

This is the section in runslave.sh that you can edit:

server=localhost # Where SeeDeClip4 is running.
server_port=8000
alsacard=1 # Use "aplay -l" to list the soundcard options. USB will usually be 1.
bits=16 # Some USB devices do not work with 24 bit will work with 32.
rate=1 # 1 is 1x, 2 is x2 for 44.1->88.2 and 48->96kHz


Type:
aplay -l

to list the soundcards.
This is aplay -L as in L for List, not the number 1. But use a small case L: l.

If you are using a USB sound card you'll probably need card number 1.

4. Run

Make sure that SeeDeClip4 is running on the same machine or network. If it's on the network you can type something like:

Then run it on the Pi like this:

./runslave.sh

or
./runslave.sh 192.168.0.108


If it wants to install standard audiotools you'll need to be connected to the internet and have sudo control the first time it's run.

You should now see it talking to the server. On the server (from a browser) go into the 'Remote' page and make sure the slave is selected at the top.
Play a track and check that the slave wakes up and you see a line starting with wget or aplay. If so you can now plug your DAC into the USB of the Raspberry Pi.

Troubleshooting

Troubleshooting
I get 'permission denied' Type chmod +x runslave.sh to allow it to run.
Slave cannot be seen by the Remote pageCheck the server addres you pass to runslave.sh script is correct.
You can find the IP address of the server on the home page.
No sound and the music skips from track to track
Type:
dmesg
to see that your USB device in indeed there. If it is, you may need to select a different card using the command line.
Type (that's a lower case L, not minus one):
aplay -l
And you should see this:
Pi{10} aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: U2S [PHIREE U2S], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: U2S [PHIREE U2S], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
Pi{11}

By default runslave uses ALSA card number 1. To use 0 or 2 etc. edit runslave.sh to change 'alsacard'.
Sometimes a track fails
to restart when unpaused
This is an issue with aplay being interrupted, sometimes it's silent when it continues and needs to be re-paused and re-continued to get the sound out again.

So just wait a second, pause it again and wait a second, then unpause it and it should start.
Perhaps one day it will be more tolerant to being paused, there is no workaround for this problem as the silence is invisible to Linux.


Disabling swap

You may wish to disable the swap disc as it will probably use the very slow SDcard in there with the system on, and the writes could cause sound dropouts. To do this you type:

  • sudo swapoff -a
  • sudo update-rc.d -f dphys-swapfile remove
  • sudo rm /var/swap


SeeDeClip4 server

Installation varies slightly for Linux because it assumes the user has some IT knowledge and is comfortable with the command line.
You can run the server and slave on the same box if it's fast enough and has enough memory.

The Linux version is a purely text-only program without a Run/Stop - it just sits there and runs, so click here: http://localhost:8000 to access it.


1. Download

Choose the version for your linux machine and download it.

SystemDownload link
Linux (32 bit) LINUX32_SeeDeClipV4.1.10.tgz (316.3kB)
Linux (64 bit) LINUX64_SeeDeClipV4.1.10.tgz (309.5kB)
ARM Linux (32 bit Raspbian) ARM32_SeeDeClipV4.1.10.tgz (295.3kB)

2. Install

The Linux download is a small tarfile that you need to expand. Then just install the importers and run the ./seedeclip4 program.
E.g. from the Terminal type in:

  • sudo apt-get update
  • sudo apt-get install flac mpg123 vorbis-tools libav-tools lame
  • tar -xf LINUX32_SeeDeClipV4.1.10.tgz
  • sync
  • cd LINUX32_SeeDeClipV4.1.10


3. Run

Simply type:

  • ./seedeclip4 &


To stop the program you have two options:

  1. Type fg followed by CTRL-C if you are still logged in.
  2. Or type:
    • killall seedeclip4


Copyright © 2007-2018, CuteStudio Ltd.
Page generated in 0.063s, Powered by Silk V1.2-0 from Cutestudio