Opened 4 years ago

Closed 4 years ago

#4880 closed defect (invalid)

failure to record from webcam

Reported by: lr25374 Owned by: thilo.borgmann
Priority: normal Component: avdevice
Version: git-master Keywords: avfoundation
Cc: lukereding@gmail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I am trying to use ffmpeg to record a video from my webcam.

I am running the latest version of ffmpeg from git install via homebrew install ffmpeg --HEAD. I am running OS X 10.10.5. I am using a Logitech C310 webcam, which works via Photobooth and other applications.

ffmpeg throws an input/output error whenever I try to record a file form my webcam. The same error persists when using different versions of ffmpeg (2.8, 2.6.4, 2.7.2) or when using a different webcam (Microsoft LifeCam? Studio).

% ffmpeg -f avfoundation -i "1" out.mpg
ffmpeg version N-42510-gaa6c43f Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --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      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  8.100 /  6.  8.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
[avfoundation @ 0x7fbb8a800000] Selected framerate (29.970030) is not supported by the device
[avfoundation @ 0x7fbb8a800000] Supported modes:
[avfoundation @ 0x7fbb8a800000]   160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   1280x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x720@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x720@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   1280x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x960@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   1280x960@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x960@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x960@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   1280x960@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   1280x960@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   160x120@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   176x144@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x176@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   320x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   352x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   432x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   544x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   640x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   752x416@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x448@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   864x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   800x600@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x544@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   1024x576@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   960x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a800000]   1184x656@[5.000000 5.000000]fps
1: Input/output error

Explicating passing the size of the video with the -s flag and changing the framerate with the -r flag to match one of the combinations listed does not change the result.

% ffmpeg -f avfoundation -list_devices true -i ""
ffmpeg version N-42510-gaa6c43f Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --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      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  8.100 /  6.  8.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
[AVFoundation input device @ 0x7fa709600280] AVFoundation video devices:
[AVFoundation input device @ 0x7fa709600280] [0] FaceTime HD Camera (Built-in)
[AVFoundation input device @ 0x7fa709600280] [1] Logitech Camera
[AVFoundation input device @ 0x7fa709600280] [2] Capture screen 0
[AVFoundation input device @ 0x7fa709600280] AVFoundation audio devices:
[AVFoundation input device @ 0x7fa709600280] [0] Built-in Microphone
[AVFoundation input device @ 0x7fa709600280] [1] Logitech Camera
: Input/output error
%  ffmpeg -v 9 -loglevel 99 -f avfoundation -i 1
ffmpeg version N-42510-gaa6c43f Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --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      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  8.100 /  6.  8.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'avfoundation'.
Reading option '-i' ... matched as input file with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file 1.
Applying option f (force format) with argument avfoundation.
Successfully parsed a group of options.
Opening an input file: 1.
[avfoundation @ 0x7fbb8a000000] 'Logitech Camera' opened
[avfoundation @ 0x7fbb8a000000] Selected framerate (29.970030) is not supported by the device
[avfoundation @ 0x7fbb8a000000] Supported modes:
[avfoundation @ 0x7fbb8a000000]   160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   1280x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x720@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x720@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   1280x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x960@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   1280x960@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x960@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x960@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   1280x960@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   1280x960@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   160x120@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   176x144@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x176@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   320x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   352x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   432x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   544x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   640x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[25.000000 25.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   752x416@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x448@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   864x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   800x600@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[15.000015 15.000015]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x544@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   1024x576@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   960x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[10.000000 10.000000]fps
[avfoundation @ 0x7fbb8a000000]   1184x656@[5.000000 5.000000]fps
1: Input/output error

Change History (7)

comment:1 Changed 4 years ago by lr25374

  • Cc lukereding@gmail.com added

comment:2 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avdevice
  • Keywords avfoundation added; webcam removed
  • Priority changed from important to normal

Please show command line and console output when you specify correct values for size and frame rate.

comment:3 Changed 4 years ago by lr25374

Output when framerate and size of video are given:

% ffmpeg -f avfoundation -i "1" -s 1184x656 -r 5 out.mpg
ffmpeg version N-42510-gaa6c43f Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --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      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  8.100 /  6.  8.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
[avfoundation @ 0x7fa79a00da00] Selected framerate (29.970030) is not supported by the device
[avfoundation @ 0x7fa79a00da00] Supported modes:
[avfoundation @ 0x7fa79a00da00]   160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   1280x720@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x720@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x720@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   1280x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x960@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   1280x960@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x960@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x960@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   1280x960@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   1280x960@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   160x120@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   176x144@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x176@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   320x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   352x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   432x240@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   544x288@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   640x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[25.000000 25.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   752x416@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x448@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   864x480@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   800x600@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[15.000015 15.000015]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x544@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   1024x576@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   960x720@[5.000000 5.000000]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[10.000000 10.000000]fps
[avfoundation @ 0x7fa79a00da00]   1184x656@[5.000000 5.000000]fps
1: Input/output error
Last edited 4 years ago by lr25374 (previous) (diff)

comment:4 Changed 4 years ago by thilo.borgmann

Please test again using avfoundation's options to set framerate and video size:

ffmpeg -f avfoundation -video_size XXXXX -framerate XX -i "X" out.mpg

comment:5 Changed 4 years ago by thilo.borgmann

  • Owner set to thilo.borgmann
  • Status changed from new to open

comment:6 Changed 4 years ago by lr25374

% ffmpeg -f avfoundation -video_size 1184x656 -framerate 10 -i "1" -y out.mpg
ffmpeg version N-42510-gaa6c43f Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --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      55.  2.100 / 55.  2.100
  libavcodec     57.  3.100 / 57.  3.100
  libavformat    57.  2.100 / 57.  2.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  8.100 /  6.  8.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
[avfoundation @ 0x7fc723000000] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7fc723000000] Supported pixel formats:
[avfoundation @ 0x7fc723000000]   uyvy422
[avfoundation @ 0x7fc723000000]   yuyv422
[avfoundation @ 0x7fc723000000]   nv12
[avfoundation @ 0x7fc723000000]   0rgb
[avfoundation @ 0x7fc723000000]   bgr0
[avfoundation @ 0x7fc723000000] Overriding selected pixel format to use uyvy422 instead.
Input #0, avfoundation, from '1':
  Duration: N/A, start: 27542.969567, bitrate: N/A
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1184x656, 10 fps, 10 tbr, 1000k tbn, 1000k tbc
[mpeg1video @ 0x7fc72282dc00] MPEG1/2 does not support 10/1 fps
Output #0, mpeg, to 'out.mpg':
    Stream #0:0: Video: mpeg1video, none, q=2-31, 128 kb/s, 10 fps
    Metadata:
      encoder         : Lavc57.3.100 mpeg1video
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg1video (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

comment:7 Changed 4 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from open to closed

MPEG video does not allow 10 fps, use another codec or another frame rate.

Note: See TracTickets for help on using tickets.