Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    MQ-Quad Armbian Kodi Audio BLE 测试记录

    H/F/TV Series
    2
    2
    2227
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Evlers LV 6 last edited by evler

      Armbian Kodi Audio BLE 测试记录

      Armbain GitHub
      感谢 sputnik 的贡献让我们能用上MQ-Quad的Armbian

      下拉并编译Armbian

      # 克隆仓库
      git clone -b v22.08 https://github.com/open-cores/mangguo-h616-armbian.git
      cd mangguo-h616-armbian
      
      # 编译桌面版
      ./compile.sh  BOARD=mangopimcore BRANCH=edge RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=yes KERNEL_ONLY=no KERNEL_CONFIGURE=no DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base COMPRESS_OUTPUTIMAGE=sha,gpg,img
      
      # 编译终端版
      ./compile.sh  BOARD=mangopimcore BRANCH=edge RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img
      

      Bluetooth Test

      # 进入 bluetooth 终端
      bluetoothctl                # Open bluetooth console
      [bluetooth]# power on       # Open bluetooth power
      [bluetooth]# scan on        # Start scanning peripheral devices
      [bluetooth]# devices        # Lists the scanned peripherals
      [bluetooth]# exit           # Exit bluetooth console
      

      HDMI Audio test

      # 配置 HDMI 的 I2S 音频
      amixer -c 1 set 'I2S1 Src Select' 'APBIF_TXDIF0'
      amixer -c 1 set 'I2S1OUT' on
      
      # 在正常使用音频之前,必须先运行-D hw:2,0命令。(每次启动只需要执行一次即可)
      aplay test.wav -D hw:2,0
      
      # 开始播放音乐
      aplay test.wav -D hw:1,0
      

      Kodi 搭建

      • 下载并解压此文件:私人云下载(速度快,随时关闭共享) 百度云下载,密钥:zht3
      # 更新下源
      apt update
      
      # 进入 kodi 目录
      cd kodi
      
      # 安装 Kodi
      apt install ./kodi_19.4+dfsg1-2_arm64.deb ./kodi-bin_19.4+dfsg1-2_arm64.deb ./kodi-data_19.4+dfsg1-2_all.deb --reinstall
      
      # 进入 ffmpeg 目录
      cd ffmpeg
      
      # 安装 ffmpeg
      apt install ./ffmpeg_4.4.1-3ubuntu9_arm64.deb ./libavcodec-dev_4.4.1-3ubuntu9_arm64.deb ./libavcodec58_4.4.1-3ubuntu9_arm64.deb ./libavdevice-dev_4.4.1-3ubuntu9_arm64.deb ./libavdevice58_4.4.1-3ubuntu9_arm64.deb ./libavfilter-dev_4.4.1-3ubuntu9_arm64.deb ./libavfilter7_4.4.1-3ubuntu9_arm64.deb ./libavformat-dev_4.4.1-3ubuntu9_arm64.deb ./libavformat58_4.4.1-3ubuntu9_arm64.deb ./libavutil-dev_4.4.1-3ubuntu9_arm64.deb ./libavutil56_4.4.1-3ubuntu9_arm64.deb ./libpostproc-dev_4.4.1-3ubuntu9_arm64.deb ./libpostproc55_4.4.1-3ubuntu9_arm64.deb ./libswresample-dev_4.4.1-3ubuntu9_arm64.deb ./libswresample3_4.4.1-3ubuntu9_arm64.deb ./libswscale-dev_4.4.1-3ubuntu9_arm64.deb ./libswscale5_4.4.1-3ubuntu9_arm64.deb --reinstall
      
      # 进入 mesa 目录
      cd mesa
      
      # 安装 mesa
      apt install  *.deb --reinstall
      
      # 完成安装即可执行以下指令启动
      # 配置 HDMI 的 I2S 音频
      amixer -c 1 set 'I2S1 Src Select' 'APBIF_TXDIF0'
      amixer -c 1 set 'I2S1OUT' on
      
      # 在正常使用音频之前,必须先运行-D hw:2,0命令。(每次启动只需要执行一次即可)
      # test.wav 可以自己随便搞个音频文件,最好是16Bit的,只测试过16Bit的音频文件
      aplay test.wav -D hw:2,0
      
      # 启动 Kodi
      kodi-standalone --windowing=gbm
      
      # 进入 Kodi 后配置硬件加速
      # 在左上角点击“设置”图标(小齿轮)进入设置页面
      
      # 依次选择进入:In Settings -> Player -> Videos
      # 进入Videos设置页面后,点击左下角的“Advanced”进入高级设置
      # 在右侧将 Allow using DRM PRIME decoder 打开
      # 再将 Allow hardware acceleration with DRM PRIME 打开
      
      # 点击左上角的"Settings"返回到“设置”页面,选择"System"进入系统配置
      # 选择左侧的“Audio”配置音频
      # 在右侧点击"Audio output device"选择第二项输出
      
      1 Reply Last reply Reply Quote Share 2
      • q1215200171
        budbool LV 9 last edited by

        不错👍👍

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策