waouh ! fonctionne aussi sous wayland !
https://la-vache-libre.org/xwininfo-tro … -gnulinux/xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x1000001 "Molotov"
Absolute upper-left X: 115
Absolute upper-left Y: 545
Relative upper-left X: 115
Relative upper-left Y: 545
Width: 1339
Height: 711
Depth: 24
Visual: 0x26
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x25 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +115+545 -3666+545 -3666-344 +115-344
-geometry 1339x711+115+545
je teste le script , voir .
alain@Alain-PC:~/Téléchargements$ ./capture_molotov.sh
ffmpeg version 4.1.4-1+b3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9 (Debian 9.2.1-9)
configuration: --prefix=/usr --extra-version=1+b3 --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
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0,0':
Duration: N/A, start: 1571507389.676313, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[x11grab @ 0x55d79aa90f00] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #1, x11grab, from ':0.0+115,545':
Duration: N/A, start: 1571507389.710250, bitrate: N/A
Stream #1:0: Video: rawvideo, 1 reference frame (BGR[0] / 0x524742), bgr0, 1339x711, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[graph 0 input from stream 1:0 @ 0x55d79aab4200] w:1339 h:711 pixfmt:bgr0 tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2
[auto_scaler_0 @ 0x55d79aab80c0] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x55d79aab5140] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[auto_scaler_0 @ 0x55d79aab80c0] w:1339 h:711 fmt:bgr0 sar:0/1 -> w:1339 h:711 fmt:yuv444p sar:0/1 flags:0x4
[swscaler @ 0x55d79aab9040] Warning: data is not aligned! This can lead to a speed loss
[libx264 @ 0x55d79aa9ef80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55d79aa9ef80] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
[libx264 @ 0x55d79aa9ef80] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 threads=22 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
[graph_1_in_0_0 @ 0x55d79d6ebe80] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x55d79d6eca00] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0x55d79d6eea00] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:s16p r:48000Hz
Output #0, matroska, to '/home/alain/SCREENSHOT/[Le 19-10-19 à 19:49:49]_SCREENSHOT.mkv':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (libx264), 1 reference frame (H264 / 0x34363248), yuv444p(progressive), 1339x711, q=-1--1, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc58.35.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, delay 1105
Metadata:
encoder : Lavc58.35.100 libmp3lame
frame= 17 fps=0.0 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= [alsa @ 0x55d79aa73900] Thread message queue blocking; consider raising the thread_queue_size option (current value: 512)
frame= 32 fps= 32 q=13.0 size= 1kB time=00:00:00.26 bitrate= 27.8kbits/frame= 47 fps= 31 q=13.0 size= 1kB time=00:00:00.76 bitrate= 9.7kbits/frame= 62 fps= 31 q=13.0 size= 1kB time=00:00:01.27 bitrate= 5.8kbits/frame= 77 fps= 31 q=13.0 size= 1kB time=00:00:01.77 bitrate= 4.2kbits/frame= 92 fps= 31 q=13.0 size= 1kB time=00:00:02.28 bitrate= 3.3kbits/frame= 107 fps= 30 q=13.0 size= 1kB time=00:00:02.76 bitrate= 2.7kbits/frame= 122 fps= 30 q=13.0 size= 1kB time=00:00:03.26 bitrate= 2.3kbits/frame= 137 fps= 30 q=13.0 size= 1kB time=00:00:03.76 bitrate= 2.0kbits/frame= 152 fps= 30 q=13.0 size= 1kB time=00:00:04.27 bitrate= 1.7kbits/frame= 167 fps= 30 q=13.0 size= 1kB time=00:00:04.77 bitrate= 1.6kbits/frame= 182 fps= 30 q=13.0 size= 87kB time=00:00:05.26 bitrate= 135.6kbits/frame= 197 fps= 30 q=13.0 size= 87kB time=00:00:05.80 bitrate= 123.0kbits/frame= 212 fps= 30 q=13.0 size= 87kB time=00:00:06.31 bitrate= 113.1kbits/frame= 227 fps= 30 q=13.0 size= 87kB time=00:00:06.79 bitrate= 105.1kbits/frame= 242 fps= 30 q=13.0 size= 87kB time=00:00:07.29 bitrate= 97.9kbits/frame= 257 fps= 30 q=13.0 size= 87kB time=00:00:07.80 bitrate= 91.6kbits/frame= 272 fps= 30 q=13.0 size= 87kB time=00:00:08.30 bitrate= 86.0kbits/frame= 288 fps= 30 q=13.0 size= 142kB time=00:00:08.80 bitrate= 132.4kbits/frame= 303 fps= 30 q=13.0 size= 142kB time=00:00:09.31 bitrate= 125.3kbits/frame= 318 fps= 30 q=13.0 size= 142kB time=00:00:09.80 bitrate= 119.0kbits/frame= 333 fps= 30 q=13.0 size= 142kB time=00:00:10.30 bitrate= 113.3kbits/frame= 348 fps= 30 q=13.0 size= 142kB time=00:00:10.82 bitrate= 107.8kbits/frame= 363 fps= 30 q=13.0 size= 142kB time=00:00:11.30 bitrate= 103.2kbits/frame= 378 fps= 30 q=13.0 size= 142kB time=00:00:11.80 bitrate= 98.8kbits/frame= 393 fps= 30 q=13.0 size= 142kB time=00:00:12.31 bitrate= 94.8kbits/frame= 408 fps= 30 q=13.0 size= 142kB time=00:00:12.80 bitrate= 91.1kbits/frame= 423 fps= 30 q=13.0 size= 142kB time=00:00:13.30 bitrate= 87.7kbits/frame= 438 fps= 30 q=13.0 size= 228kB time=00:00:13.80 bitrate= 135.4kbits/frame= 453 fps= 30 q=13.0 size= 228kB time=00:00:14.32 bitrate= 130.4kbits/frame= 468 fps= 30 q=13.0 size= 228kB time=00:00:14.83 bitrate= 126.0kbits/frame= 483 fps= 30 q=13.0 size= 228kB time=00:00:15.33 bitrate= 121.9kbits/frame= 499 fps= 30 q=13.0 size= 228kB time=00:00:15.84 bitrate= 118.0kbits/frame= 514 fps= 30 q=13.0 size= 228kB time=00:00:16.34 bitrate= 114.4kbits/frame= 529 fps= 30 q=13.0 size= 283kB time=00:00:16.87 bitrate= 137.6kbits/frame= 544 fps= 30 q=13.0 size= 283kB time=00:00:17.37 bitrate= 133.6kbits/frame= 559 fps= 30 q=13.0 size= 283kB time=00:00:17.88 bitrate= 129.8kbits/frame= 574 fps= 30 q=13.0 size= 283kB time=00:00:18.36 bitrate= 126.4kbits/frame= 589 fps= 30 q=13.0 size= 283kB time=00:00:18.86 bitrate= 123.0kbits/frame= 604 fps= 30 q=13.0 size= 283kB time=00:00:19.36 bitrate= 119.9kbits/frame= 619 fps= 30 q=13.0 size= 283kB time=00:00:19.89 bitrate= 116.7kbits/frame= 634 fps= 30 q=13.0 size= 283kB time=00:00:20.40 bitrate= 113.8kbits/frame= 649 fps= 30 q=13.0 size= 283kB time=00:00:20.90 bitrate= 111.1kbits/frame= 664 fps= 30 q=13.0 size= 283kB time=00:00:21.40 bitrate= 108.4kbits/frame= 679 fps= 30 q=13.0 size= 369kB time=00:00:21.91 bitrate= 138.0kbits/frame= 694 fps= 30 q=13.0 size= 369kB time=00:00:22.39 bitrate= 135.0kbits/frame= 709 fps= 30 q=13.0 size= 369kB time=00:00:22.89 bitrate= 132.1kbits/frame= 724 fps= 30 q=13.0 size= 369kB time=00:00:23.40 bitrate= 129.2kbits/frame= 740 fps= 30 q=13.0 size= 369kB time=00:00:23.90 bitrate= 126.5kbits/frame= 755 fps= 30 q=14.0 size= 369kB time=00:00:24.40 bitrate= 123.9kbits/frame= 770 fps= 30 q=13.0 size= 369kB time=00:00:24.91 bitrate= 121.4kbits/frame= 785 fps= 30 q=13.0 size= 425kB time=00:00:25.40 bitrate= 137.0kbits/frame= 800 fps= 30 q=14.0 size= 425kB time=00:00:25.90 bitrate= 134.4kbits/frame= 815 fps= 30 q=14.0 size= 425kB time=00:00:26.42 bitrate= 131.7kbits/frame= 830 fps= 30 q=13.0 size= 425kB time=00:00:26.92 bitrate= 129.3kbits/frame= 845 fps= 30 q=13.0 size= 425kB time=00:00:27.43 bitrate= 126.9kbits/frame= 860 fps= 30 q=13.0 size= 425kB time=00:00:27.93 bitrate= 124.6kbits/frame= 875 fps= 30 q=13.0 size= 425kB time=00:00:28.44 bitrate= 122.4kbits/frame= 891 fps= 30 q=13.0 size= 425kB time=00:00:28.94 bitrate= 120.3kbits/frame= 906 fps= 30 q=13.0 size= 425kB time=00:00:29.43 bitrate= 118.3kbits/frame= 921 fps= 30 q=13.0 size= 425kB time=00:00:29.93 bitrate= 116.3kbits/frame= 936 fps= 30 q=13.0 size= 520kB time=00:00:30.43 bitrate= 140.1kbits/frame= 951 fps= 30 q=13.0 size= 520kB time=00:00:30.96 bitrate= 137.7kbits/frame= 966 fps= 30 q=13.0 size= 520kB time=00:00:31.46 bitrate= 135.5kbits/frame= 981 fps= 30 q=13.0 size= 520kB time=00:00:31.96 bitrate= 133.3kbits/frame= 996 fps= 30 q=13.0 size= 520kB time=00:00:32.47 bitrate= 131.3kbits/frame= 1011 fps= 30 q=13.0 size= 520kB time=00:00:32.97 bitrate= 129.3kbits/frame= 1026 fps= 30 q=13.0 size= 575kB time=00:00:33.48 bitrate= 140.7kbits/frame= 1042 fps= 30 q=13.0 size= 575kB time=00:00:33.96 bitrate= 138.7kbits/frame= 1057 fps= 30 q=13.0 size= 575kB time=00:00:34.46 bitrate= 136.7kbits/frame= 1072 fps= 30 q=13.0 size= 575kB time=00:00:34.96 bitrate= 134.7kbits/frame= 1087 fps= 30 q=13.0 size= 575kB time=00:00:35.47 bitrate= 132.8kbits/frame= 1102 fps= 30 q=13.0 size= 575kB time=00:00:35.97 bitrate= 131.0kbits/frame= 1117 fps= 30 q=13.0 size= 575kB time=00:00:36.50 bitrate= 129.1kbits/frame= 1132 fps= 30 q=13.0 size= 575kB time=00:00:37.00 bitrate= 127.3kbits/frame= 1147 fps= 30 q=13.0 size= 575kB time=00:00:37.51 bitrate= 125.6kbits/frame= 1162 fps= 30 q=13.0 size= 575kB time=00:00:37.99 bitrate= 124.0kbits/frame= 1177 fps= 30 q=13.0 size= 661kB time=00:00:38.49 bitrate= 140.7kbits/frame= 1192 fps= 30 q=13.0 size= 661kB time=00:00:39.00 bitrate= 138.8kbits/frame= 1207 fps= 30 q=13.0 size= 661kB time=00:00:39.50 bitrate= 137.1kbits/frame= 1222 fps= 30 q=13.0 size= 661kB time=00:00:40.00 bitrate= 135.3kbits/frame= 1237 fps= 30 q=13.0 size= 661kB time=00:00:40.51 bitrate= 133.7kbits/frame= 1253 fps= 30 q=10.0 size= 661kB time=00:00:41.00 bitrate= 132.1kbits/frame= 1268 fps= 30 q=13.0 size= 661kB time=00:00:41.54 bitrate= 130.3kbits/frame= 1283 fps= 30 q=13.0 size= 716kB time=00:00:42.02 bitrate= 139.5kbits/frame= 1298 fps= 30 q=13.0 size= 716kB time=00:00:42.52 bitrate= 137.9kbits/frame= 1313 fps= 30 q=13.0 size= 716kB time=00:00:43.03 bitrate= 136.3kbits/frame= 1328 fps= 30 q=13.0 size= 716kB time=00:00:43.53 bitrate= 134.7kbits/frame= 1343 fps= 30 q=13.0 size= 716kB time=00:00:44.04 bitrate= 133.1kbits/frame= 1358 fps= 30 q=13.0 size= 716kB time=00:00:44.54 bitrate= 131.6kbits/frame= 1374 fps= 30 q=13.0 size= 716kB time=00:00:45.03 bitrate= 130.2kbits/frame= 1389 fps= 30 q=13.0 size= 716kB time=00:00:45.53 bitrate= 128.8kbits/frame= 1404 fps= 30 q=13.0 size= 716kB time=00:00:46.03 bitrate= 127.4kbits/frame= 1419 fps= 30 q=13.0 size= 716kB time=00:00:46.53 bitrate= 126.0kbits/frame= 1434 fps= 30 q=13.0 size= 802kB time=00:00:47.06 bitrate= 139.5kbits/frame= 1449 fps= 30 q=13.0 size= 802kB time=00:00:47.56 bitrate= 138.0kbits/frame= 1465 fps= 30 q=13.0 size= 802kB time=00:00:48.07 bitrate= 136.6kbits/frame= 1480 fps= 30 q=13.0 size= 802kB time=00:00:48.57 bitrate= 135.2kbits/frame= 1495 fps= 30 q=13.0 size= 802kB time=00:00:49.08 bitrate= 133.8kbits/frame= 1495 fps= 30 q=-1.0 Lsize= 844kB time=00:00:49.86 bitrate= 138.6kbits/s speed= 1x
video:50kB audio:769kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.945463%
Input file #0 (hw:0,0):
Input stream #0:0 (audio): 147602 packets read (9446400 bytes); 147602 frames decoded (2361600 samples);
Total: 147602 packets (9446400 bytes) demuxed
Input file #1 (:0.0+115,545):
Input stream #1:0 (video): 1495 packets read (5693133420 bytes); 1495 frames decoded;
Total: 1495 packets (5693133420 bytes) demuxed
Output file #0 (/home/alain/SCREENSHOT/[Le 19-10-19 à 19:49:49]_SCREENSHOT.mkv):
Output stream #0:0 (video): 1495 frames encoded; 1495 packets muxed (51469 bytes);
Output stream #0:1 (audio): 2050 frames encoded (2361600 samples); 2051 packets muxed (787584 bytes);
Total: 3546 packets (839053 bytes) muxed
[AVIOContext @ 0x55d79aaa1100] Statistics: 14 seeks, 21 writeouts
[libx264 @ 0x55d79aa9ef80] frame I:6 Avg QP:11.67 size: 3729
[libx264 @ 0x55d79aa9ef80] frame P:1489 Avg QP:13.03 size: 19
[libx264 @ 0x55d79aa9ef80] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x55d79aa9ef80] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x55d79aa9ef80] coded y,u,v intra: 0.2% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x55d79aa9ef80] i16 v,h,dc,p: 98% 0% 2% 0%
[libx264 @ 0x55d79aa9ef80] kb/s:8.16
Exiting normally, received signal 2.
total 844K
-rw-r--r-- 1 alain lpadmin 844K oct. 19 19:50 '[Le 19-10-19 à 19:49:49]_SCREENSHOT.mkv'
arf ! le dossier "SCREENSHOT" et le film en mkv sont bien créés mais je n'ai ni image ni son .
un écran noir , c'est tout .
la souris est bien capturée et visible mais l'écran capturé est noir .
pas d'image ni de son .
Dernière modification par Debian Alain (19-10-2019 18:58:24)