112 lines
2.9 KiB
INI
112 lines
2.9 KiB
INI
# Basic Sapphire Settings
|
|
# Copyright by Peter Maersk-Moller 2012-2013 - All rights reserved
|
|
# verbose
|
|
require version 0.5.0
|
|
|
|
maxplaces images 32
|
|
maxplaces shapes 90
|
|
maxplaces shapes 170
|
|
maxplaces shapeplaces 64
|
|
maxplaces shapeplaces 128
|
|
maxplaces strings 180
|
|
maxplaces texts 180
|
|
maxplaces audio feeds 20
|
|
|
|
# Listen on port 9999 for command control connections
|
|
system control port 9999
|
|
#system host allow 172.16.0.0/12
|
|
system host allow 0.0.0.0/0
|
|
|
|
# Set system Geometry to WIDTH HEIGHT
|
|
system geometry 1920 1080 ARGB
|
|
#tcl eval set system(width) 1280 ; set system(height) 720
|
|
|
|
# Set system frame rate to N or NN.NN
|
|
system frame rate 30
|
|
tcl eval set system(framerate) 30
|
|
|
|
# Set output parameter (mode=1 direct, mode=2 simple threaded, mode=2 timed threaded)
|
|
system output mode 0
|
|
system output delay 10
|
|
system output buffers 60
|
|
|
|
# Set output control socket
|
|
system socket /run/snowmix/mixer1
|
|
|
|
image load 1 /assets/images/base-background.png
|
|
image name 1 Background HSWAW Logo Right
|
|
|
|
image load 2 /assets/images/overlay-dim.png
|
|
image name 2 Overlay (dim)
|
|
|
|
image load 3 /assets/images/overlay.png
|
|
image name 3 Overlay (full)
|
|
|
|
image load 4 /assets/images/panel.png
|
|
image name 4 Event panel
|
|
|
|
# Commands to be executed at every frame interval
|
|
# PreShow must end with a loop statement
|
|
command create PreShow
|
|
BySnowmix
|
|
loop
|
|
command end
|
|
overlay pre PreShow
|
|
|
|
# Commands to be executed at every frame interval, but only if we have a consumer
|
|
command create Show
|
|
loop
|
|
command end
|
|
overlay finish Show
|
|
|
|
# Load libraries
|
|
include slib/system.slib
|
|
include slib/basic-shapes.slib
|
|
include slib/scenes.slib
|
|
include slib/feeds.slib
|
|
include slib/images.slib
|
|
include slib/clocks.slib
|
|
include slib/graphs.slib
|
|
include slib/radar.slib
|
|
include slib/texts.slib
|
|
include slib/clocks2.slib
|
|
|
|
tcl eval FeedCreate "Camera" 1 1920 1080 /run/snowmix/feed1-control-pipe
|
|
tcl eval FeedCreate "Capture" 2 1920 1080 /run/snowmix/feed2-control-pipe
|
|
tcl eval FeedCreate "Feed #3" 3 1920 1080 /run/snowmix/feed3-control-pipe
|
|
tcl eval FeedDeadImage 1 100 /assets/images/dead-stream.bgra
|
|
tcl eval FeedDeadImage 2 100 /assets/images/dead-stream.bgra
|
|
tcl eval FeedDeadImage 3 100 /assets/images/dead-stream.bgra
|
|
|
|
#include ini/streaming-feeds
|
|
#include ini/streaming-scenes
|
|
|
|
tcl eval set scene(setactivesilent) 1
|
|
tcl eval SceneSetBackground 0 1
|
|
|
|
# Scene 1
|
|
tcl eval SceneCreate "Fullscreen 1" 1
|
|
#tcl eval SceneAddFrame 1 1 0 0 1280 720
|
|
tcl eval SceneAddFrame 1 2 1410 20 480 270
|
|
tcl eval SceneSetFrameSource 1 1 feed 2 0 1
|
|
tcl eval SceneSetFrameSource 1 1 feed 1 1 1
|
|
tcl eval SceneSetFrameSource 1 2 feed 2 1 1
|
|
tcl eval SceneSetBackground 1 1
|
|
|
|
# Scene 2
|
|
tcl eval SceneCreate "Fullscreen 2" 2
|
|
tcl eval SceneAddFrame 2 1 0 0 1920 1080
|
|
tcl eval SceneAddFrame 2 2 1410 20 480 270
|
|
tcl eval SceneSetFrameSource 2 1 feed 2 0 1
|
|
tcl eval SceneSetFrameSource 2 1 feed 1 1 1
|
|
tcl eval SceneSetFrameSource 2 2 feed 2 1 1
|
|
tcl eval SceneSetBackground 2 1
|
|
|
|
tcl eval SceneSetState 0 1
|
|
|
|
include ini/streaming-audio
|
|
|
|
stack 0
|
|
|
|
include slib/synctest.slib
|