Opened 15 months ago

Last modified 15 months ago

#9303 new defect

Trimmed desktop

Reported by: Igor Kulikovskiy Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: gdigrab
Cc: Igor Kulikovskiy Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Trimmed right monitor when set scaling for it in system settings 125% and more, and another monitor (left) not scaled (100%).
If swap them in system settings, the error not occurs

How to reproduce:
ffmpeg -f gdigrab -i desktop -pix_fmt yuv420p -c:v libx264 out.mp4

Attachments (2)

Screenshot 2021-06-25 182209.png (92.4 KB ) - added by Igor Kulikovskiy 15 months ago.
Display settings
TrimmedVideo.jpg (1.0 MB ) - added by Igor Kulikovskiy 15 months ago.

Download all attachments as: .zip

Change History (6)

by Igor Kulikovskiy, 15 months ago

Display settings

by Igor Kulikovskiy, 15 months ago

Attachment: TrimmedVideo.jpg added

comment:1 by Carl Eugen Hoyos, 15 months ago

Keywords: HiDPI desktop removed
Priority: importantnormal
Version: 4.3.2unspecified

Please test current FFmpeg git head - the only version supported here - and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:2 by Igor Kulikovskiy, 15 months ago

With the current FFmpeg git head, the same problem

$ ffmpeg -f gdigrab -i desktop -pix_fmt yuv420p -c:v libx264 out.mp4
ffmpeg version 2021-06-27-git-49e3a8165c-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 10.3.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 2.100 / 59. 2.100
libavformat 59. 3.101 / 59. 3.101
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.103 / 8. 0.103
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100

[gdigrab @ 000000000297e200] Capturing whole desktop as 4096x1440x32 at (0,0)
[gdigrab @ 000000000297e200] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, gdigrab, from 'desktop':

Duration: N/A, start: 1624946082.350704, bitrate: 5656666 kb/s
Stream #0:0: Video: bmp, bgra, 4096x1440, 5656666 kb/s, 29.97 fps, 1000k tbr, 1000k tbn

File 'out.mp4' already exists. Overwrite? [y/N] y
Stream mapping:

Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))

Press [q] to stop, ? for help
[libx264 @ 0000000002981540] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000000002981540] profile High, level 5.1, 4:2:0, 8-bit
[libx264 @ 0000000002981540] 264 - core 164 r3065 ae03d92 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - 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=18 lookahead_threads=3 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, mp4, to 'out.mp4':

Metadata:

encoder : Lavf59.3.101

Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 4096x1440, q=2-31, 29.97 fps, 30k tbn

Metadata:

encoder : Lavc59.2.100 libx264

Side data:

cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A

frame= 725 fps= 45 q=29.0 size= 1792kB time=00:00:22.02 bitrate= 666.6kbits/s dup=555 drop=0 speed=1.38x

comment:3 by Igor Kulikovskiy, 15 months ago

Clarification, this error occurs if there are multiple high-resolution monitors with enabled scaling

comment:4 by Igor Kulikovskiy, 15 months ago

Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.