Reply To: syphon piped to ffmpeg?

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

#59033
stanelie
Participant

So,

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

Here is the sketch : http://pastebin.com/znLrCBcL

It’s a blend of the ReceiveFrames example sketch that was included with the Syphon library for Processing, and this sketch from Jeffrey Thompson : http://www.jeffreythompson.org/blog/2012/01/26/creating-video-with-processing-and-ffmpeg/

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}