[FFmpeg-user] avfoundation on osx 10.7.5: issues with audio input

John Robinson jrobinsonmedia at gmail.com
Wed Mar 4 18:12:24 CET 2015


I'm trying to record both screen and audio on an older intel mac mini (circa 2009). The machine is running OSX 10.7.5. I've been able to compile and test ffmpeg on my other mac which is running OSX 10.9.5 just fine. 

So far I've tried the following on the 10.7.5 machine....

./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass  --enable-libx264 --enable-indev=avfoundation
make && sudo make install

It compiles and installs fine, but when I run the following:

./ffmpeg -f avfoundation -i "0:0" ~/Desktop/screenout.mpg

I get this response:

ffmpeg version N-70396-g81a9126 Copyright (c) 2000-2015 the FFmpeg developers
  built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libx264 --enable-indev=avfoundation
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 24.100 / 56. 24.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Unknown input format: 'avfoundation'

If I change the ./configure like so:
./configure --cc=/usr/bin/clang --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libx264 --enable-indev=avfoundation
make && sudo make install

and then run:
./ffmpeg -f avfoundation -i "0:0" ~/Desktop/screenout.mpg

I get the following output: 

 ffmpeg version N-70396-g81a9126 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
  configuration: --cc=/usr/bin/clang --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libx264 --enable-indev=avfoundation
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 24.100 / 56. 24.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[avfoundation @ 0x7fa6c983ec00] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7fa6c983ec00] Supported pixel formats:
[avfoundation @ 0x7fa6c983ec00]   uyvy422
[avfoundation @ 0x7fa6c983ec00]   yuyv422
[avfoundation @ 0x7fa6c983ec00]   0rgb
[avfoundation @ 0x7fa6c983ec00]   bgr0
[avfoundation @ 0x7fa6c983ec00]   rgb24
[avfoundation @ 0x7fa6c983ec00]   rgb555be
[avfoundation @ 0x7fa6c983ec00]   rgb565be
[avfoundation @ 0x7fa6c983ec00]   rgb555le
[avfoundation @ 0x7fa6c983ec00]   rgb565le
[avfoundation @ 0x7fa6c983ec00]   yuv444p
[avfoundation @ 0x7fa6c983ec00]   yuv422p16le
[avfoundation @ 0x7fa6c983ec00]   yuv422p10le
[avfoundation @ 0x7fa6c983ec00]   yuv444p10le
[avfoundation @ 0x7fa6c983ec00] Overriding selected pixel format to use uyvy422 instead.
[avfoundation @ 0x7fa6c983ec00] audio format is not supported
0:0: Input/output error

As a side note, I've modified 'configure' . I've removed the -framework CoreGraphics bits since ffmpeg wouldn't compile with those bits included. I also tried changing it to ApplicationServices which compiled, but resulted in the same 'audio format is not supported' error when I tried to capture audio. Anyone have any thoughts? I don't know enough objective-C to modify avfoundation.m to give a more descriptive error message but if anyone wants to point me in the right direction I'll gladly give it a whirl and try to capture any more details as to what's going wrong.

Thanks!
JR





More information about the ffmpeg-user mailing list