Raspberry Pi - Music Server

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

  1. chuvanvu

    chuvanvu Advanced Member

    Joined:
    12/1/17
    Messages:
    661
    Likes Received:
    581
    Chắc bác mua cùng chỗ em bảo :)

    Em mua về có thẻ moode 6.7 cắm vào chạy ngay. Em chưa thử smpd 0.9.6 trên co pi mới.
    smpd 0.9.6 mới flash xong, bác biết là nó tắt wifi và các cổng usb, chỉ bật port ethernet.
    Không rõ cấu hình của bác hiện như nào? Bác kiểm tra nguồn có đủ không, đang dùng LAN hay wifi, có cắm DAC chưa ạ, có ssh được không?
    Bác mô tả như trên hơi khó...
     
    tauchien likes this.
  2. tauchien

    tauchien Advanced Member

    Joined:
    29/9/14
    Messages:
    92
    Likes Received:
    67
    Vâng, em mua ở đúng chỗ bác bảo.

    Em đang dùng qua LAN, chưa cắm gì cả, nguồn thì em dùng nguồn 5V-3A của 1 con máy tính cũ. Em dự tính chỉ cài minidlna 1.3.0 vào để lấy nhạc từ NAS thôi.
    Nó boot khá chập chờn. Em tháo ra đổi tên hoặc flash lại smpd thì cắm vào chạy bình thường, nhưng reboot lại là tèo.
     
  3. chuvanvu

    chuvanvu Advanced Member

    Joined:
    12/1/17
    Messages:
    661
    Likes Received:
    581
    Boot chậm em thấy chủ yếu liên quan việc nhận IP. Bác kiểm tra xem thiết lập dhcp tự động hay static ạ?
    Bác đổi tên là làm gì ạ?
    Bác thử thay thẻ nhớ và/hoặc thay cả nguồn. Reboot bằng menu trên web...
     
    Last edited: 21/7/21
    tauchien likes this.
  4. tauchien

    tauchien Advanced Member

    Joined:
    29/9/14
    Messages:
    92
    Likes Received:
    67
    Em để static ip hay dhcp đều bị
    Em đổi tên 1 file dt-blob.bin thành dt-blob.bak, đưa vào lại boot được. Nhưng reboot là lại ko boot được nữa.
     
  5. chuvanvu

    chuvanvu Advanced Member

    Joined:
    12/1/17
    Messages:
    661
    Likes Received:
    581
    File này dt-blob.bin để cấu hình dac mà, bác phải có 1 file chứ (copy file slave thành file đó).
    Mà pi này chỉ để cấu hình NAS, dùng upnp server thì cần gì phải cài smpd ạ.
    Bác thử flash moode dùng cho dễ (có sẵn cả upnp client/server/browser).
     
    tauchien likes this.
  6. tauchien

    tauchien Advanced Member

    Joined:
    29/9/14
    Messages:
    92
    Likes Received:
    67
    E đã dùng Moode rồi nên muốn thử smpd nữa xem sao, em stream offline nhạc qua NP5, còn nhạc online thì em chơi Tidal rồi qua NP5 luôn.
    Giờ em đang tìm cách cài driver cho wifi TP Link WN722N V3.2 EU hoặc WN823N V2 EU lên smpd 0.9.6 nữa. Hiện e chưa cài được, một số bản trên github biên dịch lỗi do ko cài được kernel header cho smpd, các bản khác em đang tìm xem có bản nảo phù hợp ko.
     
    Last edited: 21/7/21
    chuvanvu likes this.
  7. linh0983

    linh0983 Advanced Member

    Joined:
    11/10/15
    Messages:
    275
    Likes Received:
    361
    Ai dùng moOde Audio mà chưa có Tidal Connect download về làm như vầy a . :)
    https://moodeaudio.org/

    https://github.com/shawaj/HiTide/tree/5767ff8581b30b767aa37328aba8c8450b1324d8

    Code:
    Using username "pi".
    pi@192.168.1.159's password:
    Access denied
    pi@192.168.1.159's password:
    RaspiOS 10.6 | 5.4.77-v7+ #1371 | armv7l (32-bit)
    
                          ____     __        ____
              __ _  ___  / __ \___/ /__     /_  /
             /  ' \/ _ \/ /_/ / _  / -_)     / /
            /_/_/_/\___/\____/\_,_/\__/     /_/
    
                     moOde audio player
                  Release 7.3.0 2021-06-25
                    (C) 2014 Tim Curtis
    
    
    The programs included with moOde are free software; the
    exact distribution terms for each program are described
    in the individual files in /usr/share/doc/*/copyright.
    Moode comes with absolutely no warranties expressed or
    implied, or any other guarantees.
    
    pi@moode:~ $ curl -sSL https://raw.githubusercontent.com/shawaj/HiTide/main/install.sh | sudo bash
    Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
    Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
    Get:3 http://archive.raspbian.org/raspbian stretch InRelease [15.0 kB]
    Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [376 kB]
    Get:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
    Get:6 http://archive.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
    Get:7 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.7 kB]
    Get:8 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
    Fetched 25.3 MB in 37s (676 kB/s)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    198 packages can be upgraded. Run 'apt list --upgradable' to see them.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libportaudio2' for glob 'libportaudio2*'
    Note, selecting 'libflac++6v5' for glob 'libflac++6v5*'
    git is already the newest version (1:2.20.1-2+deb10u3).
    multiarch-support is already the newest version (2.28-10+rpi1).
    The following additional packages will be installed:
      libavahi-client-dev libavahi-common-dev libavcodec57 libavutil55 libbluray1 libportaudiocpp0 libswresample2 libva-drm1 libva-x11-1 libva1 libvpx4
      libwebpmux2 libx264-148 libx265-95 portaudio19-dev
    Suggested packages:
      libbluray-bdj portaudio19-doc
    The following NEW packages will be installed:
      libavcodec57 libavformat57 libavutil55 libbluray1 libflac++6v5 libswresample2 libva-drm1 libva-x11-1 libva1 libvpx4 libwebpmux2 libx264-148
      libx265-95
    The following packages will be upgraded:
      alsa-utils libavahi-client-dev libavahi-client3 libavahi-common-dev libavahi-common3 libportaudio2 libportaudiocpp0 portaudio19-dev
    8 upgraded, 13 newly installed, 0 to remove and 190 not upgraded.
    Need to get 8,798 kB of archives.
    After this operation, 21.7 MB of additional disk space will be used.
    Get:1 http://archive.raspberrypi.org/debian buster/main armhf alsa-utils armhf 1.1.8-2+rpt1 [1,010 kB]
    Get:2 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libavahi-common-dev armhf 0.7-4+deb10u1 [65.1 kB]
    Get:3 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libavahi-common3 armhf 0.7-4+deb10u1 [51.0 kB]
    Get:4 http://archive.raspbian.org/raspbian stretch/main armhf libva1 armhf 1.7.3-2 [46.2 kB]
    Get:5 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libavahi-client-dev armhf 0.7-4+deb10u1 [64.1 kB]
    Get:6 http://archive.raspbian.org/raspbian stretch/main armhf libva-drm1 armhf 1.7.3-2 [14.5 kB]
    Get:7 http://archive.raspbian.org/raspbian stretch/main armhf libva-x11-1 armhf 1.7.3-2 [18.0 kB]
    Get:8 http://archive.raspbian.org/raspbian stretch/main armhf libavutil55 armhf 7:3.2.15-0+deb9u2 [246 kB]
    Get:9 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libavahi-client3 armhf 0.7-4+deb10u1 [54.0 kB]
    Get:10 http://archive.raspbian.org/raspbian stretch/main armhf libswresample2 armhf 7:3.2.15-0+deb9u2 [102 kB]
    Get:11 http://archive.raspbian.org/raspbian stretch/main armhf libvpx4 armhf 1.6.1-3+deb9u2 [432 kB]
    Get:13 http://archive.raspbian.org/raspbian stretch/main armhf libwebpmux2 armhf 0.5.2-1+deb9u1 [80.4 kB]
    Get:14 http://archive.raspbian.org/raspbian stretch/main armhf libx264-148 armhf 2:0.148.2748+git97eaef2-1+rpi1 [786 kB]
    Get:15 http://archive.raspbian.org/raspbian stretch/main armhf libx265-95 armhf 2.1-2 [447 kB]
    Get:17 http://archive.raspbian.org/raspbian stretch/main armhf libavcodec57 armhf 7:3.2.15-0+deb9u2 [4,170 kB]
    Get:16 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf portaudio19-dev armhf 19.6.0-1+deb10u1 [98.5 kB]
    Get:18 http://archive.raspbian.org/raspbian stretch/main armhf libbluray1 armhf 1:0.9.3-3 [122 kB]
    Get:20 http://archive.raspbian.org/raspbian stretch/main armhf libavformat57 armhf 7:3.2.15-0+deb9u2 [882 kB]
    Get:19 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libportaudiocpp0 armhf 19.6.0-1+deb10u1 [16.7 kB]
    Get:21 http://mirror.ossplanet.net/raspbian/raspbian buster/main armhf libportaudio2 armhf 19.6.0-1+deb10u1 [56.7 kB]
    Get:12 https://mirror.freedif.org/Raspbian/raspbian buster/main armhf libflac++6v5 armhf 1.3.2-3 [34.7 kB]
    Fetched 8,798 kB in 9s (989 kB/s)
    apt-listchanges: Reading changelogs...
    (Reading database ... 68296 files and directories currently installed.)
    Preparing to unpack .../00-alsa-utils_1.1.8-2+rpt1_armhf.deb ...
    Unpacking alsa-utils (1.1.8-2+rpt1) over (1.1.8-2) ...
    Preparing to unpack .../01-libavahi-common-dev_0.7-4+deb10u1_armhf.deb ...
    Unpacking libavahi-common-dev:armhf (0.7-4+deb10u1) over (0.7-4+b1) ...
    Preparing to unpack .../02-libavahi-common3_0.7-4+deb10u1_armhf.deb ...
    Unpacking libavahi-common3:armhf (0.7-4+deb10u1) over (0.7-4+b1) ...
    Preparing to unpack .../03-libavahi-client-dev_0.7-4+deb10u1_armhf.deb ...
    Unpacking libavahi-client-dev:armhf (0.7-4+deb10u1) over (0.7-4+b1) ...
    Preparing to unpack .../04-libavahi-client3_0.7-4+deb10u1_armhf.deb ...
    Unpacking libavahi-client3:armhf (0.7-4+deb10u1) over (0.7-4+b1) ...
    Selecting previously unselected package libva1:armhf.
    Preparing to unpack .../05-libva1_1.7.3-2_armhf.deb ...
    Unpacking libva1:armhf (1.7.3-2) ...
    Selecting previously unselected package libva-drm1:armhf.
    Preparing to unpack .../06-libva-drm1_1.7.3-2_armhf.deb ...
    Unpacking libva-drm1:armhf (1.7.3-2) ...
    Selecting previously unselected package libva-x11-1:armhf.
    Preparing to unpack .../07-libva-x11-1_1.7.3-2_armhf.deb ...
    Unpacking libva-x11-1:armhf (1.7.3-2) ...
    Selecting previously unselected package libavutil55:armhf.
    Preparing to unpack .../08-libavutil55_7%3a3.2.15-0+deb9u2_armhf.deb ...
    Unpacking libavutil55:armhf (7:3.2.15-0+deb9u2) ...
    Selecting previously unselected package libswresample2:armhf.
    Preparing to unpack .../09-libswresample2_7%3a3.2.15-0+deb9u2_armhf.deb ...
    Unpacking libswresample2:armhf (7:3.2.15-0+deb9u2) ...
    Selecting previously unselected package libvpx4:armhf.
    Preparing to unpack .../10-libvpx4_1.6.1-3+deb9u2_armhf.deb ...
    Unpacking libvpx4:armhf (1.6.1-3+deb9u2) ...
    Selecting previously unselected package libwebpmux2:armhf.
    Preparing to unpack .../11-libwebpmux2_0.5.2-1+deb9u1_armhf.deb ...
    Unpacking libwebpmux2:armhf (0.5.2-1+deb9u1) ...
    Selecting previously unselected package libx264-148:armhf.
    Preparing to unpack .../12-libx264-148_2%3a0.148.2748+git97eaef2-1+rpi1_armhf.deb ...
    Unpacking libx264-148:armhf (2:0.148.2748+git97eaef2-1+rpi1) ...
    Selecting previously unselected package libx265-95:armhf.
    Preparing to unpack .../13-libx265-95_2.1-2_armhf.deb ...
    Unpacking libx265-95:armhf (2.1-2) ...
    Selecting previously unselected package libavcodec57:armhf.
    Preparing to unpack .../14-libavcodec57_7%3a3.2.15-0+deb9u2_armhf.deb ...
    Unpacking libavcodec57:armhf (7:3.2.15-0+deb9u2) ...
    Selecting previously unselected package libbluray1:armhf.
    Preparing to unpack .../15-libbluray1_1%3a0.9.3-3_armhf.deb ...
    Unpacking libbluray1:armhf (1:0.9.3-3) ...
    Selecting previously unselected package libavformat57:armhf.
    Preparing to unpack .../16-libavformat57_7%3a3.2.15-0+deb9u2_armhf.deb ...
    Unpacking libavformat57:armhf (7:3.2.15-0+deb9u2) ...
    Selecting previously unselected package libflac++6v5:armhf.
    Preparing to unpack .../17-libflac++6v5_1.3.2-3_armhf.deb ...
    Unpacking libflac++6v5:armhf (1.3.2-3) ...
    Preparing to unpack .../18-portaudio19-dev_19.6.0-1+deb10u1_armhf.deb ...
    Unpacking portaudio19-dev:armhf (19.6.0-1+deb10u1) over (19.6.0-1) ...
    Preparing to unpack .../19-libportaudiocpp0_19.6.0-1+deb10u1_armhf.deb ...
    Unpacking libportaudiocpp0:armhf (19.6.0-1+deb10u1) over (19.6.0-1) ...
    Preparing to unpack .../20-libportaudio2_19.6.0-1+deb10u1_armhf.deb ...
    Unpacking libportaudio2:armhf (19.6.0-1+deb10u1) over (19.6.0-1) ...
    Setting up libportaudio2:armhf (19.6.0-1+deb10u1) ...
    Setting up libavahi-common3:armhf (0.7-4+deb10u1) ...
    Setting up libva1:armhf (1.7.3-2) ...
    Setting up libx264-148:armhf (2:0.148.2748+git97eaef2-1+rpi1) ...
    Setting up libx265-95:armhf (2.1-2) ...
    Setting up libportaudiocpp0:armhf (19.6.0-1+deb10u1) ...
    Setting up portaudio19-dev:armhf (19.6.0-1+deb10u1) ...
    Setting up alsa-utils (1.1.8-2+rpt1) ...
    Setting up libva-drm1:armhf (1.7.3-2) ...
    Setting up libva-x11-1:armhf (1.7.3-2) ...
    Setting up libavahi-common-dev:armhf (0.7-4+deb10u1) ...
    Setting up libwebpmux2:armhf (0.5.2-1+deb9u1) ...
    Setting up libvpx4:armhf (1.6.1-3+deb9u2) ...
    Setting up libflac++6v5:armhf (1.3.2-3) ...
    Setting up libavahi-client3:armhf (0.7-4+deb10u1) ...
    Setting up libbluray1:armhf (1:0.9.3-3) ...
    Setting up libavahi-client-dev:armhf (0.7-4+deb10u1) ...
    Setting up libavutil55:armhf (7:3.2.15-0+deb9u2) ...
    Setting up libswresample2:armhf (7:3.2.15-0+deb9u2) ...
    Setting up libavcodec57:armhf (7:3.2.15-0+deb9u2) ...
    Setting up libavformat57:armhf (7:3.2.15-0+deb9u2) ...
    Processing triggers for systemd (241-7~deb10u4+rpi1) ...
    Processing triggers for man-db (2.8.5-2) ...
    Processing triggers for libc-bin (2.28-10+rpi1) ...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  850k  100  850k    0     0  3015k      0 --:--:-- --:--:-- --:--:-- 3026k
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libssl1.0.0' instead of './libssl1.0.0_1.0.1t-1+deb8u12_armhf.deb'
    The following NEW packages will be installed:
      libssl1.0.0
    0 upgraded, 1 newly installed, 0 to remove and 190 not upgraded.
    Need to get 0 B/871 kB of archives.
    After this operation, 1,910 kB of additional disk space will be used.
    Get:1 /usr/ifi/libssl1.0.0_1.0.1t-1+deb8u12_armhf.deb libssl1.0.0 armhf 1.0.1t-1+deb8u12 [871 kB]
    Preconfiguring packages ...
    Selecting previously unselected package libssl1.0.0:armhf.
    (Reading database ... 68375 files and directories currently installed.)
    Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u12_armhf.deb ...
    Unpacking libssl1.0.0:armhf (1.0.1t-1+deb8u12) ...
    Setting up libssl1.0.0:armhf (1.0.1t-1+deb8u12) ...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  231k  100  231k    0     0   224k      0  0:00:01  0:00:01 --:--:--  224k
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'libcurl3' instead of './libcurl3_7.38.0-4+deb8u16_armhf.deb'
    The following packages were automatically installed and are no longer required:
      cmake-data librhash0 libuv1
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
      cmake-data
    The following packages will be REMOVED:
      cmake curl libcurl4 rpi-update
    The following NEW packages will be installed:
      libcurl3
    The following packages will be upgraded:
      cmake-data
    1 upgraded, 1 newly installed, 4 to remove and 185 not upgraded.
    Need to get 1,628 kB/1,866 kB of archives.
    After this operation, 13.1 MB disk space will be freed.
    Get:1 /usr/ifi/libcurl3_7.38.0-4+deb8u16_armhf.deb libcurl3 armhf 7.38.0-4+deb8u16 [237 kB]
    Get:2 http://archive.raspberrypi.org/debian buster/main armhf cmake-data all 3.16.3-3~bpo10+1 [1,628 kB]
    Fetched 1,628 kB in 2s (755 kB/s)
    apt-listchanges: Reading changelogs...
    (Reading database ... 68395 files and directories currently installed.)
    Removing cmake (3.13.4-1) ...
    Removing rpi-update (20200409) ...
    Removing curl (7.64.0-4+deb10u1) ...
    Removing libcurl4:armhf (7.64.0-4+deb10u1) ...
    Selecting previously unselected package libcurl3:armhf.
    (Reading database ... 68362 files and directories currently installed.)
    Preparing to unpack .../libcurl3_7.38.0-4+deb8u16_armhf.deb ...
    Unpacking libcurl3:armhf (7.38.0-4+deb8u16) ...
    Preparing to unpack .../cmake-data_3.16.3-3~bpo10+1_all.deb ...
    Unpacking cmake-data (3.16.3-3~bpo10+1) over (3.13.4-1) ...
    Setting up libcurl3:armhf (7.38.0-4+deb8u16) ...
    Setting up cmake-data (3.16.3-3~bpo10+1) ...
    Processing triggers for man-db (2.8.5-2) ...
    Processing triggers for libc-bin (2.28-10+rpi1) ...
    Cloning into 'ifi-tidal-release'...
    remote: Enumerating objects: 64, done.
    remote: Counting objects: 100% (64/64), done.
    remote: Compressing objects: 100% (53/53), done.
    remote: Total 64 (delta 15), reused 39 (delta 1), pack-reused 0
    Unpacking objects: 100% (64/64), done.
    ● ifi-streamer-tidal-connect.service - RasPi Streamer Tidal Connect Service
       Loaded: loaded (/lib/systemd/system/ifi-streamer-tidal-connect.service; disabled; vendor preset: enabled)
       Active: active (running) since Sun 2021-07-18 15:09:22 +07; 76ms ago
    Main PID: 6361 (tidal_connect_a)
        Tasks: 1 (limit: 2063)
       CGroup: /system.slice/ifi-streamer-tidal-connect.service
               └─6361 /usr/ifi/ifi-tidal-release/bin/tidal_connect_application --tc-certificate-path /usr/ifi/ifi-tidal-release/id_certificate/IfiAudio_Ze
    
    Jul 18 15:09:22 moode systemd[1]: Started RasPi Streamer Tidal Connect Service.
    lines 1-9/9 (END)
    Sau khi install nhắc khởi động cho lần sau a . :cool:

    sudo systemctl daemon-reload
    sudo systemctl start ifi-streamer-tidal-connect.service
    sudo systemctl status ifi-streamer-tidal-connect.service
    sudo systemctl enable ifi-streamer-tidal-connect.service

    Dùng laptop hoặc DT stream qua moOde . Khi đã kết nối nghe có thể tắt laptop hoặc DT ko vấn đề gì a . :mad:

    Stream từ DT :
    [​IMG]

    Stream từ laptop :

    [​IMG]
     
    tml3nr, binna, tauchien and 1 other person like this.
  8. tauchien

    tauchien Advanced Member

    Joined:
    29/9/14
    Messages:
    92
    Likes Received:
    67
    Em đang gặp lỗi với minidlna (1.3.0) trên smpd 0.9.6 cài trên Pi 3 như sau :
    Em quét nhạc từ NAS (OMV trên Pi4) thì các thứ mục bị lồng vào nhau không giống như các thư mục trên đĩa cứng của NAS.
    Có thư mục chứa 30 thu mục con thì sau khi scan xong em xem trên minidlna thì chỉ có 16 thư mục thôi

    Em đã cài đi cài lại cả minidlna 1.2.1 hay 1.3.0 rồi rescan các kiểu vẫn lỗi
    Tuy nhiên, minidlna 1.2.1 cài trên Hitidiepi của bác @tml3nr lại không bị lỗi như trên, nó chỉ bị trên smpd thôi.

    Có bác nào gặp phải lỗi tương tự ko ạ ? Xin các bác trợ giúp em !
     
    tml3nr likes this.
  9. thichPi

    thichPi Advanced Member

    Joined:
    16/3/21
    Messages:
    464
    Likes Received:
    568
    @tauchien cho xem nội dung của minidlna.conf

    Mình mới cài thử...mọi thư mục hiện lên bình thường. Điểm mount của mình trên smpd là từ Samba từ máy NUC
     
    tauchien likes this.
  10. tauchien

    tauchien Advanced Member

    Joined:
    29/9/14
    Messages:
    92
    Likes Received:
    67
    Nội dung minidlna.conf em chỉ copy mấy dòng này ạ

    media_dir=A, /var/lib/mpd/music/NAS

    friendly_name=minidlna

    db_dir=/var/cache/minidlna

    log_dir=/var/log

    log_level=no

    inotify=yes

    root_container=M

    wide_links=yes

    Với media_dir em lấy luôn thư mục của smpd hoặc sửa /etc/fstab để mount sang thư mục khác cũng đều bị lỗi lồng file và thư mục, thiếu thư mục các kiểu sau khi scan nhạc

    Em cài assetUPnP không thể autorun sau khi khởi động được dù đã sửa crontab
    Update : Em đã khởi động được AssetUPnP theo cách của bác @tml3nr (systemd)
     
    Last edited: 24/7/21
    tml3nr likes this.
  11. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Anh thử set "inotify=no" xem nó có hết bị rescan khi boot không?

    Hôm trước em set như vầy thấy có vẻ OK:

    Code:
    port=8200
    
    media_dir=A,/mnt/Local
    media_dir=A,/mnt/USB
    media_dir=A,/mnt/NAS
    
    resize_covers=no
    
    friendly_name=minidlna
    
    db_dir=/var/cache/minidlna
    
    log_dir=/var/log
    
    log_level=no
    
    album_art_names=folder.jpg
    
    inotify=no
    
    enable_tivo=no
    
    tivo_discovery=bonjour
    
    strict_dlna=no
    
    notify_interval=900
    
    serial=12345678
    model_number=1
    
    root_container=M
    
    wide_links=yes
     
    Last edited: 24/7/21
    tauchien and binna like this.
  12. tauchien

    tauchien Advanced Member

    Joined:
    29/9/14
    Messages:
    92
    Likes Received:
    67
    Cảm ơn bác, để em thử lại xem sao
     
    tml3nr likes this.
  13. Thanh-Dat

    Thanh-Dat Approved Member

    Joined:
    6/5/21
    Messages:
    6
    Likes Received:
    4
    Chào cả nhà.
    Thấy anh em luận bàn các kiểu về nghe nhạc online, mình ít thấy bàn đến cách nghe nhạc từ ổ cứng cắm trực tiếp vào Raspberry Pi và các hệ điều hành để nghe nhạc hay hơn, tối ưu hơn cho anh em mới bắt đầu tập tành ăn chơi như mình :(. Vào đọc hoa hết cả mắt, choáng hết cả đầu :p:D
     
    tml3nr likes this.
  14. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Em có test rồi. Cũng OK lắm ạ. Thay vì lấy nhạc từ NAS qua mạng LAN thì mình cắm trực tiếp HDD USB vào pi luôn.

    Khó có thể nói được cách nào hay nhất, hay hay hơn vì có quá nhiều yếu tố trong mỗi setup. Mình phải chịu khó test thật nhiều trong khả năng để xem cái nào phù hợp nhất.
     
    tauchien likes this.
  15. Thanh-Dat

    Thanh-Dat Approved Member

    Joined:
    6/5/21
    Messages:
    6
    Likes Received:
    4
    Chào bạn.
    Cho mình hỏi tí. Mình đang dùng Raspberry Pi 4. Trên đó đang cài HĐH Volumio, đọc trên diễn đàn thấy có nói: Với HĐH khác nhau sẽ cho ra âm thanh khác nhau. Vậy ngoài HĐH Volumio mình có thể cài HĐH nào được trên Raspberry Pi 4 vậy bạn? Nhờ bạn chia sẻ, chỉ giáo với. Cảm ơn bạn nhiều :D
     
    tml3nr likes this.
  16. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Với pi4 mình có thể chạy được nhiều OS lắm ạ. Anh nên thử cái dễ trước, rồi mấy cái khó test sau cho đỡ ngán.

    Em tạm liệt kê từ dễ tới khó như sau:

    - moode / volumio
    - runeaudio
    - archphile https://archphile.org/
    - dietpi
    - picoreplayer
    - dastereo https://dastereo.ru/t/dimas-sobral-...n-dlya-raspberry-pi-nuzhny-vashi-otzyvy/26345
    - smpd https://www.symphonic-mpd.com/forum/
    - gentoplayer...
     
    Last edited: 26/7/21
  17. Thanh-Dat

    Thanh-Dat Approved Member

    Joined:
    6/5/21
    Messages:
    6
    Likes Received:
    4
    Bạn cho mình bài đầu tiên của lớp Mầm đi bạn :p
     
  18. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Anh mò moode với volumio trước cho dễ ạ. Sau khi nắm rõ 2 em này rồi đi tiếp sẽ dễ hơn.
     
    tauchien likes this.
  19. Thanh-Dat

    Thanh-Dat Approved Member

    Joined:
    6/5/21
    Messages:
    6
    Likes Received:
    4
    Cảm ơn bạn. Để mình đốt đuốc tìm xem :)
     
    tml3nr likes this.
  20. tml3nr

    tml3nr Advanced Member

    Joined:
    30/4/07
    Messages:
    3.082
    Likes Received:
    3.504
    Có 2 cách để đi. Xuôi và ngược ạ. Mỗi cái có hay và dở riêng.

    Làm quen với các OS có sẵn, rồi qua đó tìm hiểu cách nó hoạt động là cách ít thấy chán và có vẻ dễ dàng với nhiều người. Em tạm cho đây là đi ngược.

    Nhưng thật ra đi xuôi hay hơn. Là mình bắt đầu từ Raspbian stock. Sau đó setup cho nó các dịch vụ như mpd, web server, renderer, upnp server... Sẽ nhanh và hiệu quả hơn. Kiến thức cũng chặt chẽ hơn.
     
  21. CAT1709

    CAT1709 Advanced Member

    Joined:
    28/12/20
    Messages:
    78
    Likes Received:
    14
    Chào bác tml3nr:
    *Mình định bỏ cd player qua xài PI và USB DAC, bác có thể hướng dẫn mình cách cài volumio cho PI và sét IP cho PI không ạ( Hoặc có thể bác cho biết tài liệu nào hướng dẫn cách cài chi tiết volumio cho PI và cách setup IP cho PI cũng được ạ)
    *À nếu cài Rune cho PI thì mình dùng điện thoại để chọn bài hát và điều khiên PI như cài volumio đươc không??
    Cảm ơn bác
     
    tml3nr likes this.
  22. chuvanvu

    chuvanvu Advanced Member

    Joined:
    12/1/17
    Messages:
    661
    Likes Received:
    581
    Bác đọc được tiếng Anh thì ở đây, không thì dùng google dịch.
    https://volumio.github.io/docs/User_Manual/Quick_Start_Guide

    Cơ bản cách cài như sau:
    Trước tiên bác tải volumio cho pi ở đây: https://updates.volumio.org/pi/volumio/2.907/volumio-2.907-2021-07-02-pi.img.zip
    Tải tool: Bác dùng máy tính Hệ điều hành gì thì tải tool balenaEtcher tương ứng về máy: https://www.balena.io/etcher/

    Dùng tool flash OS vào thẻ nhớ, rồi cắm thẻ vào pi là chạy thôi ạ.

    Mô hình bác đang dùng pi dùng DAC i2s (DAC HAT) hay DAC USB, cắm ổ cứng hay dùng NAS, pi dùng mạng hay wifi?

    Đặt IP tĩnh cho pi thì bác vào thiết bị mạng cấp phát địa chỉ IP cho Pi của bác thiết lập là dễ nhất.
     
    tml3nr and CAT1709 like this.
  23. CAT1709

    CAT1709 Advanced Member

    Joined:
    28/12/20
    Messages:
    78
    Likes Received:
    14
    *Ồ rất cảm ơn bác :), mình định mua PI và nhờ người bán cài sẵn volumio, nhưng nếu bác nói như vậy thì mình sẽ tập tự cài, nếu có gì không hiểu bác tư vấn giúp mình nhé......
    *Mình định dùng USB DAC bác, sử dụng ổ cứng, dùng mạng bác ơi
    *À, còn nếu cài hệ điều hành Rune cho PI thì mình có thể sử dụng điện thoại để điều khiển PI như cài hệ điều hành volumio không bác??
     
    tml3nr likes this.
  24. chuvanvu

    chuvanvu Advanced Member

    Joined:
    12/1/17
    Messages:
    661
    Likes Received:
    581
    Rune nó dừng phát triển lâu lắm rồi, và nó không dễ để cắm và sử dụng ngay mà bác sẽ phải cấu hình nhiều bằng dòng lệnh.
    Và nhất là phải bám chặt bác @tml3nr :).

    Trước mắt bác cứ dùng volumio là dễ nhất đã. Chuẩn chỉ phần nguồn cho nó và nguồn cho DAC là đã khá ổn rồi.

    Các hệ điều hành nghe nhạc cho pi toàn loại headless, nên dùng điện thoại cùng mạng, truy cập trang web của nó là điều khiển được ạ.
     
    tml3nr and CAT1709 like this.
  25. cup_of_cafe

    cup_of_cafe Advanced Member

    Joined:
    30/1/08
    Messages:
    447
    Likes Received:
    146
    Em thấy tiếng của thằng moode khá hay, hợp với nhạc Việt kiểu mềm mại, chi tiết. Mỗi khoản cái mount ổ NAS hơi chuối, phải thêm tham số nọ kia nó mới nhận. Ah với lại em chạy moode rất hay bị treo và báo quá nhiệt, dù trước đó chạy volumio cả năm không bị bất cứ vấn đề gì. Chắc Pi3+ hơi cùi, lên Pi4 khỏe hơn đỡ :D
     
    tml3nr likes this.

Share This Page

Loading...