Skip to content

Commit 2c59443

Browse files
committed
Rename sender to ffmpeg_transmitter, move IP/port to constants, update README
1 parent 698493c commit 2c59443

6 files changed

Lines changed: 99 additions & 17 deletions

File tree

bin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ Install `ffmpeg`:
4545
sudo apt install ffmpeg
4646
```
4747

48-
To transmit system audio, use the provided startup script **StartFFmpegTransmitter.sh**:
48+
To transmit system audio, use the provided startup script **ffmpeg_transmitter.sh**:
4949

5050
1. Edit the script and replace the IP address with the address of your receiver.
5151
2. Set the port number to match the configuration on the receiver.
5252
3. Make the script executable:
5353

5454
```bash
55-
chmod +x StartFFmpegTransmitter.sh
55+
chmod +x ffmpeg_transmitter.sh
5656
```
5757

5858
4. Save the file, place it on the desktop, and start it with a double-click.

bin/UDP_Audio_Quick_Start.txt

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
DP Audio Streaming – Quick Start Guide
2+
3+
This document describes how to start the UDP audio sender
4+
and how to install and start the UDP audio receiver using
5+
the provided .deb package.
6+
7+
8+
SENDER (Audio Transmitter)
9+
10+
The sender uses ffmpeg to transmit uncompressed stereo audio over UDP.
11+
Install ffmpeg (if not already installed): sudo apt install ffmpeg
12+
13+
Use the provided script: ffmpeg_transmitter.sh
14+
15+
Edit the script:
16+
Set the IP address of the receiver
17+
Set the UDP port (must match the receiver configuration)
18+
Make the script executable:
19+
20+
chmod +x ffmpeg_transmitter.sh
21+
22+
Start the sender:
23+
Double-click the script
24+
or
25+
Run it from a terminal
26+
27+
Audio is now streamed via UDP to the receiver.
28+
29+
30+
31+
RECEIVER (UDP Audio Player)
32+
33+
Install the receiver using the .deb package: sudo dpkg -i udp_player_1.0.12.deb
34+
35+
During installation:
36+
The binary is installed to /usr/bin/udp_player
37+
A desktop menu entry is created
38+
Required capabilities are set automatically
39+
(cap_net_raw, cap_sys_nice+ep)
40+
This means the player can be started without sudo.
41+
42+
Start the receiver:
43+
44+
From terminal: udp_player
45+
Or via the desktop menu entry
46+
47+
First start behavior:
48+
A configuration file is created automatically
49+
Default audio device settings are generated
50+
Audio plays when UDP packets arrive
51+
52+
NOTES
53+
54+
Sender and receiver port numbers must match
55+
For low latency, use a wired (LAN) connection if possible
56+
Audio output device can be selected in the receiver settings
57+

bin/ffmpeg_transmitter.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# ==================================================
4+
# Configuration
5+
# ==================================================
6+
RECEIVER_IP="192.168.192.123"
7+
RECEIVER_PORT="5010"
8+
9+
# ==================================================
10+
# Start FFmpeg sender in terminal
11+
# ==================================================
12+
lxterminal -e /usr/bin/ffmpeg \
13+
-f pulse -i default \
14+
-acodec pcm_s16le \
15+
-f rtp \
16+
-fflags nobuffer \
17+
-flags low_delay \
18+
-max_delay 0 \
19+
-flush_packets 1 \
20+
rtp://${RECEIVER_IP}:${RECEIVER_PORT}

bin/start_ffmpeg_transmitter.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

source/ffmpeg_transmitter.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# ==================================================
4+
# Configuration
5+
# ==================================================
6+
RECEIVER_IP="192.168.192.123"
7+
RECEIVER_PORT="5010"
8+
9+
# ==================================================
10+
# Start FFmpeg sender in terminal
11+
# ==================================================
12+
lxterminal -e /usr/bin/ffmpeg \
13+
-f pulse -i default \
14+
-acodec pcm_s16le \
15+
-f rtp \
16+
-fflags nobuffer \
17+
-flags low_delay \
18+
-max_delay 0 \
19+
-flush_packets 1 \
20+
rtp://${RECEIVER_IP}:${RECEIVER_PORT}

source/start_ffmpeg_transmitter.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)