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
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') |