From c5ed3de2633965c9f338ae3b3d9e7b4f71dd9906 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 22 Jan 2017 20:24:35 +0200 Subject: Update the information at top of .c file --- glcapture.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/glcapture.c b/glcapture.c index 60ac1be..245b2d8 100644 --- a/glcapture.c +++ b/glcapture.c @@ -1,8 +1,15 @@ -/* gcc -std=c99 -fPIC -shared -Wl,-soname,glcapture.so glcapture.c -o glcapture.so - * gcc -m32 -std=c99 -fPIC -shared -Wl,-soname,glcapture.so glcapture.c -o glcapture.so (for 32bit) +/* gcc -std=c99 -fPIC -shared -Wl,-soname,glcapture.so glcapture.c -lasound -o glcapture.so + * gcc -m32 -std=c99 -fPIC -shared -Wl,-soname,glcapture.so glcapture.c -lasound -o glcapture.so (for 32bit) * - * Capture OpenGL framebuffer and ALSA audio and pipe them to ffmpeg + * Capture OpenGL framebuffer, ALSA audio and push them through named pipe * Usage: LD_PRELOAD="/path/to/glcapture.so" ./program + * + * https://github.com/Cloudef/FFmpeg/tree/rawmux + * ^ Compile this branch of ffmpeg to get rawmux decoder + * You can test that it works by doing ./ffplay /tmp/glcapture.fifo + * + * Make sure you increase your maximum pipe size /prox/sys/fs/pipe-max-size + * to minimum of 15 * (width * height * 3) */ #define _GNU_SOURCE @@ -44,7 +51,7 @@ static void* store_real_symbol_and_return_fake_symbol(const char *symbol, void * // Some tunables // XXX: Make these configurable #define NUM_PBOS 2 -static double FPS = 60.0; +static double FPS = 60.0; // Probably not needed, we can calculate this static double SPEED_HACK = 1.0; static const char *FIFO_PATH = "/tmp/glcapture.fifo"; -- cgit v1.2.3-70-g09d2