Skip to content

Instantly share code, notes, and snippets.

View nszceta's full-sized avatar

Adam Gradzki nszceta

View GitHub Profile
@nszceta
nszceta / gst_debugging_1.sh
Created January 8, 2025 02:20
gst_debugging_1.sh
gst-launch-1.0 videotestsrc is-live=true ! \
video/x-raw,framerate=5/1,width=2000,height=2000 ! \
jpegenc ! \
rtpgstpay pt=96 ! \
application/x-rtp,media=application,encoding-name=X-GST,payload=96,clock-rate=90000 ! \
tcpserversink host=0.0.0.0 port=5000
GST_DEBUG=3 gst-launch-1.0 tcpclientsrc host=localhost port=5000 ! \
@nszceta
nszceta / ssl_server_test.py
Created April 27, 2025 20:55
ssl_server_test.py
# test_server.py
from http.server import HTTPServer, SimpleHTTPRequestHandler
import ssl
server_address = ('localhost', 4443)
httpd = HTTPServer(server_address, SimpleHTTPRequestHandler)
# Configure SSL
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.load_cert_chain(certfile='server.crt', keyfile='server.key')