I’d like to record the OpenFrameworks window to a video file, high quality.
Ideally, I’d also like to capture audio that is playing in another application in the background (like iTunes) into that video file.
I need to do this from within the app only - i.e. no 3rd party /external screencapture software.
What’s the best way to do this?
Thanks in advance!!
I’m not sure how you would get audio from another application into OF without using something like JACK audio or something like it (ie soundflower). If there is, I would really like to know as well!
As for video recording, perhaps take a look at ofxVideoRecorder and I found this thread helpful as well.
Can confirm that soundflower into oF app works nicely, been doing that fairly often to make audio reactive stuff when the audio is coming from another app (QuickTime/iTunes etc). Just make sure the input/output routing of audio is correct.
As for recording AV, can’t help with that, but I’m curious to know, so if you get something working, let us know!
If you are on mac you can use ofxSyphon to publixh the texture of what your work and syphone recorder to record. This will also take an audio input from soundflower or sound syphon.
I tried using ofxVideoRecorder; I got audio recording (into a .mov file) but no video. No matter what I set VideoGrabber’s dimensions to (640,480), it always simply returns dimensions of (0,0). It’s possible it can’t find my ffmpeg install - i don’t know how to check for that. Anyone know?
Here is all that I have tried for the following use case:
–> I am generating animation in oF. I need to record audio (via SoundFlower) + video (oF animation) into a video file.
I am running oF 0.9.8-master on Sierra and High Sierra.
What I’ve tried:
ofxVideoRecorder --> osxVideoRecorderExample
— --> I can’t run it because apparently OSX no longer supports QTKit.
–> I can run it, but the output is a .mov file with no video, just audio (via SoundFlower). VideoGrabber has dimensions of (0,0), even though I set it to (640,480). This line:
NSArray * devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
ofAVFoundationGrabber.mm returns a list of zero devices. This causes the entire initialization for video to be skipped. (I have FFMpeg installed.)
–> I can’t run it; I get this error:
Error:(267, 5) no type named ‘thread’ in namespace ‘std’; did you mean ‘thread_t’?
–> I got this to work, but I don’t want to have an external application to accomplish this goal; I want the user to have this functionality built into my oF app. Also, the dimensions of the output video reflect the dimensions of the Syphon Recorder window, not the OpenFrameworks video (!!).
I would love to get ofxVideoRecorder working to record video…
You can try FoneLab screen recorder.
You can run the program, and then do what you want as usual.
Stop it whenever you want.
It won’t make your computer lag when you can recording videos, audio and webcam at the same time, and you can even run other software.