#include #include #include #include #include #include #include #include #include #include #include #include "sldjConfig.h" // stolen code: https://github.com/tsoding/musializer/blob/master/src/ffmpeg_posix.c #ifndef FFMPEG_H #define FFMPEG_H #define READ_END 0 #define WRITE_END 1 typedef struct FFMPEG { int pipe; pid_t pid; } FFMPEG; FFMPEG* ffmpegStart(const char* filename, int width, int height, int fps); int ffmpegSendFrame(FFMPEG* ffmpeg, void* data, int widtth, int height); int ffmpegEnd(FFMPEG* ffmpeg); #endif