Skip to content

Instantly share code, notes, and snippets.

@jcelerier
Forked from philhartung/stream.sh
Created October 2, 2023 12:33
Show Gist options
  • Save jcelerier/47dc19d56ed3ef2214da556f3159150b to your computer and use it in GitHub Desktop.
Save jcelerier/47dc19d56ed3ef2214da556f3159150b to your computer and use it in GitHub Desktop.
Stream a video via network to OBS with low latency (<100ms)
#!/bin/sh
# host is the IP of the receiving computer
host="192.168.0.101"
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264, width=1920, height=1080, framerate=30/1 ! rtph264pay ! udpsink host=$host port=5004
#!/bin/sh
gst-launch-1.0 udpsrc port=5004 ! application/x-rtp, encoding-name=H264 ! rtph264depay ! h264parse ! d3d11h264dec ! autovideosink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment