summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-22 20:24:35 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-22 21:08:45 +0200
commitc5ed3de2633965c9f338ae3b3d9e7b4f71dd9906 (patch)
treeff92cbd7fd5bf6240d7c6bfc303b135930334be8
parent2d8e13e2a1fbd5363c30fa6ebb39385f95ab0af2 (diff)
Update the information at top of .c file
-rw-r--r--glcapture.c15
1 files 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";