It’ve just tested it with my Raspberry Pi 3B+.

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.

Introduction

An open-source implementation of an AirPlay mirroring server for the Raspberry Pi.

Building

The following packages are required for building on Raspbian:

  • cmake (for the build system)
  • libavahi-compat-libdnssd-dev (for the bonjour registration)
  • libssl-dev (for crypto primitives)
  • ilclient and Broadcom’s OpenMAX stack as present in /opt/vc in Raspbian.

For downloading the code, use these commands:

git clone https://github.com/FD-/RPiPlay.git
cd RPiPlay

For building on a fresh Raspbian Stretch or Buster install, these steps should be run:

sudo apt-get install cmake
sudo apt-get install libavahi-compat-libdnssd-dev
sudo apt-get install libssl-dev
mkdir build
cd build
cmake ..
make

GCC 5 or later is required.

Usage

Start the rpiplay executable and an AirPlay mirror target device will appear in the network.
At the moment, these options are implemented:

-n name: Specify the network name of the AirPlay server.

-b (on|auto|off): Show black background always, only during active connection, or never.

-r (90|180|270): Specify image rotation in multiples of 90 degrees.

-l: Enables low-latency mode. Low-latency mode reduces latency by effectively rendering audio and video frames as soon as they are received, ignoring the associated timestamps. As a side effect, playback will be choppy and audio-video sync will be noticably off.

-a (hdmi|analog|off): Set audio output device

-d: Enables debug logging. Will lead to choppy playback due to heavy console output.

-v/-h: Displays short help and version information.

it Works


中文

安装airaplay步骤

  1. 依赖
sudo apt-get install git -y
sudo apt-get install cmake -y
sudo apt-get install libavahi-compat-libdnssd-dev -y
sudo apt-get install libssl-dev -y
  1. 下载
cdcd RPiPlay
  1. 安装并构建
mkdir build
cd build
cmake ..
make
  1. 设置开机自动启动

移动到指定目录

sudo mv ~/RPiPlay /usr/local

sudo vi /lib/systemd/system/mirror.service

设置system service

[Unit]                                                                                                                  
Description=rpi-mirror                                                                                                  
After=network.target                                                                                                    
Wants=network.target                                                                                                    

[Service]
Type=simple                                                                                                             
PIDFile=/run/mirror-rpi.pid                                                                                             
ExecStart=/usr/local/RPiPlay/build/rpiplay  -b auto -n mirror   -a analog -l                                            
Restart=on-failure                                                                                                      
# Don't restart in the case of configuration error                                                                      
RestartPreventExitStatus=23                                                                                             

[Install]                                                                                                               
WantedBy=multi-user.target  

更新系统服务

sudo systemctl daemon-reload
sudo systemctl enable mirror.service
(Author)
No description.Please update your profile.

View all post by admin

Leave Comments

我们立足于美利坚合众国,对全球华人服务,受北美法律保护