Add -artp option for audio RTP output

Add a new -artp command-line option that routes decoded audio to an RTP
stream instead of the local audio sink, following the existing -vrtp
pattern for video.

Usage: uxplay -artp "pt=96 ! udpsink host=127.0.0.1 port=5002"

The implementation:
- Decodes audio (AAC-ELD/ALAC) to PCM
- Converts to S16BE format required by rtpL16pay
- Preserves volume control for iOS volume adjustment
- Sends L16 RTP packets (16-bit signed big-endian, 44100Hz, stereo)
This commit is contained in:
Jacob Pritchett
2026-01-18 00:08:14 -07:00
parent 0133170ff7
commit 6039f53976
5 changed files with 67 additions and 25 deletions

View File

@@ -107,6 +107,12 @@ UxPlay 1.73: An open\-source AirPlay mirroring (+ audio streaming) server:
is the remaining pipeline, starting with rtph26*pay options:
.IP
e.g. "config-interval=1 ! udpsink host=127.0.0.1 port=5000"
.TP
\fB\-artp\fI pl\fR Use rtpL16pay to send decoded audio elsewhere: "pl"
.IP
is the remaining pipeline, starting with rtpL16pay options:
.IP
e.g. "pt=96 ! udpsink host=127.0.0.1 port=5002"
.PP
.TP
\fB\-v4l2\fR Use Video4Linux2 for GPU hardware h264 video decoding.