Homebrew Remote Rig Operations - Remote Rig "audio OVER ip" using Gstreamer OPUS UDP scripts

Опубликовано: 13 Октябрь 2024
на канале: QRQcw
29
0

"one line" Gstreamer Commands for both Transmit & Receive - from a REMOTE OP using a LINUX LAPTOP to a homebase RIG using a Raspberry PI - connecting to each other over IP

NOTE: this example uses the LAN, but the OPUS CODEC works well over WAN too

the rig is keyed by AUDIO ACTIVATION VOX ptt CIRCUITS - from audio on its internal USB SOUND CARD's LINE INPUT

HERE ARE THE GSTREAMER SCRIPTS used:

LAPTOP
gst-launch-1.0 -v jackaudiosrc ! "audio/x-raw,rate=48000,channels=1" ! audioconvert ! opusenc bitrate=128000 frame-size=10 inband-fec=true ! rtpopuspay ! queue ! udpsink host=192.168.1.130 port=5679 udpsrc port=5678 ! "application/x-rtp, media=(string)audio, clock-rate=(int)48000, encoding-name=(string)OPUS, sprop-stereo=(string)0, payload=(int)96" ! rtpjitterbuffer latency=30 ! rtpopusdepay ! opusdec use-inband-fec=true plc=true ! audioconvert ! jackaudiosink buffer-time=30000

PI
gst-launch-1.0 -v alsasrc ! "audio/x-raw,rate=48000,channels=1" ! audioconvert ! opusenc bitrate=128000 frame-size=10 inband-fec=true ! rtpopuspay ! queue ! udpsink host=192.168.1.101 port=5678 udpsrc port=5679 ! "application/x-rtp, media=(string)audio, clock-rate=(int)48000, encoding-name=(string)X-GST-OPUS-DRAFT-SPITTKA-00, sprop-stereo=(string)0, payload=(int)96" ! rtpjitterbuffer latency=30 ! rtpopusdepay ! opusdec use-inband-fec=true plc=true ! audioconvert ! alsasink buffer-time=30000