This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,\ |
This file contains hidden or 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 { RtAudio, RtAudioFormat } = require('audify'); | |
| const rtAudio = new RtAudio(); | |
| // constants | |
| const samplerate = 48000; | |
| const ffp = 48; | |
| // audio device | |
| let audioOutput = { | |
| deviceId: rtAudio.getDefaultOutputDevice(), |
This file contains hidden or 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 chalk = require('chalk'); | |
| const ptpv2 = require('ptpv2'); | |
| let interface = '10.0.0.12'; | |
| //let multicastAddr = '239.69.161.58'; | |
| let multicastAddr = '239.69.80.114'; | |
| let samplerate = 48000; | |
| let client = dgram.createSocket({ type: 'udp4', reuseAddr: true }); |
This file contains hidden or 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 process = require('process'); | |
| const sdp = require('./sdp'); | |
| let client = dgram.createSocket({ type: 'udp4', reuseAddr: true }); | |
| let clients = []; | |
| if(!process.argv[2] || !(parseInt(process.argv[2]) > 0)){ | |
| console.log('$ node multiply 12'); |
This file contains hidden or 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
| ffplay.exe -f dshow -i video="OBS Virtual Camera" -vf "format=yuva444p,split=2[a][b];[a]histogram=c=7:fgopacity=0.9[aa];[b][aa]overlay" |
This file contains hidden or 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 -exitonkeydown -exitonmousedown -fs -fflags nobuffer -probesize 32 -analyzeduration 1 -f lavfi -i "amovie=default:f=alsa,asplit=2[sv][eb];\ | |
| [sv]showvolume=b=0:o=v:w=480:h=23[sv-v];\ | |
| [eb]ebur128=video=1:size=754x480[eb-v][out1];\ | |
| [eb-v][sv-v]hstack=2[out0]" |
This file contains hidden or 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 | |
| # host is the IP of the receiving computer | |
| host="192.168.0.101" | |
| gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264, width=1920, height=1080, framerate=30/1 ! rtph264pay ! udpsink host=$host port=5004 |
OlderNewer