This file contains 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
#!/usr/bin/python | |
import socket # Import socket module | |
from threading import Thread | |
def on_new_client(clientsocket, addr): | |
try: | |
while True: | |
msg = clientsocket.recv(1024) | |
if not msg: |
This file contains 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
#!/bin/bash -x | |
INRES="1920x1200" | |
OUTRES="1280x720" | |
FPS="30" | |
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -f alsa -ac 2 \ | |
-i default -vcodec libx264 -s "$OUTRES" \ | |
-acodec libmp3lame -ab 128k -ar 44100 \ | |
-threads 0 -f flv $1 |
OlderNewer