Raspberry Pi - Music Server

Discussion in 'Nguồn phát từ máy tính' started by bazokaster, 16/4/15.

  1. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Như vậy anh sẽ cài LMS server vào Pi luôn chứ không phải vào PC. Trên PC mình sẽ điểu khiển LMS qua web.

    Anh lưu ý các trình tự sau:

    - Phải cài LMS server trước. Sau khi cài thành công. Restart PCP, kiểm tra xem LMS có start được chưa? Nếu OK mình sẽ config được LMS server qua giao diện web.

    - Sau khi vào LMS, install Airplay bridge. Phần cấu hình cho nó nhận được Airplay hơi khó chịu. Anh xem kỹ cái help này của tác giả, làm tới lui vài lần sẽ hiểu cách của nó làm việc. Cái khó chịu nằm ở chổ em bôi đỏ. Và anh phải có một khoảng chờ vài giây trước khi nó bắt tay được với AE.

    Squeeze2Raop – AirPlay bridge - User Guide
    ......................................

    2 AirPlay bridge Plugin
    The simplest way to use sq2r is to install the “AirPlay bridge” plugin on the system running LMS. If this is not practical and you need to install it on another computer, see Section 3 below.

    2.1 First Steps
    i. Go to the Settings, Plugins page on the LMS GUI.

    ii. Go to 'Additional Repositories' near the bottom. If this is not available, there should be an option to enable third party plugins. Tick this, and press 'Apply' at bottom right.

    iii. Add the following line to the list of additional repositories:

    development version: http://downloads.sourceforge.net/project/lms-to-raop/dev/repo-sf.xml

    stable version: http://downloads.sourceforge.net/project/lms-plugins-philippe44/repo-sf.xml

    Restart LMS.

    iv. You should now find that there is a new section listing the AirPlay plugin Tick this to make it available on the next LMS restart, and restart LMS.

    v. Go to the Settings, Advanced page on the LMS GUI and select the AirPlay bridge entry.

    vi. Turn on all your AirPlay devices.

    Tick the ’Start the Bridge’ tickbox, choose the executable for your platform if more than one is available and tick ‘Apply’ at the right-bottom of the page. As the ‘autosave’ option is ticked by default, a configuration will be generated automatically after ~30s, just wait and refresh the page to see it. You can optionally force configuration file generation by ticking ‘Generate’ (not recommended)

    From that point, you might be lucky and have sq2r and your players working with all built-in defaults


    vii. Make sure the ‘Start the Bridge’ tickbox is unticked

    viii. Edit the parameters if you need to (you can, for example, change the name of the player).

    ix. Save these values and restart the plugin by ticking the 'Start the Bridge' tickbox and press 'Apply'.

    x. The parameters on the plugin settings screen include most of those in the configuration file. See Section 5 for details of each configuration file parameter. You can edit the configuration file manually if you really need to.

    xi. If you get stuck, read Section 4 which may help you to choose different options.

    When ‘autosave’ is ticked, the configuration will be saved with an updated list of players at each network scan (see scanning option to change period). It is also possible to manually update your configuration file at any time by ticking ‘Generate’ (whether ‘Start the Bridge’ is ticked or not).

    2.2 Setting up the Codecs and conversion parameters
    By default sq2r supports pcm, aif, mp3,flc and aac. You can change (restrict, not add others) this using the <codec> parameter in the configuration file (see below) and choose to have LMS do some transcoding instead

    2.3 Start Playing Your Music
    Within a short time after restarting the plugin the renderers will appear as renderers in the LMS GUI and you should be able to play tracks as normal with any squeezebox device (or squeezelite, squeezeplay etc.).
     

    Attached Files:

    Last edited: 19/12/17
    mlab and viking like this.
  2. anhton82

    anhton82 Advanced Member

    Joined:
    19/8/10
    Messages:
    711
    Likes Received:
    653
    Thanks tml3nr nhiều nhé. Thanks Mr Phillipe and his team. Quả thật kết nối Pi3 với AE hơi bị loằng ngoằng. Nhưng có thế mới có cơ hội vọc vạch. Làm đúng theo sơ đồ của bạn là OK, cài LMS trên PC, LMS trên Pi3, add plugins ( khó và chuối nhất bước này ). Sau đó Synchronize AE với Piplayer trong phần select player là xong. Trên Pi3 đã disable cổng HDMI, underclock, disable wifi onboard, kết nối Pi3 với AE qua dây LAN.
    Cách này mình tận dụng được Pi3 làm nguồn phát số giảm tối thiểu nhiễu so với phát trực tiếp từ PC, MAC qua AE như 1 DAC không dây 16 bit, tận dụng đc em AE có sẵn trong nhà. Sau nghiên cứu 1 tg nữa mình sẽ nâng cấp Boss DAC, ISOLATOR, iPower hay nguồn rời. Hiện đang thử mấy cục pin sạc và ổ cắm USB đa năng của Xiaomi, thấy cũng có chút khác biệt. Sau sẽ cho toàn bộ nguồn iPower, sạc 5v 2.5A...đều cắm qua cục Powerconditioner xem có khác biệt hay không. Đi lại con đường cũ các pro đã đi để trải nghiệm.
    Thanks for all.
     

    Attached Files:

    Last edited: 19/12/17
    tiendung0811, viking and tml3nr like this.
  3. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Theo như hình này thì anh đang dùng LMS trên PC để phát. Chứ không phải LMS trên Pi.

    Anh lưu ý là âm thanh của Airplay ảnh hưởng rất nhiều bởi noise của renderer (LMS / Airplay bridge). Do đó mình chạy LMS trên Pi tiếng sẽ sạch hơn.

    Anh uninstall LMS trên PC ra. Chỉ dùng LMS trên Pi thôi.

    Mình cũng có thể dùng LMS trên PC, rồi điều khiển cái LMS trên Pi. Nhưng hơi lằng nhằng và cũng không có lợi.

    Cái quan trọng nhất là Airplay bridge đang đặt ở đâu?

    Screenshot 2017-12-19 21.19.14.png

    Screenshot 2017-12-19 22.12.34.png
     
    Last edited: 20/12/17
    anhton82 likes this.
  4. Scorpio

    Scorpio Moderator

    Joined:
    2/12/05
    Messages:
    7.234
    Likes Received:
    3.292
    Location:
    VNAV
    Với các bạn chơi Pi chắc đã thử qua có mấy phần mềm như Moode, RuneAudio, PiCore... Mấy tay người Nhật chơi Pi cũng lọ mọ và tự build một bản cũng khác tốt và đã tối ưu hoá những tính năng cần thiết để có âm thanh tốt hơn

    Đánh giá chung symphonic-mpd
    - realtime kernel
    - power consumption reduction
    - support I2S
    - giao diện đủ dùng( hơi nghèo nàn)..

    Phần còn lại.... để các bạn tự khám phá :) :)

    (dịch từ tiếng Nhật)
    1. Adopt Real-Time Kernel
    2. Build Kernel, mpd, AirPlay, alsa-lib, libFLAC with optimization options for Razpay 3
    3. Apply your own patch to mpd, AirPlay, Spotify Connect, alsa-lib
    4. Specify real-time priority and execution CPU for each thread of mpd, AirPlay, and Spotify Connect
    5. Exclusive execution of mpd, AirPlay, Spotify Connect (automation of unnecessary process stop and NAS unmount)
    6. Overclocking of CPU (adjustment required depending on heat dissipation countermeasure situation)
    7. GPU underclock
    8. Suppress interrupt by kernel thread · Tune kernel parameters (OS jitter countermeasure)
    9. CPU Affinity setting
    10. ALSA buffer tuning
    11. Tuning NAS mount settings
    12. Stopping HDMI, Wifi, Bluetooth (power consumption reduction, noise suppression, voltage stabilization)
    13. Bus power supply to USB port is stopped (power consumption reduction / voltage stabilization)
    14. LED turns off
    15. Adopt ympd as Web UI (ultra lightweight and low-load Web server)
    16. Use Unix Domain Socket for communication between MPD and Web UI and stop listening on TCP6600 port
    web: http://mpd.sytes.net/ja

    ympd_symphonic.jpeg
     
    Last edited: 20/12/17
    chuong46, NGHP, viking and 7 others like this.
  5. anhton82

    anhton82 Advanced Member

    Joined:
    19/8/10
    Messages:
    711
    Likes Received:
    653
    Loằng ngoằng chạy vòng quanh. Test lại bằng Runeaudio thì thấy tiếng sạch và hay hơn cách qua LMS, chạy bằng Picore. Trước mình vẫn hay dùng Audirvana Plus trên Mac airplay qua AE. Mình thấy chất âm khi dùng Rune nó thoáng hơn và chi tiết hơn vì Rune có chức năng y như LMS cài trên Pi. Mặc dù mới test qua cổng 3.5mm của Pi. Mình cài theo sơ đồ của bạn cả PC và Pi đều cài LMS, nhưng thấy cách đó nó đi vòng vòng quá. Cài rune trên Pi tiện hơn. Thanks bạn tml3nr đã rất nhiệt tình trợ giúp.
     

    Attached Files:

    tml3nr likes this.
  6. chauphuong

    chauphuong Advanced Member

    Joined:
    4/4/12
    Messages:
    2.302
    Likes Received:
    1.751
    Cái này họ chế từ Rune, Moode hay phần mềm nào vậy bác? So với bản Rune mod của bác ra sao?
     
    nvss likes this.
  7. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Cũng nên thử hết khả năng cho biết anh ạ. Em cũng đi hết một vòng AE. Rồi qua Pi cũng chạy hết một vòng các OS. Khoảng 1 năm nay thì happy với RuneAudio.

    Lúc đầu em cũng mê piCorePlayer lắm. Nhưng khi test kỹ thì cái module squeezelite tiếng nó không hay. Em đã thử hết tất cả các version của nó. Tiếng nó có khác nhau nhưng đều có cảm giác không sạch.
     
    caigoc and viking like this.
  8. Scorpio

    Scorpio Moderator

    Joined:
    2/12/05
    Messages:
    7.234
    Likes Received:
    3.292
    Location:
    VNAV
    Team này họ tự buid bản mới từ đầu, không liên quan gì đến Rune hay Moode đâu ...

    Bản này hỗ trợ các bác chơi Pi HAT DAC ... http://mpd.sytes.net/ja/support/i2s
     
    mlab, caigoc, tml3nr and 1 other person like this.
  9. eng.tuananh

    eng.tuananh Advanced Member

    Joined:
    26/11/08
    Messages:
    2.220
    Likes Received:
    489
    Location:
    Ha Noi
    Có hỗ trợ các kit xuất Digi ko bác Sì cọp ơi? :D
     
  10. Scorpio

    Scorpio Moderator

    Joined:
    2/12/05
    Messages:
    7.234
    Likes Received:
    3.292
    Location:
    VNAV
    Phải thử thôi ..
     
  11. NGHP

    NGHP Advanced Member

    Joined:
    30/4/09
    Messages:
    136
    Likes Received:
    165
    Đủ món đây bác ạ http://mpd.sytes.net/ja/support/i2s

    Linux smpd 4.9.47-rt37-smpd #29 SMP PREEMPT RT Thu Dec 14 22:21:15 JST 2017 armv7l GNU/Linux


    I2S DAC correspondence table
    Distribution source official driver
    I 2 S DAC DAC CHIP I2S DRIVER
    Sabreberry 32 ESS Saber 9018 Q 2 C sabreberry 32
    Audiophonics ES 9018 DAC ESS Saber ES 9018 K 2 M i-sabre-k2m
    Raspbian standard driver
    I 2 S DAC DAC CHIP I2S DRIVER
    Allo Boss DAC Burr Brown PCM 5122 allo - boss - dac - pcm 512 x - audio
    Allo DigiOne Cirrus Logic WM 8805 allo-digione
    Allo MiniBoss DAC Burr Brown PCM 5122 allo - boss - dac - pcm 512 x - audio
    Allo Piano 2.1 Hi-Fi DAC Burr Brown PCM 5142 allo - piano - dac - plus - pcm 512 x - audio
    .....
     
    Last edited: 20/12/17
    mlab, tml3nr and eng.tuananh like this.
  12. viking

    viking Advanced Member

    Joined:
    31/7/09
    Messages:
    316
    Likes Received:
    269
    Mình có cài đa OS trên 1 thẻ nhớ không ah ? Lọ mọ 1 lần cài 3 OS luôn, khi nào thích xem phim hay thay chất âm thì chọn OS phù hợp.
    Anh có biết OS nào chuyên phim không ah?
     
    mlab likes this.
  13. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Em không có thử vụ multiboot trên một thẻ nên không rành anh ạ. Pi em chỉ dùng cho nhạc nên cũng không có thử video.

    Em xem phim online trên web là chính. Sau một thời gian xà quần các kiểu. Cuối cùng em dùng mac mini để xem phim. Em có kể lằng nhằng ở đây:

    https://vnav.vn/threads/dung-mac-mini-nhu-htpc.36176/#post-1917239
     
    viking likes this.
  14. mlab

    mlab Shop

    Joined:
    7/2/17
    Messages:
    242
    Likes Received:
    251
    Location:
    Số 5, Ngõ 627 Giải Phóng, Hoàng Mai, Hà Nội
    Bác đã dùng thử OSMC hay Openelec chưa?
    2 thằng này vừa nghe nhạc vừa xem phim luôn :D
     
    tml3nr and viking like this.
  15. mtbc

    mtbc Advanced Member

    Joined:
    11/9/06
    Messages:
    6.764
    Likes Received:
    2.222
    Location:
    Q3, Saigon
    Sau khi đọc nội dung cái thẻ mSD của Rendu em đang thắc mắc có khi nào Ropigee cũng chạy được trên Rendu chăng :))
     
    viking likes this.
  16. viking

    viking Advanced Member

    Joined:
    31/7/09
    Messages:
    316
    Likes Received:
    269
    Cảm ơn Anh nhé, cuối tuần thử mkv giáng sinh bằng pmc-hc trên laptop xem sao.
     
    tml3nr likes this.
  17. mtbc

    mtbc Advanced Member

    Joined:
    11/9/06
    Messages:
    6.764
    Likes Received:
    2.222
    Location:
    Q3, Saigon
    Thẻ rẻ mà, cứ 3 cái thẻ cũng chỉ 300k thôi
    Em mới sắm cái thẻ Ultra A1 của Sandisk, quảng cáo 98MB/s, coi thử ra răng.
     
  18. Master Audio

    Master Audio Advanced Member

    Joined:
    21/1/13
    Messages:
    797
    Likes Received:
    95
    NGHP, nvss and tml3nr like this.
  19. Scorpio

    Scorpio Moderator

    Joined:
    2/12/05
    Messages:
    7.234
    Likes Received:
    3.292
    Location:
    VNAV
    Rendu đã có sẵn RoonBridge rồi bác không cần Ropieee... Rendu dùng CPU đời ARM8, Pi ARM7, cấu trúc khác nhau nên không chắc chắn là không chạy được !!!

    Clone thẻ nguyên bản sang thẻ Sandisk Extreme Pro, sau đó dùng thẻ Sandisk chạy cho Rendu theo như report một tay chơi "đất cảng" thì âm thanh sẽ mượt hơn một chút, giọng hát nữ đỡ gắt hơn một chút ...
     
    tml3nr likes this.
  20. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Vậy là cũng giống như trên Pi anh nhỉ. Lúc trước em test một vòng, cũng thấy Sandisk Extreme Pro tiếng hay nhất.

    https://www.vnav.vn/threads/raspberry-pi-music-server.38335/page-39#post-1784820
     
    Scorpio likes this.
  21. mtbc

    mtbc Advanced Member

    Joined:
    11/9/06
    Messages:
    6.764
    Likes Received:
    2.222
    Location:
    Q3, Saigon
    Em đã clone sonicorbiter 2.5 xong. Mua xong cái ni rồi mới đọc... :) Cảm ơn bác Bò cạp và bác tml3nr.

    [​IMG]
    Mà thẻ Extreme Plus nhìn kết quả test đã quá.

    [​IMG]
     
    tml3nr likes this.
  22. chauphuong

    chauphuong Advanced Member

    Joined:
    4/4/12
    Messages:
    2.302
    Likes Received:
    1.751
    Xem phim online trên web thì dùng Kodi trên Android Box tiện hơn nhiều, được nhất khoản ko quảng cáo. Hoặc Kodi trên Win cũng ok.
     
    viking and tml3nr like this.
  23. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Trước khi mua mac mini, em có dùng qua Android Box (AB). Thời điểm đó các web phim online còn dùng flash. Cái box của em nó có support flash nhưng rất kém, play phập phù.

    Một cái khác cũng làm em đau khổ là xem blu-ray không support menu. Thêm nữa là chipset của nó xem DVD xấu quá.
     
  24. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Nhân dịp anh mtbc nhắc tới tốc độ đọc ghi. Em có test qua một vài thẻ nhớ. Up cho các anh xem chơi ạ.

    Có vẻ như chất lượng âm thanh tỉ lệ thuận với giá thành hơn là tốc độ. Ngoại trừ thẻ Samsung em chưa test âm thanh. Sandisk Extreme Pro cho tiếng hay nhất.

    1. sandisk_ultra_8GB.jpg

    2. sandisk_ultra_32G.jpg

    3. sandisk msd64-1 + transcend reader.png

    4. sandisk_extreme_plus_16g + lexar reader.png

    5. sandisk_extreme_pro_32g + lexar reader.png

    6. kingston_64g + lexar reader.png

    7. samsung_evo_plus_128_lexar_reader.png

    9. msd_8pcs.jpg

    Lexar Reader microSD LRWM05U-7000 UHS-II. Em gửi mua taobao:

    https://item.taobao.com/item.htm?spm=a1z0d.6639537.1997196601.5.53bd586d0FZCbj&id=529527551207

    https://www.cameramemoryspeed.com/reviews/card-readers/lexar-lrwm05u-7000-micro-sd-uhs-ii/

    8. lexar_reader_03.jpg
     
    Last edited: 21/12/17
    viking and mtbc like this.
  25. mtbc

    mtbc Advanced Member

    Joined:
    11/9/06
    Messages:
    6.764
    Likes Received:
    2.222
    Location:
    Q3, Saigon
    Giá mà có cái thẻ UHS II - kết quả test ra 240MB/s, giá AMZ giờ là $99.
    Cái thẻ Lexar nghe ra sao bác?

    Em đồng ý với vụ mắc hơn hay hơn ;) Chất lượng âm thanh phụ thuộc chất lượng linh kiện mà. Như mấy tụ Jensen số đo có thể không ngon nhưng âm thanh lại thuốc vậy.
     
    Last edited: 22/12/17
    tml3nr likes this.

Share This Page

Loading...