找回密码
 -注册-
查看: 10634|回复: 10
打印 上一主题 下一主题

数码视讯Q5刷armbian+squeezelite

[复制链接]
跳转到指定楼层
1
发表于 2022-5-8 11:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式 来自 重庆
本帖最后由 cqzhangjunhua 于 2022-5-8 11:55 编辑

数码视讯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双机。

   我目前的双机是我家云刷armbian+logitechmediaserver和数码视讯Q5刷armbian+squeezelite组成的双机,我发现这套arm硬件组成的双机系统,比x86硬件装DAPHILE+数码视讯Q5安装squeezelite组成的双机更好听。

2
发表于 2022-5-8 12:16 来自手机 | 只看该作者 来自 北美地区
很强
回复

使用道具 举报

3
发表于 2022-7-19 18:35 | 只看该作者 来自 湖南长沙
本帖最后由 shush0206 于 2022-7-19 18:36 编辑

你这个步骤,应该Q5先刷为安卓才可以吧?
回复

使用道具 举报

4
 楼主| 发表于 2022-7-19 20:10 | 只看该作者 来自 中国
shush0206 发表于 2022-7-19 18:35
你这个步骤,应该Q5先刷为安卓才可以吧?

购买数码视讯Q5时,必须问清楚,是否可以插tf卡打游戏,可以插tf卡打游戏才买,可以插tf卡打游戏才买,可以插tf卡打游戏才买,
回复

使用道具 举报

5
发表于 2022-7-26 10:48 | 只看该作者 来自 湖南
我ssh指定了USB dac
root@DietPi:~# squeezelite -o hw:CARD=R5,DEV=0
可以出声音

如何保存上面的设置?保证重启后还是usb输出?
请教下怎么敲命令!


回复

使用道具 举报

6
 楼主| 发表于 2022-7-27 08:21 | 只看该作者 来自 中国
shush0206 发表于 2022-7-26 10:48
我ssh指定了USB dac
root@DietPi:~# squeezelite -o hw:CARD=R5,DEV=0
可以出声音

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

   重新启动系统,这样不必每次输入命令。
回复

使用道具 举报

7
 楼主| 发表于 2022-7-27 08:22 | 只看该作者 来自 中国
shush0206 发表于 2022-7-26 10:48
我ssh指定了USB dac
root@DietPi:~# squeezelite -o hw:CARD=R5,DEV=0
可以出声音

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

   重新启动系统,这样不必每次输入命令。
回复

使用道具 举报

8
发表于 2022-7-27 08:52 | 只看该作者 来自 湖南
cqzhangjunhua 发表于 2022-7-27 08:22
nano /etc/rc.local

     将以下命令写入文件(必须在exit 0之前)

感谢你的指点。
回复

使用道具 举报

9
发表于 2022-8-15 16:45 | 只看该作者 来自 加拿大
楼主太强大了。再请教一下

如果所有软件的sound output 都选择USB-DAC

在armbianl里面怎么一次性设置好?
拜托!
回复

使用道具 举报

10
 楼主| 发表于 2022-8-15 19:03 | 只看该作者 来自 中国
shush0206 发表于 2022-8-15 16:45
楼主太强大了。再请教一下

如果所有软件的sound output 都选择USB-DAC

用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

这是我的系统和USB DAC的设备代号。

squeezelite的命令如下

squeezelite -o hw:1,0 -D dop -p 99 -b 4096:6892


说明:命令中的-o hw:1,0  就是USB DAC设备的代号。

   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

   重新启动系统,这样不必每次输入命令。
回复

使用道具 举报

11
发表于 2024-2-29 18:43 | 只看该作者 来自 亚太地区
谢谢,两年前的贴子翻出来还能搞定,谢谢楼主。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | -注册-

本版积分规则

Archiver|手机版|粤icp备09046054号|耳机网-耳机大家坛

粤公网安备 44030602000598号 耳机大家坛、www.erji.net、网站LOGO图形均为注册商标

GMT+8, 2024-11-28 17:27

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表