Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: php-cgi | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Make available a cgi for nginx | |
# Description: primarly is used for the wordpress installation | |
### END INIT INFO |
/* Remove plugin CSS & JS */ | |
/* Next Gen Gallery */ | |
function dequeue_nextGen_style() { | |
wp_dequeue_style('NextGEN'); | |
} | |
add_action('template_redirect', 'dequeue_nextGen_style'); | |
function dequeue_nextGen_js() { | |
if (!is_singular()) { |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <net/if.h> | |
#include <net/ethernet.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <arpa/inet.h> | |
#include <netpacket/packet.h> |
#!/bin/bash | |
WPA_SUPPLICANT_CONF="/etc/wpa_supplicant/wpa_supplicant.conf" | |
# this funcion is called once the connection is established, | |
# in this case a boot sound will be played to notify the user that everything is ready. | |
function connected { | |
aplay /root/Windows3.1.wav 2>&1 >/dev/null & | |
} |
This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.
Documentation links
#/usr/bin/python | |
# if yes or no doesn't work try using quotes | |
# example 'yes' or 'no' | |
import os | |
import sys | |
# If the server has ffmpeg: | |
## For the server: | |
ffmpeg -f fbdev -i /dev/fb0 -f avi pipe:1 | nc -l -p 1234 | |
## For the viewer: | |
nc 127.0.0.1 1234 | ffplay -i pipe:0 | |
# If the server doesn't have ffmpeg: | |
## For the server: | |
sudo cat /dev/fb0 | nc -l -p 1234 | |
## For the viewer (replace 1920x1080 with the server's resolution): |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Python bot for comment a list of urls in YouTube | |
import time | |
import numpy as np | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait |
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.