File: lives-OMC.txt

package info (click to toggle)
lives 1.6.2~ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 21,016 kB
  • sloc: ansic: 149,382; sh: 12,577; perl: 8,710; python: 7,078; cpp: 2,589; makefile: 1,370; yacc: 291; sed: 16
file content (72 lines) | stat: -rw-r--r-- 2,073 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Quick example:

sh: sendOSC -h localhost 49999

/video/play
/clip/select 2
/effect_key/enable 8
/effect_key/enable 3
/clip/select 1
/effect_key/disable 8
/video/play/reverse
/video/fps/set 10
/video/stop
/lives/quit





-------------------------

OSC in LiVES. 

LiVES now implements a standard version of Open Sound Control (http://www.opensoundcontrol.org)
which is being extended to OMC (Open Media Control) by members of Piksel.

LiVES currently supports libOSC and sendOSC from here:

http://www.cnmat.berkeley.edu/OpenSoundControl/index.html

LiVES is now compiled with OSC support by default. There are several
ways to activate it:

start up LiVES with, e.g.: lives -oscstart 49999

this will start up LiVES with OSC enabled on port 49999.

Or, start up LiVES normally and go to Tools/Preferences/Streaming. Here
you can ask LiVES to open a UDP port (default 49999, this can be changed). You can also ask LiVES to open an 
OSC port every time it starts up (doing this can be a security risk, please check your firewall settings 
first !)

You can then send commands using sendOSC. The autolives.pl script shows a sample implementation of it.
If using the default port (49999) you can just type: autolives.pl, for other ports, use 
autolives.pl localhost <port> where <port> is the UDP port number in Preferences.
You can also run autolives.pl from another host using autolives.pl <host> <port>

Note that there is a default latency of up to 40ms for OSC commands to be processed in LiVES.
Depending on what the application is doing, commands could be processed slower than that.



INCOMING MESSAGES
-----------------
This is actually implemented now using the keyboard timer, so there is a default maximum latency of 4 ms.

Timecodes are ignored.

Floats are supported, but be aware that pd (pure data) will
sometimes send a float as an int (for example (float)1.0 is sent as (int)1).








=============================================================================
Current implemented commands:

See: http://openmediacontrol.wetpaint.com/page/LiVES+commands