3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7 <html xmlns="http://www.w3.org/1999/xhtml">
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11 <title>5. Basic Commands — CasparCG 2.0 documentation</title>
13 <link rel="stylesheet" href="../_static/default.css" type="text/css" />
14 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
16 <script type="text/javascript">
17 var DOCUMENTATION_OPTIONS = {
20 COLLAPSE_INDEX: false,
25 <script type="text/javascript" src="../_static/jquery.js"></script>
26 <script type="text/javascript" src="../_static/underscore.js"></script>
27 <script type="text/javascript" src="../_static/doctools.js"></script>
28 <script type="text/javascript" src="../_static/sidebar.js"></script>
29 <link rel="search" type="application/opensearchdescription+xml"
30 title="Search within CasparCG 2.0 documentation"
31 href="../_static/opensearch.xml"/>
32 <link rel="author" title="About these documents" href="../about.html" />
33 <link rel="copyright" title="Copyright" href="../copyright.html" />
34 <link rel="top" title="CasparCG 2.0 documentation" href="../index.html" />
35 <link rel="up" title="AMCP Reference" href="index.html" />
36 <link rel="next" title="6. Template Graphics Commands" href="template-graphics-commands.html" />
37 <link rel="prev" title="1. Communication" href="introduction.html" />
45 <li class="right" style="margin-right: 10px">
46 <a href="../genindex.html" title="General Index"
47 accesskey="I">index</a></li>
49 <a href="template-graphics-commands.html" title="6. Template Graphics Commands"
50 accesskey="N">next</a> |</li>
52 <a href="introduction.html" title="1. Communication"
53 accesskey="P">previous</a> |</li>
54 <li><a href="../index.html">CasparCG 2.0 documentation</a> »</li>
56 <li><a href="index.html" accesskey="U">AMCP Reference</a> »</li>
60 <div class="document">
61 <div class="documentwrapper">
62 <div class="bodywrapper">
65 <div class="section" id="basic-commands">
66 <h1>5. Basic Commands<a class="headerlink" href="#basic-commands" title="Permalink to this headline">¶</a></h1>
67 <div class="section" id="loadbg">
68 <h2>5.1. LOADBG<a class="headerlink" href="#loadbg" title="Permalink to this headline">¶</a></h2>
69 <p>Loads a producer in the background and prepares it for playout.
70 If no layer is specified the default layer index will be used.</p>
72 <div class="highlight-python"><pre>LOADBG [channel:int]-[layer:int] [clip:string] {[transition:CUT|MIX|PUSH|WIPE|SLIDE] [duration:int] {tween:string} {direction:LEFT|RIGHT} {auto:AUTO} {parameters:string}}</pre>
75 <div class="highlight-python"><pre>>> LOADBG 1-1 MY_VIDEO PUSH 20 easeinesine LOOP SEEK 200 LENGTH 400 AUTO FILTER hflip</pre>
78 <div class="section" id="load">
79 <h2>5.2. LOAD<a class="headerlink" href="#load" title="Permalink to this headline">¶</a></h2>
80 <p>Loads a producer to the foreground and displays the first frame.
81 If no layer is specified the default layer index will be used.</p>
83 <div class="highlight-python"><pre>LOAD [channel:int]-[layer:int] [clip:string] {[transition:CUT|MIX|PUSH|WIPE|SLIDE] [duration:int] {tween:string} {direction:LEFT|RIGHT} {auto:AUTO} {parameters:string}}</pre>
86 <div class="highlight-python"><pre>>> LOAD 1-1 MY_VIDEO PUSH 20 easeinesine LOOP SEEK 200 LENGTH 400 AUTO FILTER hflip</pre>
89 <div class="section" id="play">
90 <h2>5.3. PLAY<a class="headerlink" href="#play" title="Permalink to this headline">¶</a></h2>
91 <p>Moves producer from background to foreground and starts playing it. If a transition (see LOADBG) is prepared, it will be executed.
92 If additional parameters (see LOADBG) are provided then the provided producer will first be loaded to the background.
93 If no layer is specified the default layer index will be used.</p>
95 <div class="highlight-python"><pre>PLAY [channel:int]-[layer:int] [clip:string] {[transition:CUT|MIX|PUSH|WIPE|SLIDE] [duration:int] {tween:string} {direction:LEFT|RIGHT} {auto:AUTO} {parameters:string}}</pre>
98 <div class="highlight-python"><pre>>> PLAY 1-1 MY_VIDEO PUSH 20 easeinesine LOOP SEEK 200 LENGTH 400 AUTO FILTER hflip
99 >> PLAY 1-1</pre>
102 <div class="section" id="pause">
103 <h2>5.4. PAUSE<a class="headerlink" href="#pause" title="Permalink to this headline">¶</a></h2>
104 <p>Pauses foreground clip.</p>
106 <div class="highlight-python"><pre>PAUSE [channel:int]-[layer:int]</pre>
109 <div class="highlight-python"><pre>>> PAUSE 1-1</pre>
112 <div class="section" id="stop">
113 <h2>5.5. STOP<a class="headerlink" href="#stop" title="Permalink to this headline">¶</a></h2>
114 <p>Removes foreground clip. If no layer is specified the default layer index will be used.</p>
116 <div class="highlight-python"><pre>STOP [channel:int]-[layer:int]</pre>
119 <div class="highlight-python"><pre>>> STOP 1-1</pre>
122 <div class="section" id="clear">
123 <h2>5.6. CLEAR<a class="headerlink" href="#clear" title="Permalink to this headline">¶</a></h2>
124 <p>Removes both foreground and background clips. If no layer is specified then all layers in the specified video-channel are cleared.</p>
126 <div class="highlight-python"><pre>CLEAR [channel:int]{-[layer:int]}</pre>
129 <div class="highlight-python"><pre>>> CLEAR 1-1
130 >> CLEAR 1</pre>
133 <div class="section" id="call">
134 <h2>5.7. CALL<a class="headerlink" href="#call" title="Permalink to this headline">¶</a></h2>
135 <p>Calls a producers specific function.</p>
137 <div class="highlight-python"><pre>CALL [channel:int]-[layer:int] [function:string] {parameters:string}</pre>
140 <div class="highlight-python"><pre>>> CALL 1-1 SEEK 400</pre>
143 <div class="section" id="swap">
144 <h2>5.8. SWAP<a class="headerlink" href="#swap" title="Permalink to this headline">¶</a></h2>
145 <p>Swaps layers between channels (both foreground and background will be swapped). If layers are not specified then all layers in respective video-channel will be swapped.</p>
147 <div class="highlight-python"><pre>SWAP [channel:int]{-[layer:int]} [channel:int]{-[layer:int]}</pre>
150 <div class="highlight-python"><pre>>> SWAP 1-1 1-2
151 >> SWAP 1-0 2-0</pre>
154 <div class="section" id="add">
155 <h2>5.9. ADD<a class="headerlink" href="#add" title="Permalink to this headline">¶</a></h2>
156 <p>Adds consumer to output.</p>
158 <div class="highlight-python"><pre>ADD [channel:int] [consumer:string] {parameters:string}</pre>
161 <div class="highlight-python"><pre>>> ADD 1 FILE output.mov CODEC DNXHD
162 >> ADD 1 DECKLINK 1</pre>
165 <div class="section" id="remove">
166 <h2>5.10. REMOVE<a class="headerlink" href="#remove" title="Permalink to this headline">¶</a></h2>
167 <p>Removes consumer from output.</p>
169 <div class="highlight-python"><pre>REMOVE [channel:int] [consumer:string] {parameters:string}</pre>
172 <div class="highlight-python"><pre>>> REMOVE 1 FILE
173 >> REMOVE 1 DECKLINK 1</pre>
182 <div class="sphinxsidebar">
183 <div class="sphinxsidebarwrapper">
184 <h3><a href="../contents.html">Table Of Contents</a></h3>
186 <li><a class="reference internal" href="#">5. Basic Commands</a><ul>
187 <li><a class="reference internal" href="#loadbg">5.1. LOADBG</a></li>
188 <li><a class="reference internal" href="#load">5.2. LOAD</a></li>
189 <li><a class="reference internal" href="#play">5.3. PLAY</a></li>
190 <li><a class="reference internal" href="#pause">5.4. PAUSE</a></li>
191 <li><a class="reference internal" href="#stop">5.5. STOP</a></li>
192 <li><a class="reference internal" href="#clear">5.6. CLEAR</a></li>
193 <li><a class="reference internal" href="#call">5.7. CALL</a></li>
194 <li><a class="reference internal" href="#swap">5.8. SWAP</a></li>
195 <li><a class="reference internal" href="#add">5.9. ADD</a></li>
196 <li><a class="reference internal" href="#remove">5.10. REMOVE</a></li>
201 <h4>Previous topic</h4>
202 <p class="topless"><a href="introduction.html"
203 title="previous chapter">1. Communication</a></p>
205 <p class="topless"><a href="template-graphics-commands.html"
206 title="next chapter">6. Template Graphics Commands</a></p>
208 <ul class="this-page-menu">
209 <li><a href="../bugs.html">Report a Bug</a></li>
210 <li><a href="../_sources/amcp/basic-commands.txt"
211 rel="nofollow">Show Source</a></li>
214 <div id="searchbox" style="display: none">
215 <h3>Quick search</h3>
216 <form class="search" action="../search.html" method="get">
217 <input type="text" name="q" />
218 <input type="submit" value="Go" />
219 <input type="hidden" name="check_keywords" value="yes" />
220 <input type="hidden" name="area" value="default" />
222 <p class="searchtip" style="font-size: 90%">
223 Enter search terms or a module, class or function name.
226 <script type="text/javascript">$('#searchbox').show(0);</script>
229 <div class="clearer"></div>
231 <div class="related">
234 <li class="right" style="margin-right: 10px">
235 <a href="../genindex.html" title="General Index"
238 <a href="template-graphics-commands.html" title="6. Template Graphics Commands"
241 <a href="introduction.html" title="1. Communication"
243 <li><a href="../index.html">CasparCG 2.0 documentation</a> »</li>
245 <li><a href="index.html" >AMCP Reference</a> »</li>
249 © <a href="../copyright.html">Copyright</a> 2011, Robert Nagy (ronag89@gmail.com).
251 <a href="http://www.python.org/psf/donations/">Please donate.</a>
253 Last updated on Mar 11, 2012.
254 <a href="../bugs.html">Found a bug</a>?
256 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.