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

2014-09-06 Thread Jay Muthialu
Hello,

I could record video using  Macbook Air in built camera "FaceTime HD Camera" 
but it does not record audio stream. I am working in OSX 10.8 version (Mountain 
Lion).

Command I used to list the available devices

$ ffmpeg -f avfoundation -list_devices true -i ""

As you can see from the output it lists the FaceTime HD Camera as device ID 
"0". But it does not show the inbuilt microphone.




Command I used to record from FaceTime camera

$ ffmpeg -f avfoundation -r 29.97 -i "0" -y out.mov

However it only records the video stream and does not record audio output. I 
believe the reason is the above command does not include the input for audio 
stream. Can anyone advise me on how to record audio and video from inbuilt 
FaceTime HD Camera and inbuilt microphone in OSX?

Thanks
Jay
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-07 Thread Moritz Barsnick
On Sat, Sep 06, 2014 at 11:25:42 -0400, Jay Muthialu wrote:

> As you can see from the output it lists the FaceTime HD Camera as
> device ID "0". But it does not show the inbuilt microphone.

We can't see any output.
https://ffmpeg.org/pipermail/ffmpeg-user/2014-September/023302.html

If you did include output originally: Please re-send your e-mail in
plain text.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-07 Thread Jay Muthialu
Hi Moritz,

I have given below the output in plain text.  I also tried adding a USB 
external microphone which is working great in multiple apple apps but ffmpeg 
does not seem to recognize and the output is  the same as shown below. I also 
wonder if my command is correct, as in Linix/Windows the command line to record 
from webcam explicitly includes Audio and Video streams inputs  but in OSX the 
command I am using does not seem to include audio input explicitly. 

Example: In Windows you  explicitly identify video and audio inputs as shown 
below and this world great.
 >ffmpeg –f dshow –i video=”USB2.0 Camera”:audio=”Microphone (Realtek High 
 >Definition Audio)” out.mp4 (Windows command line)

How to do the same in OSX?

Output in OSX listing the AV devices identified


$ ffmpeg -f avfoundation -list_devices true -i ""
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep  5 2014 18:11:41 with Apple LLVM version 5.1 (clang-503.0.40) 
(based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3.3 --enable-shared 
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree 
--enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang 
--host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac 
--enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora 
--enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass 
--enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac 
--enable-libopus --enable-frei0r --enable-libopenjpeg 
--disable-decoder=jpeg2000 
--extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil  52. 92.100 / 52. 92.100
  libavcodec 55. 69.100 / 55. 69.100
  libavformat55. 48.100 / 55. 48.100
  libavdevice55. 13.102 / 55. 13.102
  libavfilter 4. 11.100 /  4. 11.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale  2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc52.  3.100 / 52.  3.100
[AVFoundation input device @ 0x7fa011414ae0] AVFoundation video devices:
[AVFoundation input device @ 0x7fa011414ae0] [0] FaceTime HD Camera
: Input/output error

Thanks
Jay

On Sep 7, 2014, at 6:05 AM, Moritz Barsnick  wrote:

> On Sat, Sep 06, 2014 at 11:25:42 -0400, Jay Muthialu wrote:
> 
>> As you can see from the output it lists the FaceTime HD Camera as
>> device ID "0". But it does not show the inbuilt microphone.
> 
> We can't see any output.
> https://ffmpeg.org/pipermail/ffmpeg-user/2014-September/023302.html
> 
> If you did include output originally: Please re-send your e-mail in
> plain text.
> 
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


On Sep 6, 2014, at 11:25 AM, Jay Muthialu  wrote:

> Hello,
> 
> I could record video using  Macbook Air in built camera "FaceTime HD Camera" 
> but it does not record audio stream. I am working in OSX 10.8 version 
> (Mountain Lion).
> 
> Command I used to list the available devices
> 
> $ ffmpeg -f avfoundation -list_devices true -i ""
> 
> As you can see from the output it lists the FaceTime HD Camera as device ID 
> "0". But it does not show the inbuilt microphone.
> 
> 
> 
> 
> Command I used to record from FaceTime camera
> 
> $ ffmpeg -f avfoundation -r 29.97 -i "0" -y out.mov
> 
> However it only records the video stream and does not record audio output. I 
> believe the reason is the above command does not include the input for audio 
> stream. Can anyone advise me on how to record audio and video from inbuilt 
> FaceTime HD Camera and inbuilt microphone in OSX?
> 
> Thanks
> Jay
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-07 Thread Moritz Barsnick
On Sun, Sep 07, 2014 at 07:37:56 -0400, Jay Muthialu wrote:
> Output in OSX listing the AV devices identified

Ah. Back in June, ffmpeg's avfoundation didn't support audio yet, and I
think that hasn't changed:

https://ffmpeg.org/pipermail/ffmpeg-user/2014-June/021768.html

I think these are the experimental patches being referred to (see the
whole thread for all five patches):

https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2014-April/156865.html

Good luck, and do report your results if you happen to test them.

Moritz, no Mac OS myself.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-07 Thread Jay Muthialu
Hi Moritz,

Thanks for the great input. 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.
 
Thanks
Jay

On Sep 7, 2014, at 8:25 AM, Moritz Barsnick  wrote:

> On Sun, Sep 07, 2014 at 07:37:56 -0400, Jay Muthialu wrote:
>> Output in OSX listing the AV devices identified
> 
> Ah. Back in June, ffmpeg's avfoundation didn't support audio yet, and I
> think that hasn't changed:
> 
> https://ffmpeg.org/pipermail/ffmpeg-user/2014-June/021768.html
> 
> I think these are the experimental patches being referred to (see the
> whole thread for all five patches):
> 
> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2014-April/156865.html
> 
> Good luck, and do report your results if you happen to test them.
> 
> Moritz, no Mac OS myself.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-07 Thread Roger Pack
You'll basically be building it "by hand" using command line and applying
patches manually before you build it.
-roger-

On Sun, Sep 7, 2014 at 10:01 AM, Jay Muthialu <
jmuthialu-at-yahoo@ffmpeg.org> wrote:

> Hi Moritz,
>
> Thanks for the great input. 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.
>
> Thanks
> Jay
>
> On Sep 7, 2014, at 8:25 AM, Moritz Barsnick  wrote:
>
> > On Sun, Sep 07, 2014 at 07:37:56 -0400, Jay Muthialu wrote:
> >> Output in OSX listing the AV devices identified
> >
> > Ah. Back in June, ffmpeg's avfoundation didn't support audio yet, and I
> > think that hasn't changed:
> >
> > https://ffmpeg.org/pipermail/ffmpeg-user/2014-June/021768.html
> >
> > I think these are the experimental patches being referred to (see the
> > whole thread for all five patches):
> >
> > https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2014-April/156865.html
> >
> > Good luck, and do report your results if you happen to test them.
> >
> > Moritz, no Mac OS myself.
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-08 Thread Moritz Barsnick
Hi Jay,

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
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-08 Thread Moritz Barsnick
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
 -191,7 +191,7  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 

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

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-17 Thread Jay Muthialu
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
  libavformat56.  4.102 / 56.  4.102
  libavdevice56.  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
  libpostproc53.  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.

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.



avfoundation.m
Description: Binary data


Warm Regards
Jay

On Sep 8, 2014, at 3:52 AM, Moritz Barsnick  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
> -191,7 +191,7  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 
> 
> before the configure of make stage. As said, I have no idea how to
> interrupt homebrew stages.
> 
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-19 Thread Roger Pack
On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu <
jmuthialu-at-yahoo@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
>   libavformat56.  4.102 / 56.  4.102
>   libavdevice56.  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
>   libpostproc53.  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  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
> > -191,7 +191,7  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 
> >
> > before the configure of make stage. As said, I have no idea how to
> > interrupt homebrew stages.
> >
> > Moritz
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


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

2014-09-22 Thread Jay Muthialu
Hi Roger,

Thanks for your response. I tried to use it as input but still I could not get 
it to work. Please see below:

Test#1- In this I used -i "0" and the terminal got frozen after I ran the 
command. I had to force quit the terminal. However the FaceTime camera light 
was on when I ran the command but  nothing was captured. Command and the output 
is given below.

$ ffmpeg -f avfoundation -i "0" -r 29.97 -y out.mov

ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 17 2014 18:11:13 with Apple LLVM version 5.1 (clang-503.0.40) 
(based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/ffmpegavpatch 
--extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib 
--enable-shared --enable-pthreads --enable-gpl --enable-version3 
--enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda 
--cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac 
--enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora 
--enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass 
--enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac 
--enable-libopus --enable-frei0r --enable-libopenjpeg 
--disable-decoder=jpeg2000 
--extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.102 / 56.  4.102
  libavdevice56.  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
  libpostproc53.  0.100 / 53.  0.100

(Terminal was frozen and no output messages seen in the terminal)


Test#2 In this I tried to specify audio and video inputs separately as I do in 
Windows but I got the error message below.

$ ffmpeg -f avfoundation -i video="FaceTime HD Camera":audio="Built-in 
Microphone" -r 29.97 -y out.mov

  configuration: --prefix=/usr/local/ffmpegavpatch 
--extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib 
--enable-shared --enable-pthreads --enable-gpl --enable-version3 
--enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda 
--cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac 
--enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora 
--enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass 
--enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac 
--enable-libopus --enable-frei0r --enable-libopenjpeg 
--disable-decoder=jpeg2000 
--extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil  54.  7.100 / 54.  7.100
  libavcodec 56.  1.100 / 56.  1.100
  libavformat56.  4.102 / 56.  4.102
  libavdevice56.  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
  libpostproc53.  0.100 / 53.  0.100
[AVFoundation input device @ 0x7fc133c15700] Video device not found
video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error

I also tried $ffmpeg -f avfoundation -i video="FaceTime HD Camera" -i 
audio="Built-in Microphone" -r 29.97 -y out.mov and I got the same error 
message as above.



Warm Regards
Jay


On Sep 19, 2014, at 9:11 AM, Roger Pack  wrote:

> On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu <
> jmuthialu-at-yahoo@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
>>  libavformat56.  4.102 / 56.  4.102
>>  libavdevice56.  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
>>  libpostproc53.  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
>> 

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

2014-09-22 Thread Roger Pack
Could you try with git master [the patches were applied it seems, this
weekend]?
Also possibly run ffmpeg_g in gdb and see where it is hung?
Cheers!

On Mon, Sep 22, 2014 at 8:20 AM, Jay Muthialu <
jmuthialu-at-yahoo@ffmpeg.org> wrote:

> Hi Roger,
>
> Thanks for your response. I tried to use it as input but still I could not
> get it to work. Please see below:
>
> Test#1- In this I used -i "0" and the terminal got frozen after I ran the
> command. I had to force quit the terminal. However the FaceTime camera
> light was on when I ran the command but  nothing was captured. Command and
> the output is given below.
>
> $ ffmpeg -f avfoundation -i "0" -r 29.97 -y out.mov
>
> ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
>   built on Sep 17 2014 18:11:13 with Apple LLVM version 5.1
> (clang-503.0.40) (based on LLVM 3.4svn)
>   configuration: --prefix=/usr/local/ffmpegavpatch
> --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
> --enable-shared --enable-pthreads --enable-gpl --enable-version3
> --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda
> --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
> --enable-libmp3lame --enable-libxvid --enable-libfreetype
> --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc
> --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger
> --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg
> --disable-decoder=jpeg2000
> --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
>   libavutil  54.  7.100 / 54.  7.100
>   libavcodec 56.  1.100 / 56.  1.100
>   libavformat56.  4.102 / 56.  4.102
>   libavdevice56.  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
>   libpostproc53.  0.100 / 53.  0.100
>
> (Terminal was frozen and no output messages seen in the terminal)
>
>
> Test#2 In this I tried to specify audio and video inputs separately as I
> do in Windows but I got the error message below.
>
> $ ffmpeg -f avfoundation -i video="FaceTime HD Camera":audio="Built-in
> Microphone" -r 29.97 -y out.mov
>
>   configuration: --prefix=/usr/local/ffmpegavpatch
> --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
> --enable-shared --enable-pthreads --enable-gpl --enable-version3
> --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda
> --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
> --enable-libmp3lame --enable-libxvid --enable-libfreetype
> --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc
> --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger
> --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg
> --disable-decoder=jpeg2000
> --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
>   libavutil  54.  7.100 / 54.  7.100
>   libavcodec 56.  1.100 / 56.  1.100
>   libavformat56.  4.102 / 56.  4.102
>   libavdevice56.  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
>   libpostproc53.  0.100 / 53.  0.100
> [AVFoundation input device @ 0x7fc133c15700] Video device not found
> video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error
>
> I also tried $ffmpeg -f avfoundation -i video="FaceTime HD Camera" -i
> audio="Built-in Microphone" -r 29.97 -y out.mov and I got the same error
> message as above.
>
>
>
> Warm Regards
> Jay
>
>
> On Sep 19, 2014, at 9:11 AM, Roger Pack  wrote:
>
> > On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu <
> > jmuthialu-at-yahoo@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
> >>  libavformat56.  4.102 / 56.  4.102
> >>  libavdevice56.  0.100 / 56.  0.100
> >>  libavfilter 5.  1.101 /  5.  1.101
> >>  libavresample   2.  1.  0 /  2.  1.  0
> >>  libswscale  3

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

2014-09-22 Thread Jay Muthialu
Hi Roger,

 I will try the git master and update the thread. I also think there is 
something wrong in my command in OSX. When I run the below, it seems to 
recognize video device name as "FaceTime HD Camera":audio="Built-in Microphone" 
 which is not correct and hence it could not find the video device. What is the 
command I need to use to specifically identify audio and video streams. In 
windows it is very clear and it works good with this command ( ffmpeg –f dshow 
–i video=”USB2.0 Camera”:audio=”Microphone (Realtek High Definition Audio)”  
-pix_fmt yuv420p out.mp4). How to do the same in OSX?

Command I used in OSX
$ ffmpeg -f avfoundation -i video="FaceTime HD Camera":audio="Built-in 
Microphone" -r 29.97 -y out.mov
Output
>> [AVFoundation input device @ 0x7fc133c15700] Video device not found
>> video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error


Thanks
Jay
On Sep 22, 2014, at 10:30 AM, Roger Pack  wrote:

> Could you try with git master [the patches were applied it seems, this
> weekend]?
> Also possibly run ffmpeg_g in gdb and see where it is hung?
> Cheers!
> 
> On Mon, Sep 22, 2014 at 8:20 AM, Jay Muthialu <
> jmuthialu-at-yahoo@ffmpeg.org> wrote:
> 
>> Hi Roger,
>> 
>> Thanks for your response. I tried to use it as input but still I could not
>> get it to work. Please see below:
>> 
>> Test#1- In this I used -i "0" and the terminal got frozen after I ran the
>> command. I had to force quit the terminal. However the FaceTime camera
>> light was on when I ran the command but  nothing was captured. Command and
>> the output is given below.
>> 
>> $ ffmpeg -f avfoundation -i "0" -r 29.97 -y out.mov
>> 
>> ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
>>  built on Sep 17 2014 18:11:13 with Apple LLVM version 5.1
>> (clang-503.0.40) (based on LLVM 3.4svn)
>>  configuration: --prefix=/usr/local/ffmpegavpatch
>> --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
>> --enable-shared --enable-pthreads --enable-gpl --enable-version3
>> --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda
>> --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
>> --enable-libmp3lame --enable-libxvid --enable-libfreetype
>> --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
>> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc
>> --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger
>> --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg
>> --disable-decoder=jpeg2000
>> --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
>>  libavutil  54.  7.100 / 54.  7.100
>>  libavcodec 56.  1.100 / 56.  1.100
>>  libavformat56.  4.102 / 56.  4.102
>>  libavdevice56.  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
>>  libpostproc53.  0.100 / 53.  0.100
>> 
>> (Terminal was frozen and no output messages seen in the terminal)
>> 
>> 
>> Test#2 In this I tried to specify audio and video inputs separately as I
>> do in Windows but I got the error message below.
>> 
>> $ ffmpeg -f avfoundation -i video="FaceTime HD Camera":audio="Built-in
>> Microphone" -r 29.97 -y out.mov
>> 
>>  configuration: --prefix=/usr/local/ffmpegavpatch
>> --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
>> --enable-shared --enable-pthreads --enable-gpl --enable-version3
>> --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda
>> --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac
>> --enable-libmp3lame --enable-libxvid --enable-libfreetype
>> --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp
>> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc
>> --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger
>> --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg
>> --disable-decoder=jpeg2000
>> --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
>>  libavutil  54.  7.100 / 54.  7.100
>>  libavcodec 56.  1.100 / 56.  1.100
>>  libavformat56.  4.102 / 56.  4.102
>>  libavdevice56.  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
>>  libpostproc53.  0.100 / 53.  0.100
>> [AVFoundation input device @ 0x7fc133c15700] Video device not found
>> video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error
>> 
>> I also tried $ffmpeg -f avfoundation -i video="FaceTime HD Camera" -i
>> audio="Built-in Microphone" -r 29.97 -y out.mov and I got the same error
>> message as above.
>> 
>> 
>> 
>> Warm Regards
>> Jay
>> 
>> 
>> On Sep 19, 2014, at 9:11 AM, Roger 

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

2014-09-22 Thread Moritz Barsnick
On Mon, Sep 22, 2014 at 10:50:05 -0400, Jay Muthialu wrote:
> $ ffmpeg -f avfoundation -i video="FaceTime HD Camera":audio="Built-in 
> Microphone" -r 29.97 -y out.mov

I don't see any indication in the source (looking at those patches from
April 2014) that this syntax is supported.

Possibly just
$ ffmpeg -f avfoundation -i "FaceTime HD Camera":"Built-in Microphone" [...]

Or ask the author of the patches. ;-)

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user