[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 16:36:04 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]:
> Please test it and provide your command line together with the complete,
uncut console output to make this a valid ticket.
I've reinstalled FFmpeg with the --HEAD option:
{{{$ brew install ffmpeg --HEAD}}}
...and this is the entire console output from capturing my desktop with AV
Foundation
{{{
$ ffmpeg -f avfoundation -i "1:none" desktop.mov
ffmpeg version git-2017-01-31-3405d6c Copyright (c) 2000-2017 the FFmpeg
developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3405d6c --enable-
shared --enable-pthreads --enable-gpl --enable-version3 --enable-
hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-
ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-
opencl --disable-lzma --enable-vda
libavutil 55. 45.100 / 55. 45.100
libavcodec 57. 75.100 / 57. 75.100
libavformat 57. 66.101 / 57. 66.101
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 72.100 / 6. 72.100
libavresample 3. 2. 0 / 3. 2. 0
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
[avfoundation @ 0x7fc803802600] Selected pixel format (yuv420p) is not
supported by the input device.
[avfoundation @ 0x7fc803802600] Supported pixel formats:
[avfoundation @ 0x7fc803802600] uyvy422
[avfoundation @ 0x7fc803802600] yuyv422
[avfoundation @ 0x7fc803802600] nv12
[avfoundation @ 0x7fc803802600] 0rgb
[avfoundation @ 0x7fc803802600] bgr0
[avfoundation @ 0x7fc803802600] Overriding selected pixel format to use
uyvy422 instead.
Input #0, avfoundation, from '1:none':
Duration: N/A, start: 87118.887667, 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 @ 0x7fc803834e00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7fc803834e00] profile High 4:2:2, level 3.2, 4:2:2 8-bit
[libx264 @ 0x7fc803834e00] 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.66.101
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv422p,
1366x768, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.75.100 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= 382 fps= 29 q=-1.0 Lsize= 951kB time=00:00:12.63 bitrate=
616.5kbits/s dup=6 drop=0 speed=0.953x
video:945kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.554439%
[libx264 @ 0x7fc803834e00] frame I:2 Avg QP:19.70 size:204812
[libx264 @ 0x7fc803834e00] frame P:98 Avg QP:22.37 size: 5188
[libx264 @ 0x7fc803834e00] frame B:282 Avg QP:33.66 size: 175
[libx264 @ 0x7fc803834e00] consecutive B-frames: 1.0% 1.0% 1.6% 96.3%
[libx264 @ 0x7fc803834e00] mb I I16..4: 12.7% 44.1% 43.2%
[libx264 @ 0x7fc803834e00] mb P I16..4: 0.2% 0.6% 0.6% P16..4: 7.3%
1.1% 0.8% 0.0% 0.0% skip:89.5%
[libx264 @ 0x7fc803834e00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.4%
0.1% 0.0% direct: 0.0% skip:97.4% L0:25.9% L1:73.6% BI: 0.5%
[libx264 @ 0x7fc803834e00] 8x8 transform intra:44.7% inter:72.7%
[libx264 @ 0x7fc803834e00] coded y,uvDC,uvAC intra: 71.4% 83.6% 81.3%
inter: 0.7% 1.6% 0.3%
[libx264 @ 0x7fc803834e00] i16 v,h,dc,p: 3% 91% 0% 6%
[libx264 @ 0x7fc803834e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 5% 84% 8% 0%
0% 0% 2% 0% 1%
[libx264 @ 0x7fc803834e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 4% 73% 9% 0%
1% 0% 9% 0% 3%
[libx264 @ 0x7fc803834e00] i8c dc,h,v,p: 35% 62% 2% 1%
[libx264 @ 0x7fc803834e00] Weighted P-Frames: Y:3.1% UV:3.1%
[libx264 @ 0x7fc803834e00] ref P L0: 64.7% 9.2% 22.6% 3.0% 0.5%
[libx264 @ 0x7fc803834e00] ref B L0: 83.8% 14.2% 2.0%
[libx264 @ 0x7fc803834e00] ref B L1: 95.7% 4.3%
[libx264 @ 0x7fc803834e00] kb/s:607.85
$
}}}
...and this is the result:
[[Image(desktop.2.jpg)]]
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6111#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list