数码视讯Q5刷armbian+squeezelite
數碼視訊Q5刷armbian+squeezelite
數碼視訊Q5機頂盒介紹:
數碼視訊Q5
CPU:晶晨S905M??4核1.5G
內存:1g
存儲:8G
顯卡:Mali-450
接口:HDMI
? ?? ?USB2.0(兩個)
? ?? ?AV
? ?? ?TF卡槽
? ?? ?RJ45(1000M)
帶2.4無線
電源:DC12V 1A
目前閑魚的售價在:50-70元。
購買數碼視訊Q5時,必須問清楚,是否可以插tf卡打游戲,可以插tf卡打游戲才買,可以插tf卡打游戲才買,可以插tf卡打游戲才買,
以下是所需軟件下載鏈接
鏈接:https://pan.baidu.com/s/1q2n-Tc-5JCwvHitMHXswpQ?提取碼:cqzz
一.首先安裝和設置armbian
? ?1.1.鏡像文件:? ??
? ???armbian_5.44_S9xxx_Ubuntu_bionic_3.14.29_server_20180729.img
? ?1.2.將鏡像文件寫入tf卡
? ???
? ???在windows上用DiskGenius將tf卡分區格式化
? ???
? ???首先在DiskGenius左方框中選擇要分區的tf卡,要選正確、要選正確、要選正確(重要的事提醒三次),右鍵點擊,彈出菜單,選擇“快速分區”,在彈出的快速分區框,選擇分區類型:MBR;選擇分區數目:自定義1個分區;在右上方的高級設置選FAT32,然后點擊“確定”按鈕。等到完成后,關閉DiskGenius。
? ?? ?打開Win32DiskImager,這時頭上方的“設備”欄里有tf卡的盤符,盤符如果正確就不管了(如果只有一個tf卡插在電腦上,只要顯示盤符就可以不管,否則要選正確的盤符)。點擊“映像文件”欄右邊的文件夾符號,選擇要寫進tf卡的img文件,文件選好后,“任務進度”條下面的“寫入”按鈕可見,點擊“寫入”按鈕,開始寫入,等到寫完時會彈出“寫入完成”框,點擊“OK”按鈕,退出Win32DiskImager。
? ?1.3.啟動armbian
? ???將tf卡插入數碼視訊Q5的TF卡槽里,插上網線、電源線,按下電源開關。打開瀏覽器,登錄路由器的管理頁面,查看新增的設備名稱和IP地址。(一般顯示的設備名稱為:aml)
? ?1.4.設置armbian
? ???打開PuTTY,在HostName(or IP address)欄里,填入數碼視訊Q5的IP地址(192.168.X.XXX),然后點擊“Open”按鈕,彈出“PuTTY Security Alert”提示框,點擊“是(Y)”按鈕,彈出“192.168.X.XXX-PuTTY”窗口,窗口
? ???顯示:
? ???login as:
? ???輸入:root
? ???顯示:
? ???root@192.168.X.XXX's password:
? ???輸入:1234
? ???顯示:
login as: root
root@192.168.2.43's password:
You are required to change your password immediately (root enforced)
____??___
/ ___|/ _ \__??____??____??__
\___ \ (_) \ \/ /\ \/ /\ \/ /
___) \__, |>??<??>??<??>??<
|____/??/_//_/\_\/_/\_\/_/\_\
Welcome to ARMBIAN 5.44 user-built Ubuntu 18.04.1 LTS 3.14.29
System load:? ?1.10 0.75 0.33? ?Up time:? ?? ? 3 min
Memory usage:??10 % of 766MB? ? IP:? ?? ?? ?? ?192.168.2.43
Usage of /:? ? 3% of 29G
New to Armbian? Check the documentation first: https://docs.armbian.com
Changing password for root.
(current) UNIX password:
輸入root的舊密碼:1234
Enter new UNIX password:
輸入root的新密碼:
Retype new UNIX password:
再次輸入root的新密碼:
顯示:
Thank you for choosing Armbian! Support: www.armbian.com
Creating a new user account. Press <Ctrl-C> to abort
Please provide a username (eg. your forename):
輸入將要創建的新用戶名:
Enter new UNIX password:
輸入新用戶的密碼:
Retype new UNIX password:
再次輸入新用戶的密碼:
Full Name []:
回車
Room Number []:
回車
Work Phone []:
回車
Home Phone []:
回車
Other []:
回車
Is the information correct? [Y/n]
輸入:y
然后系統重啟,關閉PuTTY。
重新運行PuTTY,輸入root,輸入root的新密碼,
顯示:
login as: root
root@192.168.2.43's password:
____??___
/ ___|/ _ \__??____??____??__
\___ \ (_) \ \/ /\ \/ /\ \/ /
___) \__, |>??<??>??<??>??<
|____/??/_//_/\_\/_/\_\/_/\_\
Welcome to ARMBIAN 5.44 user-built Ubuntu 18.04.1 LTS 3.14.29
System load:? ?2.22 0.94 0.35? ?Up time:? ?? ? 2 min
Memory usage:??17 % of 766MB? ? IP:? ?? ?? ?? ?192.168.2.43
Usage of /:? ? 4% of 29G
[ General system configuration (beta): armbian-config ]
Last login: Sun Feb??6 03:40:16 2022 from 192.168.2.25
root@aml:~#
二.更新系統
? ?apt-get update
? ?apt-get upgrade
出錯提示
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
解決方法:
輸入:ps -A | grep apt
顯示
3907 ?? ?? ???00:00:00 apt.systemd.dai
3911 ?? ?? ???00:00:00 apt.systemd.dai
輸入:kill -SIGKILL 3907
輸入:ps -A | grep apt
顯示
3XXX ?? ?? ???00:00:00 apt.systemd.dai
3XXY ?? ?? ???00:00:00 apt.systemd.dai
輸入:kill -SIGKILL 3XXX
輸入:ps -A | grep apt
顯示沒有
輸入:reboot
系統重啟,等幾分鐘后登錄。
? ?apt-get upgrade
三.安裝squeezelite
? ? wget http://mirrors.ustc.edu.cn/debian/pool/main/s/squeezelite/squeezelite_1.8-4_arm64.deb
? ? dpkg -i squeezelite_1.8-4_arm64.deb
出錯提示
dpkg: dependency problems prevent configuration of squeezelite:
squeezelite depends on libavcodec57 (>= 7:3.2) | libavcodec-extra57 (>= 7:3.2);? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???however:
??Package libavcodec57 is not installed.
??Package libavcodec-extra57 is not installed.
squeezelite depends on libavformat57 (>= 7:3.2); however:
??Package libavformat57 is not installed.
squeezelite depends on libavutil55 (>= 7:3.2); however:
??Package libavutil55 is not installed.
squeezelite depends on libfaad2 (>= 2.7); however:
??Package libfaad2 is not installed.
squeezelite depends on libflac8 (>= 1.3.0); however:
??Package libflac8 is not installed.
squeezelite depends on libmad0 (>= 0.15.1b-3); however:
??Package libmad0 is not installed.
squeezelite depends on libmpg123-0 (>= 1.10.0); however:
??Package libmpg123-0 is not installed.
squeezelite depends on libsoxr0 (>= 0.1.0); however:
??Package libsoxr0 is not installed.
squeezelite depends on libvorbisfile3 (>= 1.1.2); however:
??Package libvorbisfile3 is not installed.
dpkg: error processing package squeezelite (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.53) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
squeezelite
解決方法:
apt --fix-broken install
? ?輸入squeezelite -?
顯示
root@aml:~# squeezelite -?
Squeezelite v1.8, Copyright 2012-2015 Adrian Smith. See -t for license terms
Usage: squeezelite [options]
??-s <server>[:<port>]??Connect to specified server, otherwise uses autodiscovery to find server
??-o <output device>? ? Specify output device, default "default", - = output to stdout
??-l? ?? ?? ?? ?? ?? ???List output devices
??-a <b>:<p>:<f>:<m>? ? Specify ALSA params to open output device, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1)
??-a <f>? ?? ?? ?? ?? ? Specify sample format (16|24|32) of output file when using -o - to output samples to stdout (interleaved little endian only)
??-b <stream>:<output>??Specify internal Stream and Output buffer sizes in Kbytes
??-c <codec1>,<codec2>??Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
??-C <timeout>? ?? ?? ? Close output device when idle after timeout seconds, default is to keep it open while player is 'on'
??-d <log>=<level>? ?? ?Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug
??-e <codec1>,<codec2>??Explicitly exclude native support of one or more codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
??-f <logfile>? ?? ?? ? Write debug to logfile
??-i [<filename>]? ?? ? Enable lirc remote control support (lirc config file ~/.lircrc used if filename not specified)
??-m <mac addr>? ?? ?? ?Set mac address, format: ab:cd:ef:12:34:56
??-M <modelname>? ?? ???Set the squeezelite player model name sent to the server (default: SqueezeLite)
??-n <name>? ?? ?? ?? ? Set the player name
??-N <filename>? ?? ?? ?Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n)
??-p <priority>? ?? ?? ?Set real time priority of output thread (1-99)
??-P <filename>? ?? ?? ?Store the process id (PID) in filename
??-r <rates>[:<delay>]??Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms
??-R -u [params]? ?? ???Resample, params = <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response>,
? ?? ?? ?? ?? ?? ?? ?? ? recipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception - resample only if native rate not supported, X = async - resample to max rate for device, otherwise to max sync rate
? ?? ?? ?? ?? ?? ?? ?? ? flags = num in hex,
? ?? ?? ?? ?? ?? ?? ?? ? attenuation = attenuation in dB to apply (default is -1db if not explicitly set),
? ?? ?? ?? ?? ?? ?? ?? ? precision = number of bits precision (NB. HQ = 20. VHQ = 28),
? ?? ?? ?? ?? ?? ?? ?? ? passband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%),
? ?? ?? ?? ?? ?? ?? ?? ? stopband_start = number in percent (Aliasing/imaging control. > passband_end),
? ?? ?? ?? ?? ?? ?? ?? ? phase_response = 0-100 (0 = minimum / 50 = linear / 100 = maximum)
??-D [delay]? ?? ?? ?? ?Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms
??-v? ?? ?? ?? ?? ?? ???Visualiser support
??-L? ?? ?? ?? ?? ?? ???List volume controls for output device
??-U <control>? ?? ?? ? Unmute ALSA control and set to full volume (not supported with -V)
??-V <control>? ?? ?? ? Use ALSA control for volume adjustment, otherwise use software volume adjustment
??-z? ?? ?? ?? ?? ?? ???Daemonize
??-t? ?? ?? ?? ?? ?? ???License terms
??-?? ?? ?? ?? ?? ?? ???Display this help text
Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR DSD LINKALL
則表示squeezelite安裝成功
四.設置squeezelite
? ?將USB解碼器用USB線同數碼視訊Q5連接上
? ?用squeezelite -l查看USB解碼器的編號
顯示
root@aml:~# squeezelite -l
Output devices:
??null? ?? ?? ?? ?? ?? ?? ?? ?? ?- Discard all samples (playback) or generate zero samples (capture)
??default:CARD=HAP90SD? ?? ?? ???- TEAC HA-P90SD, USB Audio - Default Audio Device
??sysdefault:CARD=HAP90SD? ?? ???- TEAC HA-P90SD, USB Audio - Default Audio Device
??front:CARD=HAP90SD,DEV=0? ?? ? - TEAC HA-P90SD, USB Audio - Front speakers
??surround21:CARD=HAP90SD,DEV=0??- TEAC HA-P90SD, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
??surround40:CARD=HAP90SD,DEV=0??- TEAC HA-P90SD, USB Audio - 4.0 Surround output to Front and Rear speakers
??surround41:CARD=HAP90SD,DEV=0??- TEAC HA-P90SD, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
??surround50:CARD=HAP90SD,DEV=0??- TEAC HA-P90SD, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
??surround51:CARD=HAP90SD,DEV=0??- TEAC HA-P90SD, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
??surround71:CARD=HAP90SD,DEV=0??- TEAC HA-P90SD, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
??iec958:CARD=HAP90SD,DEV=0? ?? ?- TEAC HA-P90SD, USB Audio - IEC958 (S/PDIF) Digital Audio Output
??dmix:CARD=HAP90SD,DEV=0? ?? ???- TEAC HA-P90SD, USB Audio - Direct sample mixing device
??dsnoop:CARD=HAP90SD,DEV=0? ?? ?- TEAC HA-P90SD, USB Audio - Direct sample snooping device
??hw:CARD=HAP90SD,DEV=0? ?? ?? ? - TEAC HA-P90SD, USB Audio - Direct hardware device without any conversions
??plughw:CARD=HAP90SD,DEV=0? ?? ?- TEAC HA-P90SD, USB Audio - Hardware device with all software conversions
也可以用cat /proc/asound/cards命令查看USB解碼器
cat /proc/asound/cards
顯示
1 [HAP90SD? ?? ???]: USB-Audio - TEAC HA-P90SD
? ?? ?? ?? ?? ?? ?? ? TEAC CORPORATION TEAC HA-P90SD at usb-c9000000.dwc2_a-1, high speed
? ?nano /etc/rc.local
? ???將以下命令寫入文件(必須在exit 0之前)
/etc/rc.local全部內容:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
squeezelite -o hw:1,0 -D dop -p 99 -b 4096:6892
#/boot/fan.sh &
exit 0
? ?保存退出
? ?重啟服務:systemctl restart squeezelite
? ?重新啟動系統,這樣不必每次輸入命令。
? ?安裝好squeezelite后,就可以玩DAPHILE+squeezelite雙機,也可以玩logitechmediaserver+squeezelite雙機。
?
總結
以上是生活随笔為你收集整理的数码视讯Q5刷armbian+squeezelite的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: #include NOIP2008 Ju
- 下一篇: VO、DTO、DO、PO