[FFmpeg-user] How to capture video and audio from MacBook's camera/microphone?
Kuu Miyazaki
miyazaqui at gmail.com
Sat Oct 10 17:43:38 CEST 2015
>You will have to use the filters "video:audio" syntax, or the
-audio/video_device_index options.
Thank you very much.
Now I can get a V+A file.
Though the sound is still silent, the audio data itself seems to be included.
I will try tweaking some parameters.
Thanks anyway,
-Kuu
$ ffmpeg -f avfoundation -video_size 320x240 -framerate 30
-pixel_format bgr0 -i "0:0" video-audio.webm
* snip *
Input #0, avfoundation, from '0:0':
Duration: N/A, start: 83876.436168, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 320x240,
30 tbr, 1000k tbn, 1000k tbc
Stream #0:1: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s
[libvpx-vp9 @ 0x7faaa3847c00] v1.4.0
[libopus @ 0x7faaa3848800] No bit rate set. Defaulting to 96000 bps.
Output #0, webm, to 'test.webm':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: vp9 (libvpx-vp9), yuv444p, 320x240, q=-1--1,
200 kb/s, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 libvpx-vp9
Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s
Metadata:
encoder : Lavc56.60.100 libopus
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))
Stream #0:1 -> #0:1 (pcm_f32le (native) -> opus (libopus))
Press [q] to stop, [?] for help
frame= 75 fps= 12 q=0.0 Lsize= 82kB time=00:00:07.20 bitrate=
93.1kbits/s
video:70kB audio:11kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 1.805392%
2015-10-10 23:52 GMT+09:00 Thilo Borgmann <thilo.borgmann at mail.de>:
> Am 10.10.15 um 16:15 schrieb Kuu Miyazaki:
>> I'm trying to capture WebM(VP9+Opus) video on my macbook using ffmpeg.
>> I was able to create a video-only file.
>> But I have no idea how to create a vide+audio file.
>> Below are the device list and what I've done so far.
>> Does anyone have any advice?
>
> Please check
>
> https://ffmpeg.org/ffmpeg-devices.html#avfoundation
>
> again. You will have to use the filters "video:audio" syntax, or the
> -audio/video_device_index options.
>
> -Thilo
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list