[FFmpeg-trac] #6111(avdevice:open): macOS AVFoundation screen capture looks awful but FaceTime HD Cam capture fine

FFmpeg trac at avcodec.org
Tue Jan 31 15:51:13 EET 2017


#6111: macOS AVFoundation screen capture looks awful but FaceTime HD Cam capture
fine
-------------------------------------+-------------------------------------
             Reporter:  mixelpix     |                    Owner:
                 Type:  defect       |  thilo.borgmann
             Priority:  normal       |                   Status:  open
              Version:  unspecified  |                Component:  avdevice
             Keywords:               |               Resolution:
  avfoundation                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by mixelpix):

 Replying to [comment:8 cehoyos]:
 > Replying to [ticket:6111 mixelpix]:
 > > NOTE: 3.2.2 is not an option in the New Ticket >> Version pulldown
 menu
 > That's because only current FFmpeg git head is supported on this bug
 tracker (even more so for macos where no release support exists).

 Sorry, I was unaware that macOS has no release support.
 Apologies, I don't know what you mean by "FFmpeg git head"


 > Please test it

 I used Homebrew to install FFmpeg - do you mean I should reinstall with
 the --HEAD option (per
 https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX#ffmpegthroughHomebrew)
 and retry the capture?


 > ...and provide your command line together with the complete, uncut
 console output to make this a valid ticket.

 This is the complete console with my current "HEADless" install of FFmpeg
 3.2.2

 {{{
 $  ffmpeg -f avfoundation -i "1:none" desktop.mov
 ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
   built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 chromaprint --enable-ffplay --enable-frei0r --enable-libass --enable-
 libbluray --enable-libbs2b --enable-libcaca --enable-libebur128 --enable-
 libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-libopus --enable-librtmp --enable-librubberband --enable-
 libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex
 --enable-libssh --enable-libtesseract --enable-libtheora --enable-
 libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxvid --enable-libzimg --enable-libzmq --enable-opencl
 --enable-openssl --enable-lzma --enable-libopenjpeg --disable-
 decoder=jpeg2000 --extra-
 cflags=-I/usr/local/Cellar/openjpeg/2.1.2/include/openjpeg-2.1 --enable-
 nonfree --enable-vda
   libavutil      55. 34.100 / 55. 34.100
   libavcodec     57. 64.101 / 57. 64.101
   libavformat    57. 56.100 / 57. 56.100
   libavdevice    57.  1.100 / 57.  1.100
   libavfilter     6. 65.100 /  6. 65.100
   libavresample   3.  1.  0 /  3.  1.  0
   libswscale      4.  2.100 /  4.  2.100
   libswresample   2.  3.100 /  2.  3.100
   libpostproc    54.  1.100 / 54.  1.100
 [avfoundation @ 0x7fa3d8007e00] Selected pixel format (yuv420p) is not
 supported by the input device.
 [avfoundation @ 0x7fa3d8007e00] Supported pixel formats:
 [avfoundation @ 0x7fa3d8007e00]   uyvy422
 [avfoundation @ 0x7fa3d8007e00]   yuyv422
 [avfoundation @ 0x7fa3d8007e00]   nv12
 [avfoundation @ 0x7fa3d8007e00]   0rgb
 [avfoundation @ 0x7fa3d8007e00]   bgr0
 [avfoundation @ 0x7fa3d8007e00] Overriding selected pixel format to use
 uyvy422 instead.
 Input #0, avfoundation, from '1:none':
   Duration: N/A, start: 84627.828833, bitrate: N/A
     Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1366x768,
 30 tbr, 1000k tbn, 1000k tbc
 No pixel format specified, yuv422p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 0x7fa3d9073600] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7fa3d9073600] profile High 4:2:2, level 3.2, 4:2:2 8-bit
 [libx264 @ 0x7fa3d9073600] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mov, to 'desktop.mov':
   Metadata:
     encoder         : Lavf57.56.100
     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv422p,
 1366x768, q=-1--1, 30 fps, 15360 tbn, 30 tbc
     Metadata:
       encoder         : Lavc57.64.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=  156 fps= 28 q=-1.0 Lsize=     271kB time=00:00:05.10 bitrate=
 435.1kbits/s speed=0.909x
 video:268kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.971164%
 [libx264 @ 0x7fa3d9073600] frame I:1     Avg QP:21.04  size:251340
 [libx264 @ 0x7fa3d9073600] frame P:39    Avg QP:22.44  size:   300
 [libx264 @ 0x7fa3d9073600] frame B:116   Avg QP:32.98  size:    95
 [libx264 @ 0x7fa3d9073600] consecutive B-frames:  0.6%  0.0%  1.9% 97.4%
 [libx264 @ 0x7fa3d9073600] mb I  I16..4: 11.6% 18.7% 69.7%
 [libx264 @ 0x7fa3d9073600] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.9%
 0.0%  0.0%  0.0%  0.0%    skip:99.1%
 [libx264 @ 0x7fa3d9073600] mb B  I16..4:  0.0%  0.2%  0.0%  B16..8:  0.8%
 0.0%  0.0%  direct: 0.0%  skip:98.9%  L0:45.5% L1:54.5% BI: 0.0%
 [libx264 @ 0x7fa3d9073600] 8x8 transform intra:36.4% inter:35.2%
 [libx264 @ 0x7fa3d9073600] coded y,uvDC,uvAC intra: 42.9% 52.6% 51.1%
 inter: 0.0% 0.1% 0.0%
 [libx264 @ 0x7fa3d9073600] i16 v,h,dc,p: 10% 90%  1%  0%
 [libx264 @ 0x7fa3d9073600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 16% 57%  0%
 0%  0%  0%  0%  1%
 [libx264 @ 0x7fa3d9073600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 55%  9%  1%
 2%  1%  8%  1%  5%
 [libx264 @ 0x7fa3d9073600] i8c dc,h,v,p: 56% 29% 14%  1%
 [libx264 @ 0x7fa3d9073600] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7fa3d9073600] ref P L0: 67.7%  3.4% 26.9%  2.0%
 [libx264 @ 0x7fa3d9073600] ref B L0: 60.4% 38.3%  1.3%
 [libx264 @ 0x7fa3d9073600] ref B L1: 96.8%  3.2%
 [libx264 @ 0x7fa3d9073600] kb/s:421.59
 $
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6111#comment:9>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list