$ ffmpeg -hide_banner -f x11grab -framerate 25 -video_size 622x484 -i :0+1100,400+nomouse -f alsa -i pulse -pix_fmt yuv420p -c:v libx264 -c:a libmp3lame -q:v 1 -t 20 testvideo11.mp4
Input #0, x11grab, from ':0+1100,400+nomouse':
Duration: N/A, start: 1614180307.110345, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 622x484, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'pulse':
Duration: N/A, start: 1614180307.299369, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[swscaler @ 0x556669c07fc0] Warning: data is not aligned! This can lead to a speed loss
[libx264 @ 0x556669bf9d40] -qscale is ignored, -crf is recommended.
[libx264 @ 0x556669bf9d40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x556669bf9d40] profile High, level 3.0
[libx264 @ 0x556669bf9d40] 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=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=12 lookahead_threads=2 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 'testvideo11.mp4':
Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 622x484, q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.54.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: mp3 (libmp3lame) (mp4a / 0x6134706D), 48000 Hz, stereo, s16p
Metadata:
encoder : Lavc58.54.100 libmp3lame
[alsa @ 0x556669bd3840] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
frame= 500 fps= 25 q=-1.0 Lsize= 454kB time=00:00:20.01 bitrate= 186.0kbits/s speed=0.995x
video:121kB audio:313kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.688069%
[libx264 @ 0x556669bf9d40] frame I:2 Avg QP:18.39 size: 31961
[libx264 @ 0x556669bf9d40] frame P:134 Avg QP:23.16 size: 305
[libx264 @ 0x556669bf9d40] frame B:364 Avg QP:27.21 size: 51
[libx264 @ 0x556669bf9d40] consecutive B-frames: 1.4% 3.6% 3.0% 92.0%
[libx264 @ 0x556669bf9d40] mb I I16..4: 25.7% 38.2% 36.1%
[libx264 @ 0x556669bf9d40] mb P I16..4: 0.3% 0.2% 0.1% P16..4: 2.3% 0.6% 0.4% 0.0% 0.0% skip:96.2%
[libx264 @ 0x556669bf9d40] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 1.2% 0.1% 0.0% direct: 0.1% skip:98.5% L0:30.0% L1:67.5% BI: 2.5%
[libx264 @ 0x556669bf9d40] 8x8 transform intra:34.6% inter:68.8%
[libx264 @ 0x556669bf9d40] coded y,uvDC,uvAC intra: 32.3% 27.5% 18.3% inter: 0.3% 0.4% 0.0%
[libx264 @ 0x556669bf9d40] i16 v,h,dc,p: 54% 42% 1% 3%
[libx264 @ 0x556669bf9d40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 43% 18% 2% 1% 2% 2% 1% 2%
[libx264 @ 0x556669bf9d40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 34% 12% 2% 3% 4% 3% 4% 3%
[libx264 @ 0x556669bf9d40] i8c dc,h,v,p: 67% 19% 13% 1%
[libx264 @ 0x556669bf9d40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x556669bf9d40] ref P L0: 77.0% 6.6% 12.7% 3.7%
[libx264 @ 0x556669bf9d40] ref B L0: 57.8% 38.6% 3.5%
[libx264 @ 0x556669bf9d40] ref B L1: 96.9% 3.1%
[libx264 @ 0x556669bf9d40] kb/s:49.29