This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dgram = require('dgram'); | |
var socket = dgram.createSocket({ type: 'udp4', reuseAddr: true }); | |
const PORT = 9875; | |
const MULTICAST_ADDR = '239.255.255.255'; | |
//options, need to be changed | |
var addr = '127.0.0.1'; | |
var multicastAddr = '239.69.0.119'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gst-launch-1.0 audiotestsrc freq=880 !\ | |
audioconvert !\ | |
audio/x-raw, format=S24BE, channels=2, rate=48000 !\ | |
rtpL24pay !\ | |
application/x-rtp, clock-rate=48000, channels=2 !\ | |
udpsink host=239.69.0.119 port=5004 qos=true qos-dscp=34 multicast-iface=en5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gst-launch-1.0 udpsrc address=239.69.161.58 port=5004 multicast-iface=eth0 !\ | |
udpsink host=239.69.0.119 port=5004 qos=true qos-dscp=34 multicast-iface=eth1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import gi | |
gi.require_version('Gst', '1.0') | |
gi.require_version('GstNet', '1.0') | |
from gi.repository import Gst, GstNet, GObject, GLib | |
Gst.init([]) | |
mainloop = GLib.MainLoop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sdp = require('./sdp'); | |
//SDP Stuff | |
var samplerate = 48000; | |
var channels = 2; | |
var multicastAddr = '239.69.0.111'; | |
var addr = '192.168.1.1'; | |
var encoding = 'L24'; | |
var name = 'RPi 4'; | |
var sessID = Math.floor(Date.now() / 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Speaker = require('speaker'); | |
const dgram = require('dgram'); | |
const client = dgram.createSocket('udp4'); | |
var speaker = new Speaker({ | |
channels: 2, | |
bitDepth: 16, | |
sampleRate: 48000 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dgram = require('dgram'); | |
const client = dgram.createSocket({ type: 'udp4', reuseAddr: true }); | |
const sdp = require('./sdp'); | |
//config | |
const addr = '10.10.1.100'; | |
const danteMulticast = '239.255.220.221'; | |
const aes67Multicast = '239.69.1.122'; | |
const samplerate = 48000; | |
const channels = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gst-launch-1.0 udpsrc address=239.69.161.58 port=5004 multicast-iface=eth0 !\ | |
application/x-rtp, clock-rate=48000, channels=2 !\ | |
rtpjitterbuffer !\ | |
rtpL24depay !\ | |
audioconvert !\ | |
lamemp3enc !\ | |
shout2send mount=/test.mp3 port=8000 username=source password=XXX ip=10.10.0.100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gst-launch-1.0 udpsrc address=239.69.161.58 port=5004 multicast-iface=eth0 !\ | |
application/x-rtp, clock-rate=48000, channels=2 !\ | |
rtpjitterbuffer !\ | |
rtpL24depay !\ | |
audioconvert !\ | |
audioresample !\ | |
autoaudiosink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ffplay -fs -f v4l2 -i /dev/video2 -input_format mjpeg -video_size 1920x1080 -framerate 60.0 -vf "format=yuv444p,split=4[a][b][c][d];\ | |
[a]histogram=c=1,scale=w=-1:h=1080,pad=1920:ih:(ow-iw)/2[aa];\ | |
[b]scale=1920x1080[bb];\ | |
[c]waveform=scale=ire,scale=1920x1080,\ | |
drawbox=0:85:1920:3:GreenYellow:fill,\ | |
drawtext=text=100:x=0:y=50:fontsize=35:fontcolor=GreenYellow,\ | |
drawbox=0:317:1920:3:GreenYellow:fill,\ | |
drawtext=text=75:x=0:y=282:fontsize=35:fontcolor=GreenYellow,\ | |
drawbox=0:546:1920:3:GreenYellow:fill,\ |
OlderNewer