ArchQ, PC數位播放專用Linux 與應用

有關新天新地代理音響品牌及相關音響議題討論

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-08-16, 12:50

MPD 串流至多台遠端設備

平常在家時,並不是一直坐在音響前面聆聽;反而是到處走動,不在音響前。
有時,家人也並不想聽到音樂,這時就需要耳機了。

ArchQ 的MPD 目前可以使用Airplay 和 Httpd 串流。
利用串流,小弟想仿造Roon的功能,把不同的音樂同時串流至不同的設備。
設定方式,config -> update;config -> mpd
這次多了一個Multi user 的選項:
圖檔
輸入新增要同時串流的數量,指的是非同步的。
圖檔
完成後,會顯示控制port和播放的httpd port:
圖檔

以上方式,會建立新的帳號:mpd1, mpd2 ...,密碼是mpd,都是非同步播放用的。
mpd1: Control 6601 port, httpd stream 8001 port
mpd2: Control 6602 port, httpd stream 8002 port
... 以此類推。
再ssh mpd1@archq.local 或 su mpd1 的方式登入。
再用 mpdconf 來設定音樂資料來源和編碼方式就可。
因為Airplay 只能提供一台串流,所以只有mpd1 可以設定,而且同步或非同步只能擇一。

現在的玩法有幾種組合:
同步: ArchQ 本機輸出 + Airplay + Httpd,使用預設值的設定。
非同步:用Multi user 建立
若Airplay (or Httpd) 要非同步,用config -> mpd,把Airplay 關了;
再由mpd1 帳號,用mpdconf打開Airplay後,用pulse_airplay設定輸出的設備。
簡而言之,就是mpd1, mpd2 ...帳號是非同步用的,不同的帳號可以同時播放不同的音樂。

另外,httpd 串流建議用nPlayer(iOS), KMPlayer來聽,電腦也可用Edge。
至於操作端,小弟是用iOS 下的Rigelian,來控制,它可以同時控制多個串流。
圖檔

若經由Apple的設備播放,也可以再轉至Airplay 2 的設備,這樣就變成Mutil room 同步播放了。
最後由 samshu 於 2023-05-01, 21:40 編輯,總共編輯了 4 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-08-17, 15:57

啟用其他的Music Server

若安裝了LMS,想要安裝如MPD 或 Roon,可以用下面的指令安裝,並切換:
sudo server-cfg.sh

圖檔

同樣的,事後安裝LMS 也是可以的。
最後由 samshu 於 2023-05-07, 19:00 編輯,總共編輯了 3 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-08-21, 10:16

關於AMD CPU的安裝

問題原因:安裝過程中,沒有安裝到Q352AMD 的kernel,以致無法開機。
之前日本樂友安裝是正常,install script 我目前也沒看出有什麼問題。

決解方案:
1. 安裝完成後,開機選單選擇官方的Linue kernel 開機,就是沒有Q 的版本。
2. config 指令 -> Kernel -> Install -> 選 Q352AMD
3. config 指令 -> Kernel -> Boot -> 選 Q352AMD
4. sudo reboot
5. 建議動作:config 指令 -> Kernel -> Frenquency
測試是否有達到352。如果沒有,改安裝Q264AMD。
最後由 samshu 於 2023-04-15, 08:52 編輯,總共編輯了 2 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-08-24, 17:56

關於設定 mount 磁碟、NFS、CIFS 後,無法開機的處置

對mount 設定時,難免會出錯,常常會導致無法正常開機,並無法以ssh 登入。
這時就要回到本機操作,在開機選單出現時,選擇官方的Kernel 開機,通常就是倒數第二項,linux-6.1.x..,就是沒有Q的項目。
開機後,需要按Control-D,再輸入 密碼;這時就可下指令處理各類的問題。

解決方式有二:
1. 用 config.sh -> mount ...,修改或刪除先前錯誤的項目。
2. 用 nano /etc/fstabvim /etc/fstab,把最後錯誤的的行刪除,或手動修正,並Save 存檔。
3. reboot 後,就可正常開機。
最後由 samshu 於 2023-05-01, 11:58 編輯,總共編輯了 5 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-08-29, 22:53

Squeezelite DSD 的設定
1. 選擇有支援DSD的squeezelite版本
圖檔

2. 音效裝置選擇 "iec958" 開頭的裝置
圖檔

3. "Restrict Codec" 必須加入dsd的支援: pcm,dsd
4. "Device supports DSD/Dop" 使用預設參數 "0:u32be" 無法播放DSD的話,
請改用其他參數 dop, u8, u16le, u16be, u32le 試試看。
圖檔

若仍無法播放DSD的話,請檢查DAC或DDC的DSD輸出是否需要另外設定。
最後由 samshu 於 2023-05-01, 12:00 編輯,總共編輯了 1 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章smallguy60 » 2022-08-30, 01:47

Hi Sam, I am running into an error when installing Q52. Any advice?

代碼: 選擇全部
root@archiso ~ # curl -sL https://raw.githubusercontent.com/sam0402/ArchQ/main/install | bash
:: Synchronizing package databases...
core                  157.7 KiB   253 KiB/s 00:01 [######################] 100%
extra                1843.0 KiB  2.31 MiB/s 00:01 [######################] 100%
community               6.9 MiB  4.57 MiB/s 00:02 [######################] 100%
error: failed retrieving file 'core.db' from mirror.fcix.net : SSL certificate problem: certificate is not yet valid
error: failed retrieving file 'extra.db' from mirror.fcix.net : SSL certificate problem: certificate is not yet valid
error: failed retrieving file 'community.db' from mirror.fcix.net : SSL certificate problem: certificate is not yet valid
warning: too many errors from mirror.fcix.net, skipping for the remainder of this transaction
resolving dependencies...
looking for conflicting packages...

Packages (4) fakeroot-1.29-1  archlinux-keyring-20220727-1
             dialog-1:1.3_20220728-1  pacman-contrib-1.6.0-1

Total Download Size:   1.39 MiB
Total Installed Size:  2.26 MiB
Net Upgrade Size:      0.80 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
archlinux-keyrin...  1117.1 KiB  2.41 MiB/s 00:00 [######################] 100%
dialog-1:1.3_202...   200.0 KiB   541 KiB/s 00:00 [######################] 100%
fakeroot-1.29-1-...    69.5 KiB   237 KiB/s 00:00 [######################] 100%
pacman-contrib-1...    41.4 KiB   159 KiB/s 00:00 [######################] 100%
Total (4/4)          1428.0 KiB   758 KiB/s 00:02 [######################] 100%
(4/4) checking keys in keyring                     [######################] 100%
(4/4) checking package integrity                   [######################] 100%
(4/4) loading package files                        [######################] 100%
(4/4) checking for file conflicts                  [######################] 100%
(4/4) checking available disk space                [######################] 100%
:: Processing package changes...
(1/4) upgrading archlinux-keyring                  [######################] 100%
==> Appending keys from archlinux.gpg...
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011 was created 3 days in the future (time warp or clock problem)
gpg: key 930B82BFC2BDA011: no valid user IDs
gpg: key B1B73B02CC52A02A was created 62 days in the future (time warp or clock problem)
gpg: key B1B73B02CC52A02A was created 62 days in the future (time warp or clock problem)
gpg: key B1B73B02CC52A02A was created 62 days in the future (time warp or clock problem)
gpg: key B1B73B02CC52A02A was created 62 days in the future (time warp or clock problem)
gpg: key B1B73B02CC52A02A: no valid user IDs
gpg: key C32217F6F13FF192 was created 32 days in the future (time warp or clock problem)
gpg: key C32217F6F13FF192 was created 32 days in the future (time warp or clock problem)
gpg: key C32217F6F13FF192 was created 32 days in the future (time warp or clock problem)
gpg: key C32217F6F13FF192 was created 32 days in the future (time warp or clock problem)
gpg: key C32217F6F13FF192 was created 32 days in the future (time warp or clock problem)
gpg: key C32217F6F13FF192 was created 32 days in the future (time warp or clock problem)
gpg: key C32217F6F13FF192: no valid user IDs
gpg: key 139B09DA5BF0D338 was created 11 days in the future (time warp or clock problem)
gpg: key 139B09DA5BF0D338 was created 11 days in the future (time warp or clock problem)
gpg: key 139B09DA5BF0D338 was created 11 days in the future (time warp or clock problem)
gpg: key 139B09DA5BF0D338 was created 11 days in the future (time warp or clock problem)
gpg: key 139B09DA5BF0D338 was created 11 days in the future (time warp or clock problem)
gpg: key 139B09DA5BF0D338 was created 11 days in the future (time warp or clock problem)
gpg: key 139B09DA5BF0D338: no valid user IDs
gpg: key F4AA4E0ED2568E87 was created 8 days in the future (time warp or clock problem)
gpg: key F4AA4E0ED2568E87 was created 8 days in the future (time warp or clock problem)
gpg: key F4AA4E0ED2568E87 was created 8 days in the future (time warp or clock problem)
gpg: key F4AA4E0ED2568E87 was created 8 days in the future (time warp or clock problem)
gpg: key F4AA4E0ED2568E87: no valid user IDs
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349 was created 41 days in the future (time warp or clock problem)
gpg: key 905A8C3700E16349: no valid user IDs
gpg: error reading key: No public key
==> Locally signing trusted keys in keyring...
==> ERROR: 75BD80E4D834509F6E740257B1B73B02CC52A02A could not be locally signed.
==> Updating trust database...
gpg: next trustdb check due at 2022-07-10
(2/4) installing fakeroot                          [######################] 100%
(3/4) installing pacman-contrib                    [######################] 100%
Optional dependencies for pacman-contrib
    diffutils: for pacdiff [installed]
    findutils: for pacdiff --find [installed]
    mlocate: for pacdiff --locate
    sudo: privilege elevation for several scripts [installed]
    vim: default merge program for pacdiff [installed]
(4/4) installing dialog                            [######################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
Updating mirror list
bash: Error on line 18: rankmirrors -n 5 - > /etc/pacman.d/mirrorlist
60 root@archiso ~ #                                                                                                                                                                                                                        :(

smallguy60
 
文章: 10
註冊時間: 2022-01-05, 10:39

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-08-30, 08:38

xfs_fsr 指令,減少檔案碎片

XFS 是一個高效能的檔案系統,非常適合用來存放音樂檔。
所以存放音樂的磁碟,非常建議格式化為XFS,尤其是HDD。

當檔案被刪除或者變更時,XFS 會在空閒區域中分配新的空間,會導致檔案在磁碟上變得不連續,讀取效率下降。
用xfs_fsr 指令可以重新整理檔案,使其變得更加連續,從而提高讀取效率。
指令的用法:
代碼: 選擇全部
xfs_fsr [-t <time>] <directory>
-t 參數設定整理的時間間隔,預設值是 2 小時,單位是sec。

手動把 /etc/rc.local 的倒數第二行 #xfs_fsr /mnt/music 最前面的註解拿掉(#),開機後就會自動執行。
最後由 samshu 於 2023-05-01, 21:38 編輯,總共編輯了 2 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-09-02, 10:14

關於BIOS 調整對於ArchQ 的影響

小弟入手 Intel 12500 這顆CPU後,終於踏入PC旅程,但沒想到調BIOS也是大學問。
小弟上一次組PC至少超過十年了,現在的BIOS 根本眼花瞭亂,沒事幹嘛搞PC? :c01:

參照某些大師級的經驗,就是想辦法把CPU 和 RAM 的電壓調低,聲音才會好。
調到不能開機為止,這樣聲音聽來真是不錯,原來PC是這樣玩的。

BUT,原以為12500這顆用2.5GHz 就可輕鬆上Q441,調到後來,
用3.0GHz竟給我只跑 400 左右。 :b08:
只好回頭CPU 升壓至可以到441為止,原來電壓太低,CPU效能也會不彰。

有趣的是,低電壓Kernl只能跑400KHz 左右,聲音仍是比高電壓跑441好聽。
而且用低電壓跑Q441只達到400,也仍是比Q352好聽。
最後由 samshu 於 2023-05-07, 19:01 編輯,總共編輯了 3 次。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-09-11, 06:53

關於 abcde 執行失敗的處理

因為 abcde 不是隨著install 程序安裝的,而是由第一次使用 config ->abCDe ripper 時才安裝。
若網路狀況不佳,或abcde 安裝過程中斷,會造成 abcde 缺少套件而無法成功執行,可能會出現以下的內容:
代碼: 選擇全部
Executing customizable pre-read function... done.
Getting CD track info... makeids: PREGAP 0, LEADIN 150, LEADOUT 345802
Can't locate WebService/MusicBrainz.pm in @INC (you may need to install the WebService::MusicBrainz module) (@INC contains: /usr/lib/perl5/5.36/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.36/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.36/core_perl /usr/share/perl5/core_perl) at /usr/bin/abcde-musicbrainz-tool line 19.
BEGIN failed--compilation aborted at /usr/bin/abcde-musicbrainz-tool line 19.
[ERROR] abcde: abcde-musicbrainz-tool failed to run; ABORT

解決方式,執行以下指令:
sudo rm /etc/abcde.conf
config -> abCDe ripper

這樣就會重新安裝,請等到下面的畫面出現為止。
圖檔
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

Re: ArchQ, PC數位播放專用Linux 與應用

文章samshu » 2022-09-15, 08:10

ArchQ Kernel 5.19.8 版

Kernel 的功能有小微調,加上小弟的電腦換RAM,聲音應該會略微提升。
其他的就不多說了...

另外Squeezlite 的啟動方式有調整,聲音提升很多,有使用的樂友建議重新安裝。
MPD&ArchQ@Intel12600(AX1600i) -> McFifo(GaN140W) -> Audiomat Maestro 4 Reference -> Audiomat Sopos -> JMR VOCE Grande; STSD香寶線、大寶喇叭線
samshu
 
文章: 628
註冊時間: 2013-08-19, 14:49

上一頁下一頁

回到 音響區・愛亂想

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 6 位訪客

cron