[Server] GStreamer ---> HTML [Client]
- gstreamer-1.x
- Browser which supports video tag of HTML5
#!/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 \ |
#!/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 |
#include <gst/gst.h> | |
#include <glib.h> | |
int main(int argc, char *argv[]) | |
{ | |
GString *launch_str; | |
GstElement *pipeline; | |
GstBus *bus; | |
GstMessage *msg; |
" vim:fdm=marker: | |
" 画面表示の設定 {{{ | |
set relativenumber | |
set ruler | |
set cursorline | |
set cursorcolumn | |
set laststatus=2 | |
set showmatch | |
set ambiwidth=double | |
set hlsearch |
#!/bin/sh | |
### USASE ### | |
# | |
# 0. This script depend on `pandoc` | |
# | |
# 1. Please set `markdown file` | |
# ./md2textile.sh hoge.md | |
# | |
# 2. Will generate `textile file` |
#! /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= |
ksvideosrc
を使うこと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
から持ってくるusing System; | |
using System.Text.RegularExpressions; | |
using System.IO; | |
namespace RemameCS | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |