Skip to content

Instantly share code, notes, and snippets.

@BillKills974
BillKills974 / adaptive_stream_videotest.py
Created October 16, 2025 22:26
GStreamer adaptive stream videotest
import gi
import sys
from time import sleep
gi.require_version("Gst", "1.0")
from gi.repository import Gst, GObject
Gst.init(sys.argv)
pipeline = Gst.parse_launch('videotestsrc ! videobalance name=bal saturation=1 ! videoscale ! videorate ! capsfilter name=caps caps="video/x-raw,width=640,height=480,framerate=10/1" ! x264enc name=enc bitrate=3000 tune=zerolatency speed-preset=veryfast byte-stream=true ! rtph264pay ! udpsink host=127.0.0.1 port=5000')