Skip to content

Instantly share code, notes, and snippets.

View tetkuz's full-sized avatar

Shota TAMURA tetkuz

  • Arent Inc.
  • Chiba, Japan
  • X @tetkuz
View GitHub Profile
@tetkuz
tetkuz / reciever.sh
Last active September 23, 2015 17:39
RTP Stream Pipeline
#!/bin/sh
gst-launch-1.0 -v \
rtpbin name=rtpbin \
udpsrc \
caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264" \
port=5555 \
! rtpbin.recv_rtp_sink_0 \
rtpbin. \
! rtph264depay ! h264parse \
@tetkuz
tetkuz / reciever.sh
Last active March 26, 2020 07:02
V4L2 Src => RTP
#!/bin/sh
gst-launch-1.0 -v \
rtpbin name=rtpbin \
udpsrc caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264" port=5004 \
! rtpbin.recv_rtp_sink_0 \
rtpbin. \
! rtph264depay ! h264parse \
! avdec_h264 ! videoconvert \
! ximagesink
@tetkuz
tetkuz / main.c
Created October 6, 2015 13:08
A very very simple GStreamer application
#include <gst/gst.h>
#include <glib.h>
int main(int argc, char *argv[])
{
GString *launch_str;
GstElement *pipeline;
GstBus *bus;
GstMessage *msg;
@tetkuz
tetkuz / _vimrc
Last active October 21, 2015 15:23
my vimrc for windows (2015/10/22) snapshot
" vim:fdm=marker:
" 画面表示の設定 {{{
set relativenumber
set ruler
set cursorline
set cursorcolumn
set laststatus=2
set showmatch
set ambiwidth=double
set hlsearch
@tetkuz
tetkuz / md2textile.sh
Last active November 16, 2015 00:11
Markdown to Textile
#!/bin/sh
### USASE ###
#
# 0. This script depend on `pandoc`
#
# 1. Please set `markdown file`
# ./md2textile.sh hoge.md
#
# 2. Will generate `textile file`
@tetkuz
tetkuz / README.md
Last active November 8, 2024 08:47
GStreamer stream to HTML5

Description

[Server] GStreamer ---> HTML [Client]

Require

  • gstreamer-1.x
  • Browser which supports video tag of HTML5

debian

@tetkuz
tetkuz / nvim-setup
Last active February 6, 2016 07:16
Simple shell script for installing nvim
#! /bin/bash
# Simple shell script for install/update nvim
# $ ./nvim-setup
# $ which nvim
# /home/user_name/usr/bin/nvim
# Var
INSTALL_DIR=$HOME/usr
UPDATE=no
set relativenumber
set ruler
set cursorline
set cursorcolumn
set laststatus=2
set showmatch
set ambiwidth=double
set hlsearch
set display=lastline
set fillchars=
@tetkuz
tetkuz / README.md
Created April 11, 2016 16:33
GStreamer JPEG RTP Streaming with msys2 on Windows
  • Sender のポイント
    • Windows なので ksvideosrc を使うこと
  • Reciever のポイント
    • udpsrc address=localhost にすること default は 0.0.0.0 になっている
      • udpsink は default で localhost へ出力する
    • application/x-rtp,encoding-name=JPEG,payload=26,clock-rate=90000 を入れる
      • このパラメータは gst-inspect-1.0 rtpjpegpay から持ってくる
  • これを設定しないと、バッファを受け取ってからのネゴシエートで落ちる
@tetkuz
tetkuz / main.cs
Created May 4, 2016 14:23
Rename files which exported from x-app
using System;
using System.Text.RegularExpressions;
using System.IO;
namespace RemameCS
{
class Program
{
static void Main(string[] args)
{