Jump to content
IGNORED

GentooPlayer


Recommended Posts

On 1/8/2020 at 9:42 PM, antonellocaroli said:

if you have squeezelite c-3po resample you don't need...

anyway, you can try it yourself if you want... it's pretty simple...

 

gp-update

emerge-webrsync  (only if you've never done it, it takes a while to sync with the repo gentoo)

then 

USE="flac mad mpg123 resample" emerge --ask squeezelite

then add to the squeezelite configuration file (sqc command)

values for resample

ex. -u hMX

 

http://manpages.ubuntu.com/manpages/trusty/man1/squeezelite.1.html

 

the options file should become something like this:

 

SL_OPTS="-C 1 -W -D :u32be -o hw:CARD=J20,DEV=0 -r 44100-384000 -a 40:3::0 -u hMX -n GentooPlayer -m 00:f0:4c:68:d1:47"

 

or

 

SL_OPTS="-C 1 -W -D :u32be -o hw:CARD=J20,DEV=0 -r 44100-384000 -a 40:3::0 -u vLX -n GentooPlayer -m 00:f0:4c:68:d1:47"

 

or

 

SL_OPTS="-C 1 -W -D :u32be -o hw:CARD=J20,DEV=0 -r 44100-384000 -a 40:3::0 -u vLX:2:6 -n GentooPlayer -m 00:f0:4c:68:d1:47"

 

etc

 

-u <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response>

Hi

   I have been using squeezelite-R2 so far, but I was intriguesd by this resample things and I wanted to try....

Before recompiling squeezelite, I traied to start it... but it crashes!

I0m using the 31/12/2019 Kernel for RPI 3B+.

 

This is what I did after gp-update:

 

GentooPlayerRpi64 ~ # sqr

 * WARNING: networkaudiod is already stopped

 * WARNING: mpd is already stopped

 * WARNING: upmpdcli is already stopped

 * WARNING: roonbridge is already stopped

-bash: /etc/init.d/roonserver: No such file or directory

 * WARNING: squeezelite-R2 is already stopped

 * Stopping squeezelite ...

 * start-stop-daemon: no matching processes found                                           [ ok ]

 * Starting squeezelite ...                                                                 [ ok ]

GentooPlayerRpi64 ~ # /etc/init.d/squeezelite status

 * status: crashed

GentooPlayerRpi64 ~ # 

 

Am I doing something wrong?

Something I can do to tray fix?
 

I tried activating the log, but I only a get a zero length files in /var/log:
 

GentooPlayerRpi64 ~ # ls -l /var/log/squeezelite.log 

-rw-r--r-- 1 squeezelite squeezelite 0 Jan 11 12:23 /var/log/squeezelite.log

 

 

Link to comment
4 minutes ago, antonellocaroli said:

can you show me the result of the command 

 

cat /etc/conf.d/squeezelite

 

 

 

GentooPlayerRpi64 ~ # cat /etc/conf.d/squeezelite

SL_OPTS="-C -W 1  -o hw:CARD=BossDAC,DEV=0 -r 44100-192000 -a 40:3:32:0 -b 2080:3528 -d all=debug -n GentooPlayer-sq -m 00:f0:4c:68:d1:48"

Link to comment
2 minutes ago, antonellocaroli said:

there was an error on the web interface, which I corrected a few days ago,

I don't know if you've given gp-update, but if you have, give it back...

and then reconfigure squeezelite...

he was wrong to put the time...

what ahi posted should be

 

SL_OPTS="-C 1 -W  -o hw:CARD=BossDAC,DEV=0 -r 44100-192000 -a 40:3:32:0 -b 2080:3528 -d all=debug -n GentooPlayer-sq -m 00:f0:4c:68:d1:48"

 

Thanks for the quick reply!

I'm in the middle of emerge-webrsync which is taking some time.... :)

I will try immediately after and report back.

franz

 

Link to comment
8 minutes ago, antonellocaroli said:

there was an error on the web interface, which I corrected a few days ago,

I don't know if you've given gp-update, but if you have, give it back...

and then reconfigure squeezelite...

he was wrong to put the time...

what ahi posted should be

 

SL_OPTS="-C 1 -W  -o hw:CARD=BossDAC,DEV=0 -r 44100-192000 -a 40:3:32:0 -b 2080:3528 -d all=debug -n GentooPlayer-sq -m 00:f0:4c:68:d1:48"

 

GentooPlayerRpi64 ~ # /etc/init.d/squeezelite status

 * status: started

GentooPlayerRpi64 ~ # ps -ef | grep squeeze

squeeze+  3286     1  0 20:23 ?        00:00:00 /usr/bin/squeezelite -f /var/log/squeezelite.log -C 1 -W -o hw:CARD=BossDAC,DEV=0 -r 44100 192000 -a 40 3  0 -b 2080 3528 -n GentooPlayer -m 00 f0 4c 68 d1 47

____________________________________________________

This is what I call a "customer service"!

A 20 minutes SLA to resolve an issue in "production".

Do not blame Italian Software Developers!

____________________________________________________

 

😎 😀😐

Link to comment

I tried to recompile squeezelite to enable upsample, but the process failed as follows:

 

GentooPlayerRpi64 ~ # USE="flac mad mpg123 resample" emerge --ask squeezelite

 

These are the packages that would be merged, in order:

 

Calculating dependencies... done!

[ebuild   R    ] media-sound/squeezelite-1.9.6.1205  USE="flac* mad* mpg123* resample*" 

 

Would you like to merge these packages? [Yes/No] Yes

 

>>> Verifying ebuild manifests

 

>>> Emerging (1 of 1) media-sound/squeezelite-1.9.6.1205::antonellocaroli

>>> Unpacking source...

mkdir: cannot create directory ‘/usr/portage/distfiles/git3-src’: Permission denied

 * ERROR: media-sound/squeezelite-1.9.6.1205::antonellocaroli failed (unpack phase):

 *   Unable to create /usr/portage/distfiles/git3-src

 * 

 * Call stack:

 *     ebuild.sh, line  125:  Called src_unpack

 *   environment, line 3455:  Called git-r3_src_unpack

 *   environment, line 2539:  Called git-r3_src_fetch

 *   environment, line 2533:  Called git-r3_fetch

 *   environment, line 2301:  Called _git-r3_set_gitdir 'https://github.com/ralph-irving/squeezelite.git'

 *   environment, line  433:  Called die

 * The specific snippet of code:

 *           mkdir -p "${EGIT3_STORE_DIR}" ) || die "Unable to create ${EGIT3_STORE_DIR}";

 * 

 * If you need support, post the output of `emerge --info '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`,

 * the complete build log and the output of `emerge -pqv '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`.

 * The complete build log is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/build.log'.

 * The ebuild environment file is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/environment'.

 * Working directory: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work'

 * S: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work/squeezelite-1.9.6.1205'

 

>>> Failed to emerge media-sound/squeezelite-1.9.6.1205, Log file:

 

>>>  '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/build.log'

 

 * Messages for package media-sound/squeezelite-1.9.6.1205:

 

 * ERROR: media-sound/squeezelite-1.9.6.1205::antonellocaroli failed (unpack phase):

 *   Unable to create /usr/portage/distfiles/git3-src

 * 

 * Call stack:

 *     ebuild.sh, line  125:  Called src_unpack

 *   environment, line 3455:  Called git-r3_src_unpack

 *   environment, line 2539:  Called git-r3_src_fetch

 *   environment, line 2533:  Called git-r3_fetch

 *   environment, line 2301:  Called _git-r3_set_gitdir 'https://github.com/ralph-irving/squeezelite.git'

 *   environment, line  433:  Called die

 * The specific snippet of code:

 *           mkdir -p "${EGIT3_STORE_DIR}" ) || die "Unable to create ${EGIT3_STORE_DIR}";

 * 

 * If you need support, post the output of `emerge --info '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`,

 * the complete build log and the output of `emerge -pqv '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`.

 * The complete build log is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/build.log'.

 * The ebuild environment file is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/environment'.

 * Working directory: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work'

 * S: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work/squeezelite-1.9.6.1205'

GentooPlayerRpi64 ~ # 

Link to comment
10 hours ago, antonellocaroli said:

Ciao Franz,

 

chmod -R 755 /usr/portage

USE="flac mad mpg123 resample" emerge --ask squeezelite

Thanks,

   with chmod -R 755 I still got the same error of inability to create the folder under /usr/portage/distfiles/.

So, even if it's not recommended, I went with chmod -R 777 and the compilation succeeded....
 

So, to recap, the entire process I followed to recompile squeezelite is this:

 

  • gp-update
  • emerge-webrsync  
    •  I had never done it, so I waited for a while for this to complete....
  • chmod -R 777 /usr/portage 
  • USE="flac mad mpg123 resample" emerge --ask squeezelite

 

At this point I was able to set Archimago "Extremus" parameters for resampling adding  
-R v::3.05:28:99.7:100:45 to squeezelite configuration, using command sqc:

 

This is my resulting squeezelite configuration in file "/etc/conf.d/squeezelite":


SL_OPTS="-C 1 -W  -o hw:CARD=BossDAC,DEV=0 -r 44100-96000 -a 40:3::0 -b 2080:3528 -R v::3.05:28:99.7:100:45  -n GentooPlayer -m 00:f0:4c:68:d1:47"

 

Note: as a positive side effect, adding the support for flac, Squeezelite is now working nicely with Qobuz.

 

In this way in my LMS interface (LMS Material Skin) I have Squeezelite GentooPlayer for resampled listening and one Squeezelite GentoPlayer-R2 for bitperfect listening. Super cool!
 

Squeezelite-Normal-and-R2.jpg.a62442ec1d0ea431f8438c8fa69f69c2.jpg

 

 

Link to comment
On 1/9/2020 at 3:33 PM, DomieMic65 said:

Thank you but I don’t think I’m such an expert user to implement my own upsampling recipies. 
I understand some things up to a point but no more!

When I was using piCore I relied on some ready stuff I found on line in Archimagos blog etc... and I implemented them inside the piCore GUI! 
If I try such a thing in Gentoo most probably I will make a mess!

 

Regards 

Michael!

 

Hi DomieMic65, I followed Antonello suggestions to recompile Squeezelite and enable reasmpling.

If you want to give it a try, you can see a recap of the procedure in my previous post...

Regards

Link to comment
4 hours ago, antonellocaroli said:

This is an image test for rpi3, with wifi support.

Only with "ST" kernels.

 

At boot time if it doesn't find an online network, create a wifi HotSpot, with IP 192.168.42.1.
Reachable from any wifi device.
It is displayed among wifi networks with the name gentooplayer, the password is gentooplayer to connect.

Once connected you can open any app for ssh (terminus, putty, ssh on linux, etc) to access with user:root pw:raspirrot ip: 192.168.42.1
or a web browser and connect to 192.168.42.1:5000

Then configure wifi with the wificonfig command from the terminal or from the configure Wi-Fi webinterface.

 

I tested with various devices, all of them connected to the HotSpot on the first shot, simply by entering the password, but on one I had to set the ip, i.e. from DHCP to ip static...in this way:

 

Screenshot_20200111-124543.thumb.jpg.b22645663385010cea203f89598cd013.jpgScreenshot_20200111-185813.thumb.jpg.e39511d7e9bb35c4c045ee7846e6e2d3.jpgScreenshot_20200111-185756.thumb.jpg.1605d8c1a6df7df8144f66ff73419b8f.jpg

 

 

 

if someone can do a test @franz159  @clipper

 

 

I will test asap and report back!

Thanks a lot

 

Link to comment
6 hours ago, antonellocaroli said:

This is an image test for rpi3, with wifi support.

Only with "ST" kernels.

 

At boot time if it doesn't find an online network, create a wifi HotSpot, with IP 192.168.42.1.
Reachable from any wifi device.
It is displayed among wifi networks with the name gentooplayer, the password is gentooplayer to connect.

Once connected you can open any app for ssh (terminus, putty, ssh on linux, etc) to access with user:root pw:raspirrot ip: 192.168.42.1
or a web browser and connect to 192.168.42.1:5000

Then configure wifi with the wificonfig command from the terminal or from the configure Wi-Fi webinterface.

 

I tested with various devices, all of them connected to the HotSpot on the first shot, simply by entering the password, but on one I had to set the ip, i.e. from DHCP to ip static...in this way:

 

Screenshot_20200111-124543.thumb.jpg.b22645663385010cea203f89598cd013.jpgScreenshot_20200111-185813.thumb.jpg.e39511d7e9bb35c4c045ee7846e6e2d3.jpgScreenshot_20200111-185756.thumb.jpg.1605d8c1a6df7df8144f66ff73419b8f.jpg

 

 

if someone can do a test @franz159  @clipper

 

 

It does not work for me on my Macbook.

The connection to the hotspot does take place, but it is not functional:

GentoWifi1.thumb.png.5210bc3387085e154cbc231d6833a934.png

GentoWifi2.thumb.png.0b3d00495c0ca8c853b8bf2ca3a903a2.png

 

And after a minute or so the wifi icon changes to indicate a not working network with an exclamation mark in the middle.

GentoWifi3.png.c24199932727cf2da389f23775fad60d.png

 

Link to comment
8 minutes ago, DomieMic65 said:

Yes I have seen your post thnx for the feedback!!!!

 

I enabled Squeezelite and played with it a little... to try 
Apart from re/upsampling, it crashes when I try to play native 192Khz files (I use Allo Digione for time beeing... I didn't try with USB). 96KHz it's OK.
I had the same problem with Sq.lite R2 but Antonello fixed it!
Also I can't play Qobuz (LMS plug-in. With R2 no problem). Strangely Spotty plays just fine!!
 

Didi you recompile squeezeleite as per the process indicated by Antonello that I sumamrized in post #652?

I'm asking because alzo for me Qobuz was not working, but it is now OK after recompiling squeezelite.

Link to comment
2 hours ago, antonellocaroli said:

Have you tried setting up a fixed IP on your Macbook? and not let it use dhcp for what connection?
Have you tried iphone?

I tried setting Static IP on the Mac and it worked:

  1.  selection of the gentooplayer wifi network
    1-Select-Network.jpg.9e2f6cd0eefcdc27367df4316248f25f.jpg
     
  2. setting static IP 192.168.42.10 manually on Mac
    2--Manual-IP-setting.jpg.a67c51b36e502922a24dda72f6294d58.jpg
     
  3. connection to the web interface at IP 192.168.42.1:5000
    3-Systeminfo.thumb.jpg.9c668c424a9292f102298419ceff90e5.jpg
     
  4. configuration of the access to actual wifi
    4-WiFi-COnfiguration.jpg.9dd31e7fd9c3398122f41a389bf20561.jpg

In this way you potentially have also a portable Gentooplayer, just connect it to your smartphone personal hotspot!

 

@Antonello, can I use this image also on a raspberry pi4, or does the wifi feature need to be compiled separately for it?

 

Link to comment
5 hours ago, DomieMic65 said:

after some trial and error i managed to recompile squeezelite 

Qobuz works

I didn't manage to upsample though

and 192KHz still crash

 

For the upsample you need to update the squeezelite configuration under "/etc/conf.d/squeezelite" and add the parameter -R and its values like in

SL_OPTS="-C 1 -W  -o hw:CARD=BossDAC,DEV=0 -r 44100-96000 -a 40:3::0 -b 2080:3528 -R v::3.05:28:99.7:100:45  -n GentooPlayer -m 00:f0:4c:68:d1:47"

You can edit squeezelite configuration using command sqc from terminal/putty.

To use 192Khz, you need to increase the Max resolution value,  for example as in -r 44100-192000

 

 

Link to comment
On 1/12/2020 at 9:48 PM, antonellocaroli said:

No, you can't.
But if it's interesting and working, I can implement it on both rpi3 and rpi4 images.

 

From my POV it would be good to have the ST kernel with WiFI support, I would be using that as my "portable" GentooPlayer, since I travel a lot for work....

Link to comment
3 hours ago, DomieMic65 said:

i get this msg

"mkdir: cannot create directory ‘/mnt/samba/GentooNAS_Music’: File exists"

I noticed this too when I mounted a network share (in my case I was using cifs, but it is the same).

The script attempts to creates the mount point every time using the "mkdir" command and it fails if that folder already exists, since it was created the previous time the script had been launched.

In your case the directory "GentooNAS_Music" already exists, it was created the previous time you mounted (or maybe attemted to mount) the disk.

You need to connect through ssh, delete the folder "GentooNAS_Music" and retry the mount operation.

Link to comment

Does anybody "registered" the Squeezelite instance running on Gentooplayer in mysqueezebox.com?

That is required if you want to activate the Tidal squeezelite application for Tidal streaming.

I can do that with all my other squeezelite instances, but not for the ones running into Gentooplayer.

The Squeezelite player (named GentooPlayer-R2 in my case) is perfectly working and recognized in LMS setting, but when I go to the "mysqueezebox.com" tab and put credentials for that and click apply, the player is not added to the "myplayers" list in mysqueezebox.com.

Everything works fine whe I do the same with Moode Squeezelite instances.

Anybody has any clue on what could be going wrong?

Thanks

Link to comment

I tried to use the new Image supporting WI-FI on my pi4 and the story went more or lesse like his...

 

1) flashed the microSD and booted

2) connected to the gentooplayer hotspot generated wifi network.

DHCP did not work and I had to setup the IP address manually,

IP 192.168.42.22

subnet 255.255.255.0

router 192.168.42.1

3) configured the wifi parameters 

with the SSID of my iPhone Personal Hotspot and its password

4) rebooted

and

I'm stuck:

- no connection to the configured wifi (iPhone personal hotspot)

- no gentooplayer hotspot

I rebooted but still no joy.

Tomorrow I will start all over again by flashing the microSD card again, but I have the impression that the gentooplayer hotspot generation process is failing for some reason,.

But unfortunately under the condition I described above I'm afraid it is not really possible to investigate further.

Any idea on what could have gone wrong?

 

Link to comment
16 hours ago, antonellocaroli said:

2) Yes, the hotspot doesn't support DHCP, in fact, I wrote it here .

4) 

practically when configuring the wifi is "deleted the search function at network startup and if not found starts the hotspot".
So if by chance you make a mistake in the wifi configuration anyway the hotspot is not started...
This probably wasn't a good choice.
I'm going to put the network search back on...

gp-update before using wificonfig solves this...

 

 

But if you don't have internet at startup you can't use gp-update... so I'll have to change the image anyway...

but if you can connect it to a lan and do gp-update and then try the wifi configuration...at least let's see if the wifi configuration works...before I change the image...thanks

 

Will test next week-end when back at home and I will have a wired Ethernet... Sorry, but I'm away for work (that's why I was trying to use wifi...).

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...