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 cv2 | |
import socketio #python-socketio by @miguelgrinberg | |
import base64 | |
sio = socketio.Client() | |
sio.connect('http://x.x.x.x:xxxx) | |
cam = cv2.VideoCapture(0) | |
while (True): |
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 | |
gi.require_version('Gst', '1.0') | |
from gi.repository import GObject, Gst | |
from threading import Thread, Event | |
Gst.init(None) | |
class Main: | |
def __init__(self): | |
self.pipeline = Gst.Pipeline.new("pipeline") |
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 uuid | |
import json | |
# Returns a python dictionary given a file containing a JSON-based | |
# component definition. Every definition *must* contain a 'type' | |
# and 'schema' field inside a top-level dictionary. Here is an | |
# example of a simple schema file that defines a 'meta' component | |
# containing a 'name' field. | |
# |
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
#!/usr/bin/python3 | |
# script created for reading SMS messages from 3G modem connected to PC | |
# 1) it looks for modem | |
# 2) reads all SMS messages from modem | |
# 3) prints all found SMS messages to stdout only if total messages count | |
# greater than SMS_STORE_COUNT (default is 3) | |
# 4) save all but SMS_STORE_COUNT messages to txt files and | |
# delete them from modem |
Preamble:
In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.
The problem:
Streaming low-latency live content is quite hard, because most software-based video codecs are designed to achieve the best compression and not best latency. This makes sense, because most movies are encoded once and decoded often, so it is a good trade-off to use more time for the encoding than the decoding.
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
#include "Bjorklund.h" | |
//Edited NoisyLittleBurger's Bjorklund Algorithm in C | |
//http://www.noisylittlebugger.net/diy/bjorklund/Bjorklund_Working_Final/Bjorklund_algorithm_arduino.txt | |
//CHANGED : | |
//1. use dynamic array. | |
//2. fixed sequence's off-spot problem | |
//3. added Explanation about Algorithm based on G.Touissant's Paper, | |
//"The Euclidean Algorithm Generates Traditional Musical Rhythms" | |
// |
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
#### Issue description | |
#### Steps to reproduce the issue | |
1. | |
2. | |
3. |