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
# Maintainer: Martin Hundebøll <[email protected]> | |
pkgname=tio | |
pkgver=1.33 | |
pkgrel=1 | |
pkgdesc="The simple TTY terminal I/O application" | |
url="http://tio.github.io/" | |
makedepends=('meson') | |
arch=('x86_64' 'i686') | |
license=('GPLv2') | |
source=("https://github.com/tio/tio/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz") |
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/env python2 | |
import BaseHTTPServer | |
HOST='10.0.0.202' | |
PORT=80 | |
class Handler(BaseHTTPServer.BaseHTTPRequestHandler): | |
def do_GET(s): | |
s.send_response(204) |
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 | |
# Lenght in seconds | |
LENGTH=300 | |
if [[ $# -lt 1 ]]; then | |
echo "usage: $0 <output-file>" | |
exit | |
fi |
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
Client: | |
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96, sprop-parameter-sets=(string)\"Z2QAH6zZQFAFuwEQAAADABAAAAMDCPGDGWA\=\,aOvssiw\=\"" ! rtpjitterbuffer latency=3000 ! rtph264depay ! avdec_h264 ! autovideosink | |
Server: | |
gst-launch-1.0 -v filesrc location=/home/jlp/Videos/big_buck_bunny_720p_h264_1mbit.mov ! qtdemux ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=5000 | |
Client with audio: | |
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96, sprop-parameter-sets=(string)\"Z2QAH6zZQFAFuwEQAAADABAAAAMDCPGDGWA\=\,aOvssiw\=\"" ! rtpjitterbuffer latency=3000 ! rtph264depay ! avdec_h264 ! autovideosink udpsrc port=5001 caps="application/x-rtp, media=(string)audio, clock-rate=(int)48000, encoding-name=(string)MPEG4-GENERIC, encoding-params=(string)6, streamtype=(string)5, profile-level-id=(string)2, mode=(string)AAC-hbr |
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/env python2 | |
from __future__ import print_function | |
import sys | |
class shutup(object): | |
def __enter__(self): | |
self.stdout = sys.stdout | |
sys.stdout = self |
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
#include <stdint.h> | |
#include <stdio.h> | |
#include <inttypes.h> | |
uint32_t get_offset_bits(uint8_t *data, uint32_t offset, uint32_t count) | |
{ | |
int shft; | |
uint32_t ret, byte; | |
byte = offset / 8; |
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
/* | |
* All fields are big endian byte order. | |
* Magic: 9 bytes (0x89, 0x4c, 0x5a, 0x4f, 0x00, 0x0d, 0x0a, 0x1a, 0x0a) | |
* Version: 2 bytes | |
* Lib version: 2 bytes | |
* Version needed: 2 bytes | |
* Method: 1 byte | |
* Level: 1 byte | |
* Flags: 4 byte |
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/env python | |
# encoding: utf-8 | |
APPNAME = 'ftp-client' | |
VERSION = '1.0' | |
top = '.' | |
out = 'build' | |
modules = ['../libcsp/', '../libio'] |
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/env python | |
# encoding: utf-8 | |
import os | |
APPNAME = 'csp' | |
VERSION = '1.0' | |
top = '.' | |
out = 'build' |