{0.5, 0.5, 0.5}, -- Input 3.
{0.5, 0.5, 0.5}, -- Input 4.
{0.5, 0.5, 0.5} -- Input 5.
+ -- Will also be filled with VIDEO_SIGNAL_NUM below.
}
local overlay_transition_start = -2.0
local STATIC_SIGNAL_NUM = NUM_CAMERAS + 1
local VIDEO_SIGNAL_NUM = NUM_CAMERAS + 2
+neutral_colors[VIDEO_SIGNAL_NUM - INPUT0_SIGNAL_NUM + 1] = {0.5, 0.5, 0.5};
+
-- Preview-only signal showing the current signal with the overlay.
-- Not valid for live_signal_num!
local OVERLAY_SIGNAL_NUM = NUM_CAMERAS + 3
input = chain:add_video_input(iptv_video, false)
else
input = chain:add_live_input(false, input_deint)
+ input:connect_signal(0) -- First input card. Can be changed whenever you want.
end
- input:connect_signal(0) -- First input card. Can be changed whenever you want.
local resample_effect, resize_effect
if scale then
prepare = function()
if input0_type == "live" or input0_type == "livedeint" then
chain.input0.input:connect_signal(transition_src_signal)
+ end
+ if input0_type ~= "static" then
set_neutral_color_from_signal(chain.input0.wb_effect, transition_src_signal)
end
set_scale_parameters_if_needed(chain.input0, width, height)
if input1_type == "live" or input1_type == "livedeint" then
chain.input1.input:connect_signal(transition_dst_signal)
+ end
+ if input1_type ~= "static" then
set_neutral_color_from_signal(chain.input1.wb_effect, transition_dst_signal)
end
set_scale_parameters_if_needed(chain.input1, width, height)
prepare = function()
if input_type ~= "video" then
chain.input:connect_signal(live_signal_num)
- set_neutral_color_from_signal(chain.wb_effect, live_signal_num)
end
+ set_neutral_color_from_signal(chain.wb_effect, live_signal_num)
set_scale_parameters_if_needed(chain, width, height)
prepare_overlay_live(chain, t, 1.0)
end
prepare = function()
if input_type ~= "video" then
chain.input:connect_signal(signal_num)
- set_neutral_color(chain.wb_effect, neutral_colors[signal_num + 1])
end
+ set_neutral_color(chain.wb_effect, neutral_colors[signal_num + 1])
set_scale_parameters_if_needed(chain, width, height)
prepare_overlay_static(chain, t)
end