Created
April 4, 2014 20:44
-
-
Save solexious/9982779 to your computer and use it in GitHub Desktop.
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
# Basic Feeds Settings | |
# Copyright by Peter Maersk-Moller 2012 - All rights reserved | |
# verbose | |
# | |
# This code can run on version 0.4.0, but version 0.4.3 is recommended due to the | |
# use of PAR different from 1:1 | |
# require version 0.4.0 | |
require version 0.4.3 | |
# Listen on port 9999 for command control connections | |
system control port 9999 | |
# Set system Geometry to 1024x576 | |
system geometry 1280 960 ARGB | |
# Set system frame rate to 24 | |
system frame rate 25 | |
# Set output control socket | |
system socket /tmp/mixer1 | |
# Set feed idle time - feed 0 will always be idle. If no file is given, | |
# idle image will be all black. | |
#feed idle 0 1 dead-1024x576.bgra | |
feed idle 0 1 | |
# Define feed #1, set geometry to 704x576, define as live, set idle time | |
# to 100 frames and set idle image, scale to 1/2 and specify control socket. | |
# Furthermore the feed is defined as live meaning Snowmix will drop frames if | |
# it is late. | |
feed add 1 Feed #1 | |
feed geometry 1 1280 960 | |
feed live 1 | |
feed idle 1 100 ../frames/dead-1280x960.bgra | |
feed scale 1 1 2 | |
feed par 1 12 11 | |
feed socket 1 /tmp/feed1-control-pipe | |
# Define feed #2, set geometry to 704x576, define as live, set idle time | |
# to 100 frames and set idle image, scale to 1/2 and specify control socket | |
# Furthermore the feed is defined as live meaning Snowmix will drop frames if | |
# it is late. | |
feed add 2 Feed #2 | |
feed geometry 2 704 576 | |
feed live 2 | |
feed idle 2 100 ../frames/dead-704x576.bgra | |
feed scale 2 1 2 | |
feed par 2 12 11 | |
feed socket 2 /tmp/feed2-control-pipe | |
# Define feed #3, set geometry to 704x576, define as live, set idle time | |
# to 100 frames and set idle image, scale to 1/2 and specify control socket | |
# Furthermore the feed is defined as live meaning Snowmix will drop frames if | |
# it is late. | |
feed add 3 Feed #3 | |
feed geometry 3 704 576 | |
feed live 3 | |
feed idle 3 100 ../frames/dead-704x576.bgra | |
feed scale 3 1 2 | |
feed par 3 12 11 | |
feed socket 3 /tmp/feed3-control-pipe | |
# Define feed #3, set geometry to 704x576, define as live, set idle time | |
# to 100 frames and set idle image, set scaling to 1/1 and specify control | |
# socket. AFurthermore the feed is defined as live meaning Snowmix will drop | |
# frames if it is late. | |
feed add 4 Feed #4 1024x576 | |
feed geometry 4 1024 576 | |
feed live 4 | |
feed idle 4 100 ../frames/dead-1024x576.bgra | |
feed scale 4 1 1 | |
feed socket 4 /tmp/feed4-control-pipe | |
# Set basic cutout | |
# Center feed #1 (previously scaled to 1/2) omitting 16 pixels to the left | |
# and right and omitting 48 pixels at top and bottom, then place it at 704,0 | |
feed cutout 1 16 48 320 192 | |
feed shift 1 704 0 | |
# Center feed #2 (previously scaled to 1/2) omitting 16 pixels to the left | |
# and right and omitting 48 pixels at top and bottom, then place it at 704,0 | |
feed cutout 2 16 48 320 192 | |
feed shift 2 704 192 | |
# Center feed #3 (previously scaled to 1/2) omitting 16 pixels to the left | |
# and right and omitting 48 pixels at top and bottom, then place it at 704,0 | |
feed cutout 3 16 48 320 192 | |
feed shift 3 704 384 | |
# Feed 4 (previously scaled 1/1) is placed at 0,0 with full width and height | |
feed cutout 4 160 0 704 576 | |
feed shift 4 0 0 | |
# Stack (overlay) feed 0-4 in the order given | |
stack 0 4 1 2 3 | |
# Load a transparent image and place it at 4,4 | |
#image load 0 ../images/tv2-news-logo.png | |
image load 0 ../images/CS_logo-white-64x64.png | |
image place 0 0 4 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment