Skip to content

Instantly share code, notes, and snippets.

View trickkiste's full-sized avatar

DI FH Markus Kienast trickkiste

View GitHub Profile
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin
VIDEO_PATH=/home/pi/video_playlist
LOG=/var/log/playout.log
pid=
trap '[[ $pid ]] && kill $pid && echo "Signal trapped" >> $LOG && exit' TERM
echo `date` "Entering playout script" >> $LOG
#!/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'
@trickkiste
trickkiste / multi-consumer-seek
Created September 29, 2012 14:36
Seeking with Multi consumer
From: /home/app/playlist.rb @ line 60 :
55: consumer.start
56:
57: # Connect the producer to the consumer
58: consumer.connect( pls )
59:
=> 60: binding.pry
61: # Wait until the user stops the consumer
62: #consumer.wait_for( event )
@trickkiste
trickkiste / gist:3804892
Created September 29, 2012 18:54
2 consumers 1 playlist
#!/usr/bin/env ruby
# Import required modules
require 'pry'
require 'mlt'
# Create the mlt system
Mlt::Factory::init
# Establish the mlt profile
#!/usr/bin/env ruby
# Import required modules
require 'pry'
require 'mlt'
# Create the mlt system
Mlt::Factory::init
# Establish the mlt profile
@trickkiste
trickkiste / HD Stream
Created October 1, 2012 10:22
OBE Settings for HD and SD
#!/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'
Open Broadcast Encoder command line interface.
Version 0.1-beta
obecli> set input decklink
obecli> set input opts card-idx=0
obecli> set input opts video-format=1080i50
obecli> set input opts video-connection=sdi
obecli> set input opts audio-connection=embedded
obecli> probe input
Probing device: Decklink card 0. Timeout 20 seconds
@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'
OBE configure script
Command line options: "--prefix=/opt/obe"
checking whether gcc works... yes
checking for -std=gnu99... yes
checking whether yasm supports vpaddw xmm0, xmm0, xmm0... yes
checking whether gcc supports __asm__("pabsw %xmm0, %xmm0");... yes
checking for pthread.h... yes
checking for x264_encoder_close(0); in x264.h... yes
checking whether X264_BUILD >= 99 is true... yes
@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'