diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-10-04 22:42:06 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-10-04 22:42:06 +0200 |
commit | 4bb5ce0be62671f7c5127d969c682d57e971679b (patch) | |
tree | 1ce0510c5a8cca37a4106f43f4c5de1162f01a35 /chuck/OSCGraphics.ck | |
parent | d5dcc19a006f898f21a5b081180a132c9dc6e638 (diff) | |
download | osc-graphics-4bb5ce0be62671f7c5127d969c682d57e971679b.tar.gz |
rewritten recorder using ffmpeg libs (without SDL_ffmpeg)
* SDL_ffmpeg was broken and is hard to get
* my implementation allows specifying an output codec. if the codec supports the screen's pixel format, no conversion is performed saving lots of performance (also beneficial for post-processing a recorded video)
Diffstat (limited to 'chuck/OSCGraphics.ck')
-rw-r--r-- | chuck/OSCGraphics.ck | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chuck/OSCGraphics.ck b/chuck/OSCGraphics.ck index 49a8003..4ca6be5 100644 --- a/chuck/OSCGraphics.ck +++ b/chuck/OSCGraphics.ck @@ -9,14 +9,20 @@ public class OSCGraphics { } fun static string - record(string file) + record(string file, string codec) { - osc_send.startMsg("/recorder/start", "s"); + osc_send.startMsg("/recorder/start", "ss"); file => osc_send.addString; + codec => osc_send.addString; return file; } fun static string + record(string file) + { + return record(file, ""); + } + fun static string record() { osc_send.startMsg("/recorder/stop", ""); |