[FFmpeg-user] OS X screen record by ffmpeg

Steven Liu lingjiujianke at gmail.com
Mon Dec 1 07:51:41 CET 2014


> On Dec 1, 2014, at 2:41 PM, Thilo Borgmann <thilo.borgmann at mail.de> wrote:
> 
> Am 01.12.14 um 07:39 schrieb Thilo Borgmann:
>> Hi,
>> 
>>> 	There is no documents for the OS X desktop screen recording by ffmpeg,
>>> 	http://trac.ffmpeg.org/wiki/Capture/Desktop
>>> 	Is there have any ways for this operation?
>> 
>> you're right there is nothing on that wiki page and I'm adding it to my todo
>> list. For the time being, you'll find the information you're looking for at the
>> documentation page of the avfoundation input device:
>> 
>> http://ffmpeg.org/ffmpeg-devices.html#avfoundation
> 
> p.s. Screen capturing comes as a usual video input, so use -list_devices to
> query your screens.
> 
> -Thilo
Hi Thilo,

	I’ve list_devices the devices;but there have no screen option, just only camera option;
	Perhaps i have using the wrong parameters?


[StevenLiu at localhost ~]$ ffmpeg -f avfoundation -list_devices 1 -i ""
ffmpeg version N-65018-gad91bf8 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 27 2014 20:36:24 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --enable-opengl --enable-libx265 --enable-libx264 --enable-libmp3lame --enable-gpl --enable-libfaac --enable-nonfree --prefix=/usr/ --enable-libfreetype --enable-libass
  libavutil      52. 92.101 / 52. 92.101
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 49.100 / 55. 49.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.102 /  4. 11.102
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
[AVFoundation input device @ 0x7fb8125038a0] AVFoundation video devices:
[AVFoundation input device @ 0x7fb8125038a0] [0] FaceTime HD Camera (Built-in)
: Input/output error
[StevenLiu at localhost ~]$ ffmpeg -f avfoundation -list_devices 0 -i ""
ffmpeg version N-65018-gad91bf8 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 27 2014 20:36:24 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --enable-opengl --enable-libx265 --enable-libx264 --enable-libmp3lame --enable-gpl --enable-libfaac --enable-nonfree --prefix=/usr/ --enable-libfreetype --enable-libass
  libavutil      52. 92.101 / 52. 92.101
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 49.100 / 55. 49.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.102 /  4. 11.102
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
[avfoundation @ 0x7f967881f000] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7f967881f000] Supported pixel formats:
[avfoundation @ 0x7f967881f000]   uyvy422
[avfoundation @ 0x7f967881f000]   yuyv422
[avfoundation @ 0x7f967881f000]   nv12
[avfoundation @ 0x7f967881f000]   0rgb
[avfoundation @ 0x7f967881f000]   bgr0
[avfoundation @ 0x7f967881f000] Overriding selected pixel format to use uyvy422 instead.
Input #0, avfoundation, from '':
  Duration: N/A, start: 2.710000, bitrate: N/A
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1280x720, 100 tbr, 100 tbn, 100 tbc
At least one output file must be specified
[StevenLiu at localhost ~]$ 




Thanks,

Steven


More information about the ffmpeg-user mailing list