- Sender のポイント
- Windows なので
ksvideosrcを使うこと
- Windows なので
- 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から持ってくる
- このパラメータは
- これを設定しないと、バッファを受け取ってからのネゴシエートで落ちる
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
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <gst/gst.h> | |
| #include <gst/video/gstvideodecoder.h> | |
| GstElement *pipeline; | |
| GstElement *identity; | |
| GstElement *decoder; | |
| GArray *garray; |
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
| using System; | |
| using System.Text.RegularExpressions; | |
| using System.IO; | |
| namespace RemameCS | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
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
| set relativenumber | |
| set ruler | |
| set cursorline | |
| set cursorcolumn | |
| set laststatus=2 | |
| set showmatch | |
| set ambiwidth=double | |
| set hlsearch | |
| set display=lastline | |
| set fillchars= |
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/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 |
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 | |
| ### USASE ### | |
| # | |
| # 0. This script depend on `pandoc` | |
| # | |
| # 1. Please set `markdown file` | |
| # ./md2textile.sh hoge.md | |
| # | |
| # 2. Will generate `textile file` |
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
| " vim:fdm=marker: | |
| " 画面表示の設定 {{{ | |
| set relativenumber | |
| set ruler | |
| set cursorline | |
| set cursorcolumn | |
| set laststatus=2 | |
| set showmatch | |
| set ambiwidth=double | |
| set hlsearch |
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
| #include <gst/gst.h> | |
| #include <glib.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| GString *launch_str; | |
| GstElement *pipeline; | |
| GstBus *bus; | |
| GstMessage *msg; |
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 -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 |