Em báo cáo tình hình khảo sát TC.
- Tháng 10/2020. Dev willardting làm việc cho ifi-audio úp lên github bộ binaries TC. Đã bị xóa:
https://github.com/willardting/ifi-tidal
- Sau đó TC này xuất hiện ở git của ifi-audio. Vẫn tồn tại cho đến giữa tháng 1/2021. Đã bị xóa:
https://github.com/ifi-audio/ifi-tidal-release
- Cuối tháng 10/2020 dev ppy2 đã fork git của ifi-audio. Đã bị xóa:
https://github.com/ppy2/ifi-tidal-release
- Cuối tháng 10/2020 dev seniorgod fork git của ppy2. Đến nay vẫn còn.
https://github.com/seniorgod/ifi-tidal-release
- Cuối tháng 10/2020 dev shawaj fork git của dev seniorgod. Đến nay vẫn còn:
https://github.com/shawaj/ifi-tidal-release
- Đầu tháng 2/2021. Dev dimas
compile lại TC, sau đó đưa vào bản dastereo rpi3_20210202.
Tóm lại. Đến giờ chỉ có 2 bản TC. Mỗi bản có 2 cách start.
Em tạm gọi là bản ifi (Bao gồm willardting, ifi-audio, ppy2, seniorgod và shawaj) và bản dimas.
1. Bản ifi có 2 cách start:
Cách 1:
Mã:
ExecStart=/usr/ifi/ifi-tidal-release/play.sh
Service status:
Mã:
● ifi-streamer-tidal-connect.service - iFi Streamer Tidal Connect Service
Loaded: loaded (/lib/systemd/system/ifi-streamer-tidal-connect.service; disabled)
Active: active (running) since Mon 2021-03-29 06:19:52 +07; 1min 18s ago
Main PID: 8523 (tidal_connect_a)
CGroup: /system.slice/ifi-streamer-tidal-connect.service
└─8523 /usr/ifi/ifi-tidal-release/bin/tidal_connect_application --tc-certificate-path /usr/ifi/ifi-tidal-release/id_certificate/IfiAudio_ZenStream.dat -f Streamer-name --codec-mpegh true --codec-mqa false --model-name iFi Streamer --disable-app-security false --disable-web-security false --enable-mqa-passthrough false --log-level 3 --enable-websocket-log 0
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Mar 29 06:19:52 smpd tidal_connect_application[8523]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Mar 29 06:19:52 smpd tidal_connect_application[8523]: STARTED TidalConnect services.
Cách 2:
Mã:
ExecStart=/usr/ifi/ifi-tidal-release/bin/tidal_connect_application --tc-certificate-path /usr/ifi/ifi-tidal-release/id_certificate/IfiAudio_ZenStream.dat -f Streamer-name --codec-mpegh true --codec-mqa false --model-name iFi Streamer --disable-app-security false --disable-web-security false --enable-mqa-passthrough false --log-level 3 --enable-websocket-log 0
Service status:
Mã:
● tidalifi.service - tidal connect
Loaded: loaded (/lib/systemd/system/tidalifi.service; disabled)
Active: active (running) since Mon 2021-03-29 06:12:49 +07; 3min 16s ago
Main PID: 8168 (play.sh)
CGroup: /system.slice/tidalifi.service
├─8168 /bin/bash /usr/ifi/ifi-tidal-release/play.sh
└─8181 /usr/ifi/ifi-tidal-release/bin/tidal_connect_application --clientid hWhSHB4pzu3c8vU9 --tc-certificate-path /usr/ifi/ifi-tidal-release/id_certificate/IfiAudio_ZenStream.dat --netif-for-deviceid eth0 -f Streamer-name --codec-mpegh true --codec-mqa true --model-name iFi Streamer --disable-app-security false --disable-web-security false --enable-mqa-passthrough false --playback-device BossDAC: - (hw:0,0) --log-level 1
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Mar 29 06:12:49 smpd play.sh[8168]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Mar 29 06:12:50 smpd play.sh[8168]: STARTED TidalConnect services.
2. Bản dimas có 2 cách start:
Cách 1:
Mã:
ExecStart=/opt/tidal/play.sh
Service status:
Mã:
● tidal.service - tidal connect
Loaded: loaded (/etc/systemd/system/tidal.service; disabled)
Active: active (running) since Sat 2021-03-27 16:42:20 +07; 25min ago
Process: 5853 ExecStartPre=/bin/sh -c /opt/tidal/init.sh start (code=exited, status=0/SUCCESS)
Main PID: 5957 (sh)
CGroup: /system.slice/tidal.service
├─5957 /opt/tidal/play.sh -c #!/bin/sh ! test -f /opt/utils/hid && exit ! test -f /opt/utils/hidr && exit FULL_PATH=$(realpath ${0}) THIS_NAME=${FULL_PATH##*/} SAME_DIR=${FULL_PATH%${THIS_NAME}} BROADCAST_NAME="DAStreamer" echo "Content-Disposition: attachment; filename=\"smime.p7m\" Content-Type: application/x-pkcs7-mime; smime-type=enveloped-data; name=\"smime.p7m\" Content-Transfer-Encoding: base64" > /tmp/cert.dat echo " MIIPFQYJKoZIhvcNAQcDoIIPBjCCDwICAQAxggEpMIIBJQIBADANMAACCQDko0R1 aHKQFzANBgkqhkiG9w0BAQEFAASCAQBDAAkTa1m9vQ23K7tN4oYr1ZsPijXRaiPC vVCDsOMdkq/4fGRUghGcAyhHC45M8IKDHP9Wvcuc/c73rxpnWYCh1yv7UFP6PjQm /nWedBWBxM1YXS4GJK7GLI2gN2Sm2ah/liXtf+AV4iYb8q779//z3cq3pzKhkYBt 142Ns5zWFzjH6GXP7woiCAHZPv8t95oA6FejQ59f20FJwzaBfzT9bYCfLLz74gbT NrkJ+ZlQtbXgfClaqsdusQsCn9JHOEkN2+ossLIjVpnxtH/JFvoGho+6VFxx+iz3 jDmpNpvZX3LKUXi4oJ2D3xRBwlIH11bk8oCRMcRazmJaUanVbPqBMIINzgYJKoZI hvcNAQcBMB0GCWCGSAFlAwQBKgQQy9JNbN/YboGbmzEk6l2Qf4CCDaDwYiZKkD8S L3w0DO4llrHRs55TmVDBbytviSTDJHubPTdB07P6ZmTsdth/7yquI2aOXSmW37B7 SCHTtzPOc2gxoa1h1DOgYjedd8pECipTizIvkFy45EuiKHuo7nASgGVVp+CMG1PN Fn8LXsKiR1KP5skXDHK4JvnafDxRkgszavW//DHoaWsw/IqbFovstoRuPU5OrX8r XVa2kjiFNEXsdHOGUvg6dOMaAyVkqe2iVgqsnqOVFJH84Pzzx+A7v1xQudDG64Tz yPhp8vpMpyQMSPXlJ9td/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AaARTtqSuTZSi UT3Hv/OdUtuxc9sHZAGkLTS8v+xC0Tt/W8uZyTvN+Ck45BWYvdX5Uy3Yq4xkRb1C yX++Sg0ykF3dGEdznbLSfb0IOvDK0WDu9Q==" >> /tmp/cert.dat # Get the current available output devices netdev=eth0 if test -f /etc/tidal.conf; then name=$(cat /etc/tidal.conf |grep ^Name) name=${Name#*=} [ -n "$name" ] && BROADCAST_NAME="$name" mqa=$(cat /etc/tidal.conf |grep ^MQAdecode) mqa=${MQAdecode#*=} [ "$mqa" == "yes" ] && mqapass=false || mqapass=true else mqapass=false fi /opt/utils/hidr & # Start the Tidal Connect Service ${SAME_DIR}bin/tidal_connect \ --clientid "VCjoaRrbaMU005Tk" \ --tc-certificate-path "/tmp/cert.dat" \ --netif-for-deviceid $netdev \ -f "${BROADCAST_NAME}" \ --codec-mpegh false \ --codec-mqa true \ --model-name "One" \ --disable-app-security true \ --disable-web-security true \ --enable-mqa-passthrough $mqapass \ --log-level 0 #>/dev/null 2>&1 & /opt/tidal/play.sh
└─5962 /opt/tidal/bin/tidal_connect --clientid VCjoaRrbaMU005Tk --tc-certificate-path /tmp/cert.dat --netif-for-deviceid eth0 -f DAStreamer --codec-mpegh false --codec-mqa true --model-name One --disable-app-security true --disable-web-security true --enable-mqa-passthrough false --log-level 0
Cách 2:
Mã:
ExecStart=/opt/tidal/bin/tidal_connect --tc-certificate-path /opt/tidal/id_certificate/IfiAudio_ZenStream.dat -f DAStreamer --codec-mpegh true --codec-mqa false --model-name One --disable-app-security false --disable-web-security false --enable-mqa-passthrough false --log-level 3 --enable-websocket-log 0
Service status:
Mã:
● tidalconnect.service - Tidal Connect dimas mod
Loaded: loaded (/lib/systemd/system/tidalconnect.service; disabled)
Active: active (running) since Mon 2021-03-29 06:17:25 +07; 14s ago
Main PID: 8398 (tidal_connect)
CGroup: /system.slice/tidalconnect.service
└─8398 /opt/tidal/bin/tidal_connect --tc-certificate-path /opt/tidal/id_certificate/IfiAudio_ZenStream.dat -f DAStreamer --codec-mpegh true --codec-mqa false --model-name One --disable-app-security false --disable-web-security false --enable-mqa-passthrough false --log-level 3 --enable-websocket-log 0
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Mar 29 06:17:26 smpd tidal_connect[8398]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Mar 29 06:17:26 smpd tidal_connect[8398]: STARTED TidalConnect services.
Em tạm kết luận:
Ở mỗi bản TC, 2 cách khác nhau thực chất đều chạy bằng tidal_connect*. Khác nhau cách lấy biến và tham số.
Ở bản TC của dimas. Em thấy tiếng có vẻ hay hơn bản ifi.
Cả 2 bản này. Nếu dùng cách 2 sẽ dễ kiểm soát biến và tham số hơn.
Hiện nay em test trên smpd 0.9.6. TC của bản dimas âm thanh hay hơn ifi một chút. Em đang test chạy theo cách 2. Chỉ set priority 2 process đầu tiên.