Opened 3 years ago

Last modified 3 years ago

#9282 new defect

Rotate the screen, the screen cannot be recorded normally.

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

Description

Rotate the screen, the screen cannot be recorded normally.
How to reproduce:
(1)ffmpeg -f x11grab -framerate 25 -video_size 1920*1080 -i $DISPLAY out.mp4
(2)Set screen rotation.

log:
houlei@houlei-PC:/data/home/houlei/project/ffmpeg/6.8/ffmpeg$ ffmpeg -f x11grab -framerate 25 -video_size 1920*1080 -i $DISPLAY out.mp4
ffmpeg version 4.1.6-1+dde Copyright (c) 2000-2020 the FFmpeg developers

built with gcc 8 (Uos 8.3.0.6-1+dde)
configuration: --prefix=/usr --extra-version=1+dde --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100

[x11grab @ 0x56277a6b18c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':0':

Duration: N/A, start: 1623143695.301607, bitrate: N/A

Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc

Cannot open libmwv206dec.so, libmwv206dec.so: cannot open shared object file: No such file or directory
Stream mapping:

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

Press [q] to stop, ? for help
[libx264 @ 0x56277a6bf580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x56277a6bf580] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 0x56277a6bf580] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=24 lookahead_threads=4 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 : Lavf58.20.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1920x1080, q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:

encoder : Lavc58.35.100 libx264

Side data:

cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1

[x11grab @ 0x56277a6b18c0] Cannot get the image data event_error: response_type:0 error_code:8 sequence:985 resource_id:155189248 minor_code:4 major_code:130.
[x11grab @ 0x56277a6b18c0] Cannot get the image data event_error: response_type:0 error_code:8 sequence:986 resource_id:1741 minor_code:0 major_code:73.
:0: Permission denied
frame= 244 fps= 23 q=-1.0 Lsize= 623kB time=00:00:09.64 bitrate= 529.2kbits/s speed=0.924x
video:619kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.594385%
[libx264 @ 0x56277a6bf580] frame I:2 Avg QP: 8.67 size:179641
[libx264 @ 0x56277a6bf580] frame P:62 Avg QP:13.05 size: 3968
[libx264 @ 0x56277a6bf580] frame B:180 Avg QP:14.85 size: 155
[libx264 @ 0x56277a6bf580] consecutive B-frames: 1.6% 0.0% 0.0% 98.4%
[libx264 @ 0x56277a6bf580] mb I I16..4: 75.6% 0.0% 24.4%
[libx264 @ 0x56277a6bf580] mb P I16..4: 1.4% 0.0% 0.4% P16..4: 0.5% 0.1% 0.0% 0.0% 0.0% skip:97.5%
[libx264 @ 0x56277a6bf580] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.3% 0.0% 0.0% direct: 0.0% skip:98.7% L0:57.2% L1:42.8% BI: 0.1%
[libx264 @ 0x56277a6bf580] coded y,u,v intra: 16.9% 14.2% 14.4% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x56277a6bf580] i16 v,h,dc,p: 69% 29% 2% 0%
[libx264 @ 0x56277a6bf580] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 27% 13% 2% 4% 3% 5% 3% 5%
[libx264 @ 0x56277a6bf580] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x56277a6bf580] ref P L0: 46.5% 26.4% 18.3% 8.8%
[libx264 @ 0x56277a6bf580] ref B L0: 44.8% 52.7% 2.5%
[libx264 @ 0x56277a6bf580] ref B L1: 99.5% 0.5%
[libx264 @ 0x56277a6bf580] kb/s:519.05

Change History (1)

in reply to:  description comment:1 by Carl Eugen Hoyos, 3 years ago

Component: ffmpegundetermined
Priority: importantnormal

Replying to HouLei:

(1)ffmpeg -f x11grab -framerate 25 -video_size 1920*1080 -i $DISPLAY out.mp4
(2)Set screen rotation.

What could be the expected behaviour? Or do I misunderstand the above?

Please test current FFmpeg git head to make this a valid ticket.

Note: See TracTickets for help on using tickets.