Jump to content
IGNORED

GentooPlayer


Recommended Posts

Thanks you for the fast response! 

I already tried the 2nd version prior to my question, but I could not make it further than this...

GentooPlayerRpi4-64 ~ # emerge --ask brutefir

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies... done!

!!! All ebuilds that could satisfy "brutefir" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-sound/brutefir-1.0k-r2::gentoo (masked by: missing keyword)

 

 

I haven't tried the first option yet. I'm using the bubbleUPnPServer, will I need make some changes if not using LMS ?

 

Thank you!

Link to comment

I tried to install / setup it the ordinary way so:

 

like you said:

echo "media-sound/brutefir **" >> /etc/portage/package.accept_keywords/my_key

emerge --ask brutefir

 

that took some time but no big error.

To actually use bruteFIR I created a sound card:

 

modprobe snd-aloop

aplay - L shows the aloe soundcard, no problem.

 

Next step would be to execute this on every start. But I can't see through with these aliases.

 

Then one has to tell ALSA, that aloop is the default sound card. Well, thats difficult to do since you did a good job with implementing the easy sound card switching option. So. I'm petty much stuck here...

 

I would then I created a bruteFIR config file to tell that input is aloop, output is my real output.

 

 

Link to comment

Well, I came this far now. Is this problem possibly to the fact that I'm trying to do this on a RaspberryPi? 😃

 

GentooPlayerRpi4-64 ~ # brutefir /home/brutefir/brutefir_config

BruteFIR v1.0k (March 2009)                                   (c) Anders Torger

Internal resolution is 64 bit floating point.
Creating 4 FFTW plans of size 8192...finished.
Loading 2 coefficient sets...finished.
Failed to find module "alsa". None of the following files existed:
  "./alsa.bfio"
  "/usr/local/lib/brutefir/alsa.bfio"
  "/usr/local/lib/alsa.bfio"
  "/usr/lib/brutefir/alsa.bfio"
  "/usr/lib/alsa.bfio"

 

 

Link to comment
11 minutes ago, antonellocaroli said:

@Jan.ho in brutefir_config change

 

modules_path: ".";

in

modules_path: "/usr/lib64/brutefir/";

 

Thanks! already found it through your "find" command. My lack of simple command line skills is obvious sorry.

 

Music is playing now, it sounds rather strange than good but I guess I mixed something up with the filters...

Thank you very much! 

Link to comment

Do you think this is actually doing anything? 

brutefir is running:

 

GentooPlayerRpi4-64 ~ # brutefir /home/brutefir/brutefir_config

BruteFIR v1.0k (March 2009)                                   (c) Anders Torger

Internal resolution is 64 bit floating point.
Creating 4 FFTW plans of size 8192...finished.
Loading 2 coefficient sets...finished.
Dither table size is 882001 bytes.
Generating random numbers...finished.
Realtime priorities are min = 2, usermax = 1, mid = 3 and max = 4.
Warning: no support for clock cycle counter on this platform.
  Timers for benchmarking may be unreliable.
Filters in process 0: 0 
Filters in process 1: 1 
Realtime priority 3 set for input process (pid 3184)
Realtime priority 4 set for filter process (pid 3186)
Realtime priority 4 set for filter process (pid 3185)
Realtime priority 3 set for output process (pid 3187)
Fixed I/O-delay is 8192 samples
Audio processing starts now

 

audio


;-)
AUDIO CARDS
CARD	TYPE			ADDRESS			NAME
--------------------------------------------------------------------------------------------------------
    card0	Internal Audio card	card0 --> -- 		RPi-DAC HiFi pcm1794a-codec-0
card0	STATUS  --> access: RW_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 4096 buffer_size: 131072
--------------------------------------------------------------------------------------------------------
card1	Internal Audio card	card1 --> -- 		Loopback PCM 
card1	STATUS  --> access: RW_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 4410 buffer_size: 22050
--------------------------------------------------------------------------------------------------------

 

 

But this is Bcmstat:

 

 Config: v0.5.5, args "xgpd10", priority lowest (+19)
   Board: 4 x  cores available, performance governor (Pi4 Model B rev 1.1, BCM2838 SoC with 2GB RAM by Sony UK)
  Memory: 1014MB (split 998MB ARM, 16MB GPU)
HW Block: |   ARM   |  Core  |  H264  |    SDRAM    |
Min Freq: |  600MHz | 250MHz |   0MHz |   3200MHz   |
Max Freq: | 1500MHz | 500MHz | 500MHz |   3200MHz   |
Voltages: |         0, 0.8438V        | +0, 1.2000V |
   Other: temp_limit=85
Firmware: Feb 12 2020 12:36:42, version c3c8dbdf147686fb0c3f32aece709d0653368810 (clean) (release) (start_cd)
  Codecs: none
  Booted: Wed Jun 17 19:38:03 2020

Time         ARM    Core    H264 Core Temp (Max)  IRQ/s      RX B/s      TX B/s  %user  %nice   %sys  %idle  %iowt   %irq %s/irq %total   cpu0   cpu1   cpu2   cpu3 GPUMem Free MemFreeKB / %used
======== ======= ======= ======= =============== ====== =========== =========== ====== ====== ====== ====== ====== ====== ====== ====== ====== ====== ====== ====== =========== =================
20:15:09 1500Mhz  500Mhz    0Mhz 53.07C (53.07C)    403       1,418       2,305   0.47   0.05   0.17  97.62   0.00   0.00   0.02   2.38   0.94   3.72   1.33   3.62   9M ( 90%) 1,596,152 / 18.3%
20:15:19 1500Mhz  500Mhz    0Mhz 53.07C (53.07C)    369         649       1,218   0.47   0.00   0.15  97.71   0.02   0.00   0.00   2.29   1.30   3.58   0.90   3.29   9M ( 90%) 1,595,960 / 18.3%
20:15:29 1500Mhz  500Mhz    0Mhz 53.56C (53.56C)    377         721       1,289   0.32   0.02   0.20  97.68   0.02   0.00   0.02   2.32   1.60   3.69   0.41   3.59   9M ( 90%) 1,624,192 / 16.9%
20:15:39 1500Mhz  500Mhz    0Mhz 52.58C (53.56C)    383         683       1,302   0.22   0.02   0.15  97.78   0.00   0.00   0.02   2.22   1.40   3.29   0.90   3.29   9M ( 90%) 1,623,900 / 16.9%

 

 

Link to comment
18 hours ago, Zauurx said:

Out of curiosity, there is no way to integrate a VST plugin ?? I don't even know if this is possible or already done on an rpi ?
A small idea behind the head .. or a search for a solution for this:
https://www.homeaudiofidelity.com/english/plugins/


I can tell you, that using beuteFIR works really good! (Even on a raspberry Pi4) 

I stream music (from Tidal) via BubbleUPnP to the MPD then through BruteFIR to a i2s connected DAC. All on one little device.

 

Maybe it was a little more work to install BruteFIR, but compared to Volumio, this is a big step Up! This GentoPlayer is one fine, stable working server/player. It is fast and stable, and sounds great. That’s what we want, no?

 

Special thanks to AntonelloCaroli !

Link to comment
56 minutes ago, antonellocaroli said:

@Branko

unfortunately the image for BBB hasn't been updated for a long time, actually I don't even know if it's going to be for it.... I don't think there are many users who use it....


NoNoNo! Please keep the BBB with botic updated! My donation was already made :D and the rPi with BruteFIR you just helped me on was for my dad, and I’m a believer in the BBB with external Master clock input for real high quality Audio out of a SBC. I have one running, but not yet changed to GentooPlayer. And there are many other believers at diyaudio:com, too. 

Link to comment

I'm trying to configure an audio Input via USB.

 

lsusb -v :

Bus 001 Device 003: ID 0a4a:6a02 Ploytec GmbH 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0a4a Ploytec GmbH
  idProduct          0x6a02 
  bcdDevice            1.00
  iManufacturer           1 Ploytec GmbH
  iProduct                2 YELLOWTEC PUC2
  iSerial                 3 no serial number
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x00e4
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              480mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength       0x0034
        bInCollection           2
        baInterfaceNr(0)        1
        baInterfaceNr(1)        2
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             2
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bSourceID               1
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0602 Digital Audio Interface
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               3
        iTerminal               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  1 frames
        wFormatTag         0x0001 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           3
        bBitResolution         24
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0126  1x 294 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress         133
        AudioStreaming Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay         0x0000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0003  1x 3 bytes
        bInterval               4
        bRefresh                5
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           4
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x012c  1x 300 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x012c  1x 300 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           4
        bDelay                  1 frames
        wFormatTag         0x0001 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           3
        bBitResolution         24
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0126  1x 294 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioStreaming Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         2 Decoded PCM samples
          wLockDelay         0x0000
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1



GentooPlayerRpi4-64 ~ # cat /etc/modprobe.d/alsa.conf
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
snd-aloop

alias snd-card-2 snd-usb-audio 
alias sound-slot-2 snd-card-2 
options snd-usb-audio index=2 

# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371

##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=3

  
  
GentooPlayerRpi4-64 ~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpirpidac [snd_rpi_rpi_dac], device 0: RPi-DAC HiFi pcm1794a-codec-0 [RPi-DAC HiFi pcm1794a-codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  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 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  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 2: PUC2 [YELLOWTEC PUC2], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
    
    
    
BUT:

GentooPlayerRpi4-64 ~ # arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  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 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  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
    
 
   
So, there's no sound recording device. What did I miss?
    
My Plan is, to stream the Input from the USB-device through JACK into BruteFIR... long way to go
Link to comment
  • 2 weeks later...

Hello, my bruteFIR is working with mod so far, that's good.

I got my USB input to be seen by arecord -l, also good. But, here it comes...

 

2013-11-28
There was a typo in the last uploaded 1.0m release causing the S24_LE/S24_3LE formats to break for input. So if you downloaded 1.0m yesterday please do it again.

2013-11-27
BruteFIR v1.0m. Fixed a rare race condition bug and further synchronized sample formats with ALSA, 
so now S24_4LE means low 24 bits of 32 bit word. 
Thus if you used S24_4LE before you should use S32_LE now to get the old behavior.

2009-03-31
BruteFIR v1.0k. Refreshed JACK and ALSA I/O modules to catch up with changes in the APIs.

This is the Changelog from Brutefir. 

My USB-Input card can not output anything else than S24_3LE now guess whats the latest BruteFIR version available via gentoo packages? v1.0k. of course... That means brutefir does not accept S24_3LE and crashes on start.....

 

Is there any way to force this update or any idea how I can work around this?

Link to comment
  • 2 months later...

Hi,

 

I’m trying to get GP 3.0 started on a raspberry pi 4. (A new one, with a new SD Card, downloaded the proper image..) Power supply is a MeanWell 3 amp switching PS connected by a usb cable to RPi. 

 

I’m using etcher on Mac to copy the image on the SD card. 
 

The problem is, the raspberry does not boot from the SD card. The green LED blinks 4 times repeatedly like if there was no SD card. 
 

I downloaded Hi-Fi Berry OS to see if the new raspberry or the SD card is faulty, but this works right away. 
I tried it a second time. Still the same problem. 
 

What’s really strange is:

i already had a RPi4 with GP2.13 up and running some months ago. I even made a copy from that working image. So I copied the stored image to the new SD card hoping this would work, but no. Still the same blinking as if no SD card in RPi. 
 

Did someone encountered the same problem and might help?

 

Thanks. 

Link to comment
1 minute ago, antonellocaroli said:

Be warned, the first time it resizes the root.... so part of it restarts, restarts and then normal part....

I know that, and I waited for 10 minutes to do so. But sill nothing. 
16gb. 
 

and even so, the copy that I made was resized already. The copy had 16gb. But as I said. Both does not work. 

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...