In regards to how ofxVideoRecorder works, the calls to ffmpeg will return when ffmpeg closes. ofxVideoRecorder does nothing to ensure that this happens. Luckily, it turns out that when there is nothing left in the video/audio pipes and they are closed by ofxVideoRecorder, ffmpeg will recognize this as being the end of input and will finish up the encode and close itself.
↧