Record Video and Audio


#1

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!!


#2

Hi,

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.


#3

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!


#4

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.


#6

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?


#7

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.

ofxVideoRecorder
–> 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];

in ofAVFoundationGrabber.mm returns a list of zero devices. This causes the entire initialization for video to be skipped. (I have FFMpeg installed.)

ofxFFmpegRecorder
–> I can’t run it; I get this error:
Error:(267, 5) no type named ‘thread’ in namespace ‘std’; did you mean ‘thread_t’?

ofxSyphon
–> 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…