Streaming audio via GStreamer RTP to Janus Gateway (and hearing it)
Janus Server (on internet, not behind NAT)
------
sudo apt install snapd
sudo snap install janus-gateway
See https://github.com/RSATom/janus-gateway-snap for useful info
cd /snap/janus-gateway/current/opt/janus/share/janus/demos && /usr/bin/python -m SimpleHTTPServer 6545 (demo site)
cd /var/snap/janus-gateway/common/etc/
sudo mv janus.plugin.streaming.jcfg janus.plugin.streaming.jcfg.orig
edit janus.plugin.streaming.jcfg, adding only
frontdooraudio: {
type = "rtp"
id = 1
description = "Front Door Audio"
video = false
audio = true
audioport = 5002
audiopt = 111
audiortpmap = "opus/48000/2"
secret = "adminpwd"
}
sudo snap restart janus-gateway
sudo snap logs janus-gateway -n all
sudo snap logs janus-gateway -f
Pi (local LAN, behind NAT)
--
arecord -l to find equivalent of "hw:1"
/usr/bin/gst-launch-1.0 alsasrc device=hw:1 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! queue max-size-bytes=0 max-size-buffers=0 ! udpsink host=bouncer.repoze.org port=5002
(see https://github.com/leerikss/baby-monitor, from which this was cargo-culted)
Browser (local LAN, behind NAT, but works from nonlocal-cel-connected phone too)
-------
Visit http://yourserverip:6545/streamingtest.html
Start, choose stream, start it.
Listen.
Видео Streaming audio via GStreamer RTP to Janus Gateway (and hearing it) канала Chris McDonough
------
sudo apt install snapd
sudo snap install janus-gateway
See https://github.com/RSATom/janus-gateway-snap for useful info
cd /snap/janus-gateway/current/opt/janus/share/janus/demos && /usr/bin/python -m SimpleHTTPServer 6545 (demo site)
cd /var/snap/janus-gateway/common/etc/
sudo mv janus.plugin.streaming.jcfg janus.plugin.streaming.jcfg.orig
edit janus.plugin.streaming.jcfg, adding only
frontdooraudio: {
type = "rtp"
id = 1
description = "Front Door Audio"
video = false
audio = true
audioport = 5002
audiopt = 111
audiortpmap = "opus/48000/2"
secret = "adminpwd"
}
sudo snap restart janus-gateway
sudo snap logs janus-gateway -n all
sudo snap logs janus-gateway -f
Pi (local LAN, behind NAT)
--
arecord -l to find equivalent of "hw:1"
/usr/bin/gst-launch-1.0 alsasrc device=hw:1 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! queue max-size-bytes=0 max-size-buffers=0 ! udpsink host=bouncer.repoze.org port=5002
(see https://github.com/leerikss/baby-monitor, from which this was cargo-culted)
Browser (local LAN, behind NAT, but works from nonlocal-cel-connected phone too)
-------
Visit http://yourserverip:6545/streamingtest.html
Start, choose stream, start it.
Listen.
Видео Streaming audio via GStreamer RTP to Janus Gateway (and hearing it) канала Chris McDonough
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Google Nest Mini Gen 2 ReviewNixOS 44: Filtering Systemd Log Messages on NixOS 23.05OnePlus Pad vs. Lenovo Tab P11 Pro Gen 1NixOS 29: Using Older (Working) Revisions of Software When the Latest Doesn't WorkNixOS 55: ZFS Backups Using Syncoid (Revisited)NixOS 62: Run MacOS X on NixOS With a Single Command (NixThePlanet)NixOS 47: Packaging GotchasNixOS 88: Nix PhD Thesis (Sect. 2.2, Nix Expressions)NixOS 79: Flakes + Home Manager Multiuser/Multihost Configuration (Part 1)NixOS 94: Nix PhD Thesis Sections 4.3/4.4; Nix Language Semantics, ImplementationNixOS 39: Why You Should Maybe Be Excited About NixOSDaVinci Resolve 18.6 on Linux: Redux and WorkaroundsIBM Model M Bolt Modification Bolt CenteringNixOS 46: Debugging A Failing BuildNixOS 67: A Tour of My NixOS ConfigurationNixOS 65: Using devenv on Ubuntu and devenv's Pain PointsNixOS 26: Overriding Simple Values in Nix ConfigurationNixOS 22: Backing Up and Restoring Your Home Directory When You Use home-managerNixOS 23: Making Recalcitrant Hardware Work (aka Why-Doesnt-My-Wireless-Work)NixOS 53: ZFS Backups Using Syncoid