Giter VIP home page Giter VIP logo

rc-server's Introduction

RC-Server

Use sudo npm install --unsafe-perm to install.
Use sudo node server.js to start.

G-Streamer Notizen

GStreamer pipelines:

H.264 Stream aus der C920 und mit RTP und UDP auf Server schicken: gst-launch-1.0 uvch264src average-bitrate=1000000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink sync=false host= your.server.ip port=5000

Server empfängt über UDP und sendet an lokalen MediaServer: gst-launch-1.0 udpsrc caps="application/x-rtp,payload=127" port=5000 ! rtph264depay ! capsfilter caps="video/x-h264,width=1920,height=1080" ! flvmux streamable=true ! rtmpsink location='rtmp://127.0.0.1:1935/live1/sers'

Direkt von Kamera an lokalen MediaServer: --gst-launch-1.0 uvch264src average-bitrate=1000000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline ! h264parse gst-launch-1.0 v4l2src device=/dev/video0 ! x264enc ! flvmux streamable=true ! rtmpsink location='rtmp://127.0.0.1:1935/live/sers'

Direkt von Kamera über TCP an Host: gst-launch-1.0 v4l2src device=/dev/video0 ! vp8enc ! webmmux ! tcpserversink host=http://192.168.0.11 port=8080

H.264 Stream aus der C920 und mit RTP und UDP auf Server schicken: gst-launch-1.0 uvch264src average-bitrate=1000000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink sync=false host= your.server.ip port=5000

H.264 Stream aus der C920 und mit RTP und UDP auf Server (Janus) schicken: gst-launch-1.0 uvch264src average-bitrate=1000000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink host=192.168.0.202 port=8004 gst-launch-1.0 uvch264src average-bitrate=1000000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1280,height=720,framerate=20/1,profile=constrained-baseline ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink host=192.168.0.202 port=8004 gst-launch-1.0 uvch264src average-bitrate=1000000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=640,height=480,framerate=5/1,profile=constrained-baseline ! h264parse ! rtph264pay ! udpsink host=192.168.0.51 port=8004

Testvideo mit RTP und UDP auf Server (Janus) schicken: gst-launch-1.0 videotestsrc ! x264enc ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink host=192.168.0.202 port=8004

H.264 Stream aus nicht H264 kompatibler Kamera encoden und mit RTP und UDP auf Server (Janus) schicken: gst-launch-1.0 autovideosrc ! x264enc ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink host=192.168.0.202 port=8004

H.264 Stream aus mp4-Datei encoden und mit RTP und UDP auf Server (Janus) schicken: gst-launch-1.0 filesrc location='/home/pi/Videos/Accel World - Episode 21.mp4' ! qtdemux ! h264parse ! rtph264pay pt=127 config-interval=2 ! udpsink host=192.168.0.202 port=8004

gst-launch-1.0 udpsrc ! autovideosink

sudo mv janus.plugin.streaming.cfg /opt/janus/etc/janus/

sudo ./janus -F /opt/janus/etc/janus/

v4l2-ctl --list-devices v4l2-ctl --list-ctrls --device=/dev/video0 v4l2-ctl --set-ctrl=focus_auto=0

rc-server's People

Contributors

dooobi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.