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
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 ! \ |
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
# 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') |
OlderNewer