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

Roger Pack rogerdpack2 at gmail.com
Fri Sep 19 15:11:12 CEST 2014


On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu <
jmuthialu-at-yahoo.com at ffmpeg.org> wrote:

> Hi Moritz,
>
> Thanks for the information. I finally applied the patches. Although I
> could not apply through git because the latest ffmpeg version I downloaded
> did not seem to match with the patches in the email and it failed. So I had
> to manually sync the patch file to the source file and I complied
> sucessfully. The patched version works for all basics scenarios  but did
> not fix the underlying issue. It now shows the inbuilt microphone which is
> an improvement, but the microphone is showing as error.
>
> $ ffmpeg -f avfoundation -list_devices true -i ""
>
> Output:
> libavutil      54.  7.100 / 54.  7.100
>   libavcodec     56.  1.100 / 56.  1.100
>   libavformat    56.  4.102 / 56.  4.102
>   libavdevice    56.  0.100 / 56.  0.100
>   libavfilter     5.  1.101 /  5.  1.101
>   libavresample   2.  1.  0 /  2.  1.  0
>   libswscale      3.  0.100 /  3.  0.100
>   libswresample   1.  1.100 /  1.  1.100
>   libpostproc    53.  0.100 / 53.  0.100
> [AVFoundation input device @ 0x7ff6c0c14de0] AVFoundation video devices:
> [AVFoundation input device @ 0x7ff6c0c14de0] [0] FaceTime HD Camera
> [AVFoundation input device @ 0x7ff6c0c14de0] AVFoundation audio devices:
> [AVFoundation input device @ 0x7ff6c0c14de0] [0] Built-in Microphone
> : Input/output error
>
> Can you or anyone help me on this? Please note that I have applied all the
> 5 patches in the thread given below.
>

What if you try and use it as input?


>
> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2014-April/156866.html
>
> These patches only modified one file "avfoundation.m". I have attached the
> patched avfoundation.m for reference purpose.
>
>
>
>
> Warm Regards
> Jay
>
> On Sep 8, 2014, at 3:52 AM, Moritz Barsnick <barsnick at gmx.net> wrote:
>
> > 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
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>


More information about the ffmpeg-user mailing list