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
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
const hid = require('node-hid'); | |
const { Cam } = require('onvif'); | |
const yargs = require('yargs/yargs'); | |
const { hideBin } = require('yargs/helpers'); | |
const argv = yargs(hideBin(process.argv)) | |
.option('hostname', { | |
alias: 'h', | |
describe: 'Server hostname', | |
demandOption: true, |
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 | |
# 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 |
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
#/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 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 | |
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
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" |
NewerOlder