Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Added OS X Screen Capture device #75
this breaks build on linux
Hello, I have been using the merge since it launched and it works great in Maveriks. Thank you very much for this sensational contribution. The only thing is that I could not set up the audio with OpenAL. Try to do the same to set it but I could not. I'm using SOX a python script with multhreding to capture audio and video simultaneously.
Thank you very much.
I changed them to static inline.
I have a branch ready for testing that includes audio support. It is working locally, but has a few pops and clicks. I'm not sure of why it is doing this. Can anyone offer advise?
The branch is located here: https://github.com/jbenden/FFmpeg/tree/avcapture-audio
I now have a branch where I've merged avcapture with avfoundation. https://github.com/jbenden/FFmpeg/tree/avfoundation
It experiences the same troubles that plagued avcapture; namely that the frame rate must be fixed at 30 or the sound is sped up. Additionally, it does NOT seem as if any of the arguments passed to ffmpeg are honored - I had to hard code my device indexes to even test this out.
I teste yesterday on a mini with no video devices so maybe this is true. Will test again later today.
I used: -i "#" and -i "Captire screen #" which are working for me.
What command line does not work as expected for you?
That did the trick! (Note I patched the n+1 problem in display enumeration)
→ ffmpeg -f avfoundation -list_devices true -i "" 10/25 @ 07:15
Hello, thank you very much for the help. I compiled the new version of the branch-avcapure audio. These are devices that shows me the system:
[AVFoundation input device @ 0x7faf53d0cfe0] AVFoundation video devices:
But I have doubts on how to execute the command. I need to capture video of your screen and audio from the microphone, but the camera is triggered and recording the screen but with many interruptions:
ffmpeg -i -f avcapture '0' -i -f avfoundation '0' /Users/user/5.mkv
as to differentiate avfoundation  Built-in Microphone and not  in iSight
Use this version https://github.com/jbenden/FFmpeg/tree/avfoundation since the master does not recognize my microphone.
Thank you very much!
Hi! Thank you very much for answering. I'm on a macbook pro with mavericks.
I apologize if I did not understand. I need to capture video from my desk and microphone audio.
Yes, I am from Colombia, how are you? I take and I tell ... finished compiling FFMPEG master version, and success !!! recorded video and audio from my desk ... but I deleted audio frames ... audio cuts out and comes back when I play video. I'm on a Mac book pro with mavericks.
use this command: ffmpeg_master avfoundation -f -i '1: 0' /Users/user/1.mkv
Greetings from Colombia !!!!
Si, soy de Colombia, como estás? Aprovecho y te cuento... acabe de compilar la versión master de FFMPEG, y éxito!!! grabo video de mi escritorio y audio... pero me borra frames de audio... el audio se corta y regresa cuando reproduzco el video. Estoy en un Mac book pro con mavericks.
use este comando: ffmpeg_master -f avfoundation -i '1:0' /Users/user/1.mkv
Saludos de Colombia!!!!
No hablo español mucho ni lo hablo bien porque es mi segundo año aprendiendo español en mi escuela. Vivo en los Estados Unidos, pero soy de China, y español es mi tercera idioma. Hay muchos mexicanos aquí en California y español es muy útil.
Voy a (give you) unas instrucciones para debugar el problema en inglés, pero pienso @thiloborgmann sabe más en el sujeto.
Saludos de Los Ángeles, y por favor corregir mi (writing)!
Spanish is my third language so I'm not really good at it. Please correct me in any way you could!
I suspect the order of
and report back? Just so you know, the first number is the video device while the second is the audio device. You don't have a video device
If you still get some error, could you post the log of the failed command? It will help us debug the problem.
@thiloborgmann Two questions I have here:
Hello and of course with pleasure ... my English is also very bad, so excuse me ...
Use new version of FFMPEG master with the command ->
ffmpeg_master -f avfoundation -list_devices true -i ""
and this is the list of devices that I have:
[AVFoundation input device @ 0x7fe40b50d060] AVFoundation video devices:
to execute the command
ffmpeg_master -f avfoundation -i '1:0' /Users/user/1.mkv
Capture great video from my desktop, but the audio has cut frames. that's the thing ...