Reply To: syphon piped to ffmpeg?

Home Forums Syphon Syphon Implementations – User syphon piped to ffmpeg? Reply To: syphon piped to ffmpeg?



I ended up doing it myself using Processing. I know it’s a very ugly hack, but it works.

Here is the sketch :

It’s a blend of the ReceiveFrames example sketch that was included with the Syphon library for Processing, and this sketch from Jeffrey Thompson :

Also, since I am using a temporary file to pass the frames from Processing to FFMPEG on each frame and I didn’t want to wear out my SSD drive, I first created a ramdisk onto which I commit and overwrite this file.

To create this ramdisk, in Terminal, do this :
DISK_ID=$(hdid -nomount ram://121440) && newfs_hfs -v tempdisk ${DISK_ID} && diskutil mount ${DISK_ID}