[FFmpeg-user] How to record audio and video from FaceTime HD Camera in OSX

Moritz Barsnick barsnick at gmx.net
Mon Sep 8 09:52:36 CEST 2014


Hi Jay,
[oops, sent too early]

On Sun, Sep 07, 2014 at 12:01:25 -0400, Jay Muthialu wrote:

> I went through all the patches specified in the link but I am not
> sure how to apply the patches. Could you please guide me on how to
> apply the patches and also what would be command I would have to use
> to take audio input ? Please note that I originally installed ffmpeg
> using Homebrew.

You would need to compile yourself. Instructions are here:

https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX

I don't know how Homebrew works. To apply the patches, you would need
to grab the patch files from the emails, i.e. sections like this:

diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 3622be0..2ac1b3c 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
 <at>  <at>  -191,7 +191,7  <at>  <at>  static int
avf_read_header(AVFormatContext *s)
             goto fail;
         }
     } else {
-        video_device = [AVCaptureDevice
- defaultDeviceWithMediaType:AVMediaTypeMuxed];
+        video_device = [AVCaptureDevice
- defaultDeviceWithMediaType:AVMediaTypeVideo];
     }

     // Video capture device not found, looking for AVMediaTypeVideo
-- 
1.8.3.2

(I don't know where to get the proper ASCII versions of these patches)
and apply each of them with
patch -p1 -i <patchfilename>

before the configure of make stage. As said, I have no idea how to
interrupt homebrew stages.

Moritz


More information about the ffmpeg-user mailing list