From 4bb5ce0be62671f7c5127d969c682d57e971679b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 4 Oct 2012 22:42:06 +0200 Subject: 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) --- chuck/OSCGraphics.ck | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'chuck') 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", ""); -- cgit v1.2.3