Skip to content

Instantly share code, notes, and snippets.

View KensakuKOMATSU's full-sized avatar

Kensaku KOMATSU KensakuKOMATSU

View GitHub Profile
sudo certbot certonly -d sig.kokutele.com -m kensaku.komatsu@gmail.com
@KensakuKOMATSU
KensakuKOMATSU / canvas-stream.html
Created June 10, 2020 01:29
canvas capturestream sample
<!doctype html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.webrtc.ecl.ntt.com/skyway-latest.js"></script>
</head>
<body>
<button id="enterRoom">enter room</button>
<h2>canvas out</h2>
<div>
@KensakuKOMATSU
KensakuKOMATSU / FF58 + host only
Last active January 4, 2018 01:10
janus0.2.6 under Vagrant env
{
"session_id": 5299686082594757,
"session_last_activity": 3366296934,
"session_transport": "janus.transport.http",
"handle_id": 5427018757107219,
"opaque_id": "streamingtest-RGxoUflbzuDb",
"created": 3356560770,
"send_thread_created": false,
"current_time": 3369463208,
"plugin": "janus.plugin.streaming",
@KensakuKOMATSU
KensakuKOMATSU / installer.sh
Last active May 2, 2019 01:40
Nov3rd2017_motion_detection
#!/bin/bash
# Script to install [SkyWay IoT SDK](https://github.com/nttcom/skyway-iot-sdk) onto general debian series.
# Tested environments are:
# Ubuntu16.04
# Raspbian jessie
#
# Run as root or insert `sudo -E` before `bash`
APIKEY="THIS_KEY_WILL_BE_UPDATED"
cd ~
curl https://gist.githubusercontent.com/KensakuKOMATSU/cd2859aeb5e0432740eb/raw/cabcbc0aefea6d8c86fc491903812fc1658938c5/vimrc > .vimrc
git clone https://github.com/wgallios/Vundle.vim.git
mkdir .vim;mkdir .vim/bundle
mv Vundle.vim .vim/bundle
@KensakuKOMATSU
KensakuKOMATSU / run-gst-pipeline.sh
Created September 16, 2017 00:04
sample pipeline gstreamer script for H.264
#!/bin/bash
HOST=10.49.52.197
gst-launch-1.0 v4l2src device=/dev/video0 ! \
video/x-raw,format=RGB,width=640,height=480,framerate=30/1 ! \
videoconvert ! timeoverlay ! \
omxh264enc target-bitrate=2000000 control-rate=variable ! \
rtph264pay config-interval=1 pt=96 ! \
udpsink host=${HOST} port=15004
@KensakuKOMATSU
KensakuKOMATSU / janus.cfg
Last active August 24, 2017 23:44
skyway iot sdk sample configs
; General configuration: folders where the configuration and the plugins
; can be found, how output should be logged, whether Janus should run as
; a daemon or in foreground, default interface to use, debug/logging level
; and, if needed, shared apisecret and/or token authentication mechanism
; between application(s) and Janus.
[general]
configs_folder = /opt/janus/etc/janus ; Configuration files folder
plugins_folder = /opt/janus/lib/janus/plugins ; Plugins folder
transports_folder = /opt/janus/lib/janus/transports ; Transports folder
;log_to_stdout = false ; Whether the Janus output should be written
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" plugins
" ---------------------
Plugin 'wgallios/Vundle.vim'
Plugin 'scrooloose/nerdtree.git'

janus

https://github.com/meetecho/janus-gateway

Meetecho がメンテしているオープンなWebRTC Gateway Project. 今んところLinuxをサポート

  • サーバーサイドLinuxとしてのふがほげ
  • Raspberry PI用のふがほげ に使うのに便利そう

個人的に気に入っているのは

@KensakuKOMATSU
KensakuKOMATSU / callee.html
Last active August 29, 2015 14:24
one way video streaming sample gist
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="https://skyway.io/dist/0.3/peer.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
</head>
<body>
<h1>callee</h1>
myid: <input id="myid" type="number" readonly><br>