Skip to content

Instantly share code, notes, and snippets.

@revmischa
revmischa / build-video-server.sh
Created December 16, 2010 00:25
Build and install libx264, libav and rtmpd
#!/usr/bin/env bash
# This script fetches and builds libx264, libav, rtmpd and their dependencies.
# you may have to add /usr/local/lib to /etc/ld.so.conf
# BASEDIR = build directory (default current dir)
# PREFIX = install directory (default /usr/local)
if [ -z "$BASEDIR" ]; then
BASEDIR=`pwd`
fi
@revmischa
revmischa / how_computers_work.txt
Last active September 30, 2021 03:11
How computers work
How computers work
==================
Most people on the planet directly interact with computers on a daily
basis. They may be fooling around on their cell phone, writing a paper
for their homework, or playing video games. Despite the ubiquity
of digital computing devices, there is an astonishingly small number of
people who are familiar with the inner workings of these devices. Not
only that, but due to the fact most people think of computers in
@trickkiste
trickkiste / config
Created October 22, 2012 12:57
obe_sd
#!/bin/bash
NAME=obe_sd
screen -d -m -S $NAME obecli
sleep 2
screen -p 0 -S $NAME -X stuff $'set input decklink\012'
screen -p 0 -S $NAME -X stuff $'set input opts card-idx=3\012'
screen -p 0 -S $NAME -X stuff $'set input opts video-format=pal\012'
screen -p 0 -S $NAME -X stuff $'probe input\012'
@mraaroncruz
mraaroncruz / mltframework_packages.sh
Created October 22, 2012 13:28
Installation of OBE
[2012-10-22T15:29:32+02:00] INFO: Processing package[ffmpeg] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: package[ffmpeg] installed version 6:0.8.3-6ubuntu2
[2012-10-22T15:29:54+02:00] INFO: Processing package[automake] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[autoconf] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[libtool] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[intltool] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[g++] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[yasm] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[swig] action install (mlt::default line 10)
[2012-10-22T15:29:54+02:00] INFO: Processing package[libmp3lame-dev] action install (mlt::default line 10)
@trickkiste
trickkiste / OBE HD
Created October 30, 2012 18:05
SFE OBE Settings
#!/bin/bash
NAME=obe_hd
screen -d -m -S $NAME obecli
sleep 1
screen -p 0 -S $NAME -X stuff $'set input decklink\012'
screen -p 0 -S $NAME -X stuff $'set input opts card-idx=0\012'
screen -p 0 -S $NAME -X stuff $'set input opts video-format=1080i50\012'
screen -p 0 -S $NAME -X stuff $'set input opts video-connection=sdi\012'

Live Transcoding

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

#!/bin/bash
FONTFILE=/usr/share/fonts/truetype/freefont/FreeSerif.ttf
TEXT="bladeRF_ATSC_Demo_TBM2"
VIDEOFILE="tbm_tdf_2.mp4"
OUTFILE="tbm_tdf_2.ts"
FILTERS="-vf drawtext=fontfile=${FONTFILE}:text=${TEXT}:x=100:y=50:fontsize=72:fontcolor=white@0.6:box=1:boxcolor=black@0.2 -t 327"
VIDEO_CODEC="-vcodec mpeg2video -s hd720 -r 25"
VIDEO_QUALITY="-b:v:0 8M"
#!/bin/bash
FONTFILE=/usr/share/fonts/truetype/freefont/FreeSerif.ttf
TEXT="BladeRF_ATSC_Demo_%T_Ch1"
VIDEOFILE="-i /home/rtucker/Videos/Bike?Cam/2012-09-09-002-afternoon.AVI"
AUDIOFILE="-i /home/rtucker/Music/Track?N?Field/Marathon/04?-?Track?N?Field?-?Iso?Maha.mp3"
OUTFILE="udp://127.0.0.1:1234?pkt_size=188&buffer_size=65535"
FILTERS="-vf drawtext=fontfile=${FONTFILE}:text=${TEXT}:x=100:y=50:fontsize=72:fontcolor=white@0.6:box=1:boxcolor=black@0.2"
VIDEO_CODEC="-vcodec mpeg2video -s hd720 -r 30"
@natelandau
natelandau / .bash_profile
Last active April 30, 2024 18:07
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management

Live Transcoding

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