Jump to content


Photo

capture mac's screen as video


  • Please log in to reply
2 replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 09 November 2015 - 08:06 PM

 ffmpeg -f avfoundation -video_device_index 1 -i "default" out.mpg



#2 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 09 November 2015 - 08:11 PM

Jingfengs-MacBook-Pro:cam jingfengliu$ ffmpeg -f avfoundation -list_devices true -i ""

ffmpeg version 2.8.1 Copyright © 2000-2015 the FFmpeg developers

  built with Apple LLVM version 7.0.0 (clang-700.0.72)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.1_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda

  libavutil      54. 31.100 / 54. 31.100

  libavcodec     56. 60.100 / 56. 60.100

  libavformat    56. 40.101 / 56. 40.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 40.101 /  5. 40.101

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.101 /  1.  2.101

  libpostproc    53.  3.100 / 53.  3.100

[AVFoundation input device @ 0x7fa369d15f40] AVFoundation video devices:

[AVFoundation input device @ 0x7fa369d15f40] [0] FaceTime HD Camera

[AVFoundation input device @ 0x7fa369d15f40] [1] Capture screen 0

[AVFoundation input device @ 0x7fa369d15f40] AVFoundation audio devices:

[AVFoundation input device @ 0x7fa369d15f40] [0] Built-in Microphone

: Input/output error



#3 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 09 November 2015 - 08:20 PM

capture the built-in camera:

 

ffmpeg -f avfoundation -framerate 30 -video_device_index 0 -i "default" out.mpg 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users