
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (85)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)
Sur d’autres sites (10312)
-
why it is taking a lot of time to convert image to video in ffmpeg ?
20 avril 2021, par al pacinoBelow is a snippet of code i am using to convert images into videos but It is taking around 3 minutes to convert image to 5 second video.
If I run the command on Image present on a directory then it converts images to videos very swiftly. but i need to use try except to catch ConnectionError..
can anyone tell what I am doing wrong ?


video = []
video_list = []
for video in videos:
 try:
 r = requests.get(video, stream=True)
 print(r.status_code)
 if not r.status_code == 200:
 message = "broken url process could not be completed"
 return message
 if r.status_code == 200:
 if video.endswith(".jpg") or video.endswith(".png") or video.endswith(".jpeg"):
 filename = str(uuid.uuid4())
 url2 = download_path + filename +".webm"
 #cmd = "ffmpeg -loop 1 -i '{}' -c:v libx264 -t 5 -pix_fmt yuv420p -vf scale={}:{} ".format(video, width, height)+ url2
 cmd = "ffmpeg -loop 1 -i '{}' -t 5 -vf scale={}:{} ".format(video, width, height) + url2
 os.system(cmd)
 path_remover(video)
 video_list.append(url2)
 else:
 video_list.append(video)
 except ConnectionError:
 for i in video_list:
 path_remover(i)
 message = "broken url process could not be completed"
 return message



full log after running the command with online url :


ffmpeg -loop 1 -i 'https://cdn.pixabay.com/photo/2020/10/23/12/03/arch-5678549__340.jpg' -t 5 -vf scale=1280:780 output.mp4 


ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, image2, from 'https://cdn.pixabay.com/photo/2021/04/17/18/26/woman-6186493__340.jpg':
 Duration: 00:00:00.04, start: 0.000000, bitrate: 5538 kb/s
 Stream #0:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 511x340 [SAR 1:1 DAR 511:340], 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
 Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[swscaler @ 0x5580ac8e7c40] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x5580ac186b40] using SAR=1034/1129
[libx264 @ 0x5580ac186b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x5580ac186b40] profile High, level 3.2
[libx264 @ 0x5580ac186b40] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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 'output.mp4':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1280x780 [SAR 19929:21760 DAR 511:340], q=-1--1, 25 fps, 12800 tbn, 25 tbc
 Metadata:
 encoder : Lavc58.91.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 100 fps=0.0 q=28.0 size= 0kB time=00:00:01.64 bitrate= 0.2kbits/frame= 125 fps=0.0 q=-1.0 Lsize= 90kB time=00:00:04.88 bitrate= 151.7kbits/s speed=6.79x 
video:88kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.618829%
[libx264 @ 0x5580ac186b40] frame I:1 Avg QP:16.31 size: 75247
[libx264 @ 0x5580ac186b40] frame P:31 Avg QP:16.13 size: 314
[libx264 @ 0x5580ac186b40] frame B:93 Avg QP:31.33 size: 49
[libx264 @ 0x5580ac186b40] consecutive B-frames: 0.8% 0.0% 0.0% 99.2%
[libx264 @ 0x5580ac186b40] mb I I16..4: 10.6% 77.6% 11.8%
[libx264 @ 0x5580ac186b40] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 2.5% 0.2% 0.2% 0.0% 0.0% skip:97.2%
[libx264 @ 0x5580ac186b40] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.4% 0.0% 0.0% direct: 0.0% skip:99.6% L0: 8.3% L1:91.7% BI: 0.0%
[libx264 @ 0x5580ac186b40] 8x8 transform intra:77.5% inter:98.7%
[libx264 @ 0x5580ac186b40] coded y,uvDC,uvAC intra: 88.4% 95.3% 79.5% inter: 0.1% 0.5% 0.0%
[libx264 @ 0x5580ac186b40] i16 v,h,dc,p: 2% 3% 0% 95%
[libx264 @ 0x5580ac186b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 7% 6% 11% 10% 10% 8% 8%
[libx264 @ 0x5580ac186b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 18% 7% 5% 16% 11% 9% 6% 4%
[libx264 @ 0x5580ac186b40] i8c dc,h,v,p: 33% 21% 22% 24%
[libx264 @ 0x5580ac186b40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5580ac186b40] ref P L0: 85.7% 0.1% 13.2% 1.0%
[libx264 @ 0x5580ac186b40] ref B L0: 53.6% 46.4%
[libx264 @ 0x5580ac186b40] ref B L1: 92.8% 7.2%
[libx264 @ 0x5580ac186b40] kb/s:143.20
aman@aman:~/Desktop/a$ ffmpeg -loop 1 -i 'https://cdn.pixabay.com/photo/2021/04/17/18/26/woman-6186493__340.jpg' -t 5 -vf scale=1280:780 output.webm
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, image2, from 'https://cdn.pixabay.com/photo/2021/04/17/18/26/woman-6186493__340.jpg':
 Duration: 00:00:00.04, start: 0.000000, bitrate: 5538 kb/s
 Stream #0:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 511x340 [SAR 1:1 DAR 511:340], 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'output.webm' already exists. Overwrite? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (mjpeg (native) -> vp9 (libvpx-vp9))
Press [q] to stop, [?] for help
[swscaler @ 0x5630553879c0] deprecated pixel format used, make sure you did set range correctly
[libvpx-vp9 @ 0x563054cd2500] v1.7.0
[libvpx-vp9 @ 0x563054cd2500] Neither bitrate nor constrained quality specified, using default CRF of 32
Output #0, webm, to 'output.webm':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 1280x780 [SAR 19929:21760 DAR 511:340], q=-1--1, 25 fps, 1k tbn, 25 tbc
 Metadata:
 encoder : Lavc58.91.100 libvpx-vp9
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 57 fps=0.0 q=0.0 size= 1kB time=00:00:01.28 bitrate= 3.3kbits/sframe= 103 fps=102 q=0.0 size= 1kB time=00:00:03.12 bitrate= 1.3kbits/sframe= 125 fps= 85 q=0.0 Lsize= 51kB time=00:00:04.96 bitrate= 84.0kbits/s speed=3.37x 
video:50kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.571023%



-
ffmpeg streaming fails to stream over internet to twitch.tv
15 avril 2021, par josh joyerI did already streaming to twitch.tv with command :


ffmpeg -stream_loop -1 -i 9stream.wav 
-f dshow -i audio="mic"
 -f dshow -i audio="realTek" 
-filter_complex "[0:a]volume=2[a0];[1:a]volume=1.5[a1];[2:a]volume=1.5[a2];[a0][a1][a2]amix=inputs=3"
 -f dshow -i video="USB2.0 PC CAMERA" 
-ac 1 -ar 11025 -acodec libmp3lame -c:v libx264 -b:v 100k -f flv -s 80x120 
rtmp://live.twitch.tv/app/live_streamingKey



It was most advanced command that I used to stream online.


(I do not know how to make enter in here so I put double enter)


9stream.wav was played in loop as background music


microphone was added


stereoMix named realTek was the playback of system sounds


volume was adjusted and all sounds mixed into one stream


camera view was added


THEN network flow was reduced by sending only one channel with low frequency of 11025 with lowest


possible data size made by mp3 encoder and libx264 was used to encode video in png files.


It was working fine SO I decided to make final version


(this one worked with all sounds(background music,microphone,system sounds) and camera)


Final version was about adding screen view and logo.


I succeded writing everything to disc with command :


ffmpeg 
-stream_loop -1 -i 9stream.wav 
-f dshow -i audio="mic" 
-f dshow -i audio="stereoMixRealtek" 
-i camera.png 
-f gdigrab -framerate 1 -i desktop 
-f dshow -framerate 15 -i video="USB2.0 PC CAMERA" 
-filter_complex "[0:a]volume=2[a0];[1:a]volume=1.5[a1];[2:a]volume=1.5[a2];
[a0][a1][a2]amix=inputs=3[aMix];
[4:v]scale=200:-1[v4];[5:v]scale=50:-1[v5];
[v4][v5]overlay=(W-w)-5:(H-h)-5[vScreenCam];
[vScreenCam][3:v]overlay=5:5[v]" 
-map "[v]" -map "[aMix]" -ac 1 -ar 11025 -c:a libmp3lame -r 1 -c:v libx264 output.mkv



That was


background music


microphone


system sounds


logo picture


screen view


camera


adjusting sound volume


mixing sounds


reducing size of screen view and camera view


overlaying reduced camera view over reduced screen view


adding logo


choosing final view, final mixed sounds,


reducing data size to one channel, reducing sample frequency,


choosing mp3 codec to reduce final data size,


choosing minimal framerate of one per second to reduce data size


choosing libx264 codec for video.


THEN I tried to use final command for network streaming with slight modification :


ffmpeg 
-stream_loop -1 -i 9stream.wav 
-f dshow -i audio="mic" 
-f dshow -i audio="stereo mix" 
-i camera.png 
-f gdigrab -framerate 1 -i desktop 
-f dshow -framerate 15 -i video="USB2.0 PC CAMERA" 
-filter_complex "[0:a]volume=2[a0];[1:a]volume=1.5[a1];[2:a]volume=1.5[a2];
[a0][a1][a2]amix=inputs=3[aMix];
[4:v]scale=200:-1[v4];[5:v]scale=50:-1[v5];
[v4][v5]overlay=(W-w)-5:(H-h)-5[vScreenCam];[vScreenCam][3:v]overlay=5:5[v]" 
-map "[v]" -map "[aMix]" 
-ac 1 -ar 11025 -c:a libmp3lame -r 1 -c:v libx264 -b:v 100k -b:a 10k -f flv rtmp://live.twitch.tv/app/live_streamingKey



I added parameter
-b:v 100k to reduce video flow
-b:a 10k to reduce sound flow
-f flv to be good for twitch.tv otherwise it would not accept stream


BUT ffmpeg is always stopping sending data with message like this :


testosteron_@testosteron MINGW64 ~/Desktop/2021b/magisterka/ScreenRecorderXi/ScreenRecorderXi/bin
$ cmd
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. Wszelkie prawa zastrze▒one.

C:\Users\testosteron_\Desktop\2021b\magisterka\ScreenRecorderXi\ScreenRecorderXi\bin>ffmpeg -stream_loop -1 -i 9stream.wav -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{5B4DB0B5-B645-4AFA-930D-4710AAF753DB}" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{ADECEC1D-C3CC-4BAE-8516-752251B8B63F}" -i camera.png -f gdigrab -framerate 1 -i desktop -f dshow -framerate 15 -i video="USB2.0 PC CAMERA" -filter_complex "[0:a]volume=2[a0];[1:a]volume=1.5[a1];[2:a]volume=1.5[a2];[a0][a1][a2]amix=inputs=3[aMix];[4:v]scale=200:-1[v4];[5:v]scale=50:-1[v5];[v4][v5]overlay=(W-w)-5:(H-h)-5[vScreenCam];[vScreenCam][3:v]overlay=5:5[v]" -map "[v]" -map "[aMix]" -ac 1 -ar 11025 -c:a libmp3lame -r 1 -c:v libx264 -b:v 100k -b:a 10k -f flv rtmp://live.twitch.tv/app/live_674912043_oAwGnACTndHyeZnlA6scLegm8gaxwf
ffmpeg -stream_loop -1 -i 9stream.wav -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{5B4DB0B5-B645-4AFA-930D-4710AAF753DB}" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{ADECEC1D-C3CC-4BAE-8516-752251B8B63F}" -i camera.png -f gdigrab -framerate 1 -i desktop -f dshow -framerate 15 -i video="USB2.0 PC CAMERA" -filter_complex "[0:a]volume=2[a0];[1:a]volume=1.5[a1];[2:a]volume=1.5[a2];[a0][a1][a2]amix=inputs=3[aMix];[4:v]scale=200:-1[v4];[5:v]scale=50:-1[v5];[v4][v5]overlay=(W-w)-5:(H-h)-5[vScreenCam];[vScreenCam][3:v]overlay=5:5[v]" -map "[v]" -map "[aMix]" -ac 1 -ar 11025 -c:a libmp3lame -r 1 -c:v libx264 -b:v 100k -b:a 10k -f flv rtmp://live.twitch.tv/app/live_674912043_oAwGnACTndHyeZnlA6scLegm8gaxwf
ffmpeg version git-2020-08-02-b48397e Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 10.2.1 (GCC) 20200726
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 57.100 / 56. 57.100
 libavcodec 58. 99.100 / 58. 99.100
 libavformat 58. 49.100 / 58. 49.100
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from '9stream.wav':
 Metadata:
 encoder : Lavf58.49.100
 Duration: 00:00:13.48, bitrate: 1411 kb/s
 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, dshow, from 'audio=@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{5B4DB0B5-B645-4AFA-930D-4710AAF753DB}':
 Duration: N/A, start: 209609.948000, bitrate: 1411 kb/s
 Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Guessed Channel Layout for Input Stream #2.0 : stereo
Input #2, dshow, from 'audio=@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{ADECEC1D-C3CC-4BAE-8516-752251B8B63F}':
 Duration: N/A, start: 209610.502000, bitrate: 1411 kb/s
 Stream #2:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Input #3, png_pipe, from 'camera.png':
 Duration: N/A, bitrate: N/A
 Stream #3:0: Video: png, rgba(pc), 32x32 [SAR 3779:3779 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
[gdigrab @ 0000009a3f019700] Capturing whole desktop as 1280x1024x32 at (0,0)
[gdigrab @ 0000009a3f019700] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #4, gdigrab, from 'desktop':
 Duration: N/A, start: 1618506176.140738, bitrate: 41943 kb/s
 Stream #4:0: Video: bmp, bgra, 1280x1024, 41943 kb/s, 1 fps, 1000k tbr, 1000k tbn, 1000k tbc
Input #5, dshow, from 'video=USB2.0 PC CAMERA':
 Duration: N/A, start: 209613.583000, bitrate: N/A
 Stream #5:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 15 fps, 15 tbr, 10000k tbn, 10000k tbc
[dshow @ 0000009a3f034900] real-time buffer [USB2.0 PC CAMERA] [video input] too full or near too full (101% of size: 3041280 [rtbufsize parameter])! frame dropped!
 Last message repeated 9 times
Stream mapping:
 Stream #0:0 (pcm_s16le) -> volume
 Stream #1:0 (pcm_s16le) -> volume
 Stream #2:0 (pcm_s16le) -> volume
 Stream #3:0 (png) -> overlay:overlay
 Stream #4:0 (bmp) -> scale
 Stream #5:0 (rawvideo) -> scale
 overlay -> Stream #0:0 (libx264)
 amix -> Stream #0:1 (libmp3lame)
Press [q] to stop, [?] for help
[dshow @ 0000009a3efd5b80] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[dshow @ 0000009a406fb280] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[libx264 @ 0000009a4082ddc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0000009a4082ddc0] profile High, level 1.1, 4:2:0, 8-bit
[libx264 @ 0000009a4082ddc0] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=5 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=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=100 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://live.twitch.tv/app/live_streamingKey':
 Metadata:
 encoder : Lavf58.49.100
 Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 200x160, q=-1--1, 100 kb/s, 1 fps, 1k tbn, 1 tbc (default)
 Metadata:
 encoder : Lavc58.99.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/100000 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 11025 Hz, mono, fltp, 10 kb/s (default)
 Metadata:
 encoder : Lavc58.99.100 libmp3lame
frame= 1 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 1 fps=1.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 1 fps=0.7 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 3 fps=1.5 q=0.0 size= 0kB time=00:00:03.08 bitrate= 1.0kbits/sframe= 4 fps=1.6 q=0.0 size= 0kB time=00:00:03.66 bitrate= 0.8kbits/sframe= 4 fps=1.3 q=0.0 size= 0kB time=00:00:03.66 bitrate= 0.8kbits/sframe= 5 fps=1.4 q=0.0 size= 0kB time=00:00:04.65 bitrate= 0.7kbits/sframe= 5 fps=1.2 q=0.0 size= 0kB time=00:00:04.65 bitrate= 0.7kbits/sframe= 6 fps=1.3 q=0.0 size= 0kB time=00:00:05.64 bitrate= 0.5kbits/sframe= 6 fps=1.2 q=0.0 size= 0kB time=00:00:05.64 bitrate= 0.5kbits/sframe= 7 fps=1.3 q=0.0 size= 0kB time=00:00:06.64 bitrate= 0.5kbits/sframe= 7 fps=1.2 q=0.0 size= 0kB time=00:00:06.64 bitrate= 0.5kbits/sframe= 8 fps=1.2 q=0.0 size= 0kB time=00:00:07.58 bitrate= 0.4kbits/sframe= 8 fps=1.1 q=0.0 size= 0kB time=00:00:07.58 bitrate= 0.4kbits/sframe= 9 fps=1.2 q=0.0 size= 0kB time=00:00:08.57 bitrate= 0.4kbits/sframe= 9 fps=1.1 q=0.0 size= 0kB time=00:00:08.57 bitrate= 0.4kbits/sframe= 10 fps=1.2 q=0.0 size= 0kB time=00:00:09.56 bitrate= 0.3kbits/sframe= 10 fps=1.1 q=0.0 size= 0kB time=00:00:09.56 bitrate= 0.3kbits/sframe= 11 fps=1.1 q=0.0 size= 1kB time=00:00:10.55 bitrate= 0.9kbits/sframe= 11 fps=1.1 q=0.0 size= 1kB time=00:00:10.55 bitrate= 0.9kbits/sframe= 12 fps=1.1 q=0.0 size= 2kB time=00:00:11.55 bitrate= 1.7kbits/sframe= 12 fps=1.1 q=0.0 size= 2kB time=00:00:11.55 bitrate= 1.7kbits/sframe= 13 fps=1.1 q=0.0 size= 4kB time=00:00:12.59 bitrate= 2.5kbits/sframe= 13 fps=1.1 q=0.0 size= 4kB time=00:00:12.59 bitrate= 2.5kbits/sframe= 14 fps=1.1 q=0.0 size= 5kB time=00:00:13.58 bitrate= 3.0kbits/sframe= 14 fps=1.1 q=0.0 size= 5kB time=00:00:13.58 bitrate= 3.0kbits/sframe= 15 fps=1.1 q=0.0 size= 6kB time=00:00:14.58 bitrate= 3.5kbits/sframe= 15 fps=1.1 q=0.0 size= 6kB time=00:00:14.58 bitrate= 3.5kbits/sframe= 16 fps=1.1 q=0.0 size= 8kB time=00:00:15.57 bitrate= 4.0kbits/sframe= 16 fps=1.1 q=0.0 size= 8kB time=00:00:15.57 bitrate= 4.0kbits/sframe= 17 fps=1.1 q=0.0 size= 9kB time=00:00:16.56 bitrate= 4.4kbits/sframe= 17 fps=1.1 q=0.0 size= 9kB time=00:00:16.56 bitrate= 4.4kbits/sframe= 18 fps=1.1 q=0.0 size= 10kB time=00:00:17.55 bitrate= 4.7kbits/sframe= 18 fps=1.0 q=0.0 size= 10kB time=00:00:17.55 bitrate= 4.7kbits/sframe= 19 fps=1.1 q=0.0 size= 11kB time=00:00:18.55 bitrate= 5.0kbits/sframe= 19 fps=1.0 q=0.0 size= 11kB time=00:00:18.55 bitrate= 5.0kbits/sframe= 20 fps=1.1 q=0.0 size= 13kB time=00:00:19.54 bitrate= 5.3kbits/sframe= 20 fps=1.0 q=0.0 size= 13kB time=00:00:19.54 bitrate= 5.3kbits/sframe= 21 fps=1.1 q=0.0 size= 14kB time=00:00:20.58 bitrate= 5.6kbits/sframe= 21 fps=1.0 q=0.0 size= 14kB time=00:00:20.58 bitrate= 5.6kbits/sframe= 22 fps=1.1 q=0.0 size= 15kB time=00:00:21.58 bitrate= 5.8kbits/sframe= 22 fps=1.0 q=0.0 size= 15kB time=00:00:21.58 bitrate= 5.8kbits/sframe= 23 fps=1.1 q=0.0 size= 17kB time=00:00:22.57 bitrate= 6.0kbits/sframe= 23 fps=1.0 q=0.0 size= 17kB time=00:00:22.57 bitrate= 6.0kbits/sframe= 24 fps=1.1 q=0.0 size= 18kB time=00:00:23.56 bitrate= 6.2kbits/sframe= 24 fps=1.0 q=0.0 size= 18kB time=00:00:23.56 bitrate= 6.2kbits/sframe= 25 fps=1.1 q=0.0 size= 19kB time=00:00:24.56 bitrate= 6.4kbits/sframe= 25 fps=1.0 q=0.0 size= 19kB time=00:00:24.56 bitrate= 6.4kbits/sframe= 26 fps=1.1 q=0.0 size= 20kB time=00:00:25.55 bitrate= 6.5kbits/sframe= 26 fps=1.0 q=0.0 size= 20kB time=00:00:25.55 bitrate= 6.5kbits/sframe= 27 fps=1.0 q=0.0 size= 22kB time=00:00:26.54 bitrate= 6.7kbits/sframe= 27 fps=1.0 q=0.0 size= 22kB time=00:00:26.54 bitrate= 6.7kbits/sframe= 28 fps=1.0 q=0.0 size= 23kB time=00:00:27.58 bitrate= 6.8kbits/sframe= 28 fps=1.0 q=0.0 size= 23kB time=00:00:27.58 bitrate= 6.8kbits/sframe= 29 fps=1.0 q=0.0 size= 24kB time=00:00:28.58 bitrate= 6.9kbits/sframe= 30 fps=1.1 q=0.0 size= 25kB time=00:00:29.00 bitrate= 7.0kbits/sframe= 30 fps=1.0 q=0.0 size= 25kB time=00:00:29.57 bitrate= 7.0kbits/sframe= 30 fps=1.0 q=0.0 size= 25kB time=00:00:29.57 bitrate= 7.0kbits/sframe= 31 fps=1.0 q=0.0 size= 27kB time=00:00:30.56 bitrate= 7.2kbits/sframe= 32 fps=1.1 q=0.0 size= 27kB time=00:00:30.56 bitrate= 7.2kbits/sframe= 32 fps=1.0 q=0.0 size= 28kB time=00:00:31.56 bitrate= 7.3kbits/sframe= 33 fps=1.1 q=0.0 size= 29kB time=00:00:32.55 bitrate= 7.4kbits/sframe= 33 fps=1.0 q=0.0 size= 29kB time=00:00:32.55 bitrate= 7.4kbits/sframe= 33 fps=1.0 q=0.0 size= 29kB time=00:00:32.55 bitrate= 7.4kbits/sframe= 34 fps=1.0 q=0.0 size= 31kB time=00:00:33.54 bitrate= 7.4kbits/sframe= 35 fps=1.1 q=0.0 size= 31kB time=00:00:33.96 bitrate= 7.5kbits/sframe= 35 fps=1.0 q=0.0 size= 32kB time=00:00:34.53 bitrate= 7.5kbits/sframe= 36 fps=1.0 q=0.0 size= 33kB time=00:00:35.58 bitrate= 7.6kbits/sframe= 36 fps=1.0 q=0.0 size= 33kB time=00:00:35.58 bitrate= 7.6kbits/sframe= 36 fps=1.0 q=0.0 size= 33kB time=00:00:35.58 bitrate= 7.6kbits/sframe= 37 fps=1.0 q=0.0 size= 34kB time=00:00:36.57 bitrate= 7.7kbits/sframe= 38 fps=1.0 q=0.0 size= 36kB time=00:00:37.56 bitrate= 7.8kbits/sframe= 38 fps=1.0 q=0.0 size= 36kB time=00:00:37.56 bitrate= 7.8kbits/sframe= 39 fps=1.0 q=0.0 size= 37kB time=00:00:38.56 bitrate= 7.8kbits/sframe= 39 fps=1.0 q=0.0 size= 37kB time=00:00:38.56 bitrate= 7.8kbits/sframe= 40 fps=1.0 q=0.0 size= 38kB time=00:00:39.55 bitrate= 7.9kbits/sframe= 40 fps=1.0 q=0.0 size= 38kB time=00:00:39.55 bitrate= 7.9kbits/sframe= 41 fps=1.0 q=0.0 size= 39kB time=00:00:40.54 bitrate= 8.0kbits/sframe= 41 fps=1.0 q=0.0 size= 39kB time=00:00:40.54 bitrate= 8.0kbits/sframe= 42 fps=1.0 q=0.0 size= 41kB time=00:00:41.59 bitrate= 8.0kbits/sframe= 42 fps=1.0 q=0.0 size= 41kB time=00:00:41.59 bitrate= 8.0kbits/sframe= 43 fps=1.0 q=0.0 size= 42kB time=00:00:42.58 bitrate= 8.1kbits/sframe= 43 fps=1.0 q=0.0 size= 42kB time=00:00:42.58 bitrate= 8.1kbits/sframe= 44 fps=1.0 q=0.0 size= 43kB time=00:00:43.57 bitrate= 8.1kbits/sframe= 44 fps=1.0 q=0.0 size= 43kB time=00:00:43.57 bitrate= 8.1kbits/sframe= 45 fps=1.0 q=0.0 size= 45kB time=00:00:44.56 bitrate= 8.2kbits/sframe= 45 fps=1.0 q=0.0 size= 45kB time=00:00:44.56 bitrate= 8.2kbits/sframe= 46 fps=1.0 q=0.0 size= 46kB time=00:00:45.56 bitrate= 8.2kbits/sframe= 46 fps=1.0 q=0.0 size= 46kB time=00:00:45.56 bitrate= 8.2kbits/sframe= 47 fps=1.0 q=0.0 size= 47kB time=00:00:46.55 bitrate= 8.3kbits/sframe= 47 fps=1.0 q=0.0 size= 47kB time=00:00:46.55 bitrate= 8.3kbits/sframe= 48 fps=1.0 q=0.0 size= 48kB time=00:00:47.54 bitrate= 8.3kbits/sframe= 48 fps=1.0 q=0.0 size= 48kB time=00:00:47.54 bitrate= 8.3kbits/sframe= 49 fps=1.0 q=0.0 size= 50kB time=00:00:48.59 bitrate= 8.4kbits/sframe= 49 fps=1.0 q=0.0 size= 50kB time=00:00:48.59 bitrate= 8.4kbits/s[flv @ 0000009a40865940] Packets poorly interleaved, failed to avoid negative timestamp -3900 in stream 0.
Try -max_interleave_delta 0 as a possible workaround.
[flv @ 0000009a40865940] Packets are not in the proper order with respect to DTS
av_interleaved_write_frame(): Invalid argument
[flv @ 0000009a40865940] Failed to update header with correct duration.
[flv @ 0000009a40865940] Failed to update header with correct filesize.
frame= 50 fps=1.0 q=6.0 Lsize= 63kB time=00:00:49.11 bitrate= 10.5kbits/s speed= 1x
video:27kB audio:48kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0000009a4082ddc0] frame I:1 Avg QP: 0.56 size: 27197
[libx264 @ 0000009a4082ddc0] frame P:15 Avg QP: 0.76 size: 2567
[libx264 @ 0000009a4082ddc0] frame B:34 Avg QP: 3.98 size: 1481
[libx264 @ 0000009a4082ddc0] consecutive B-frames: 8.0% 0.0% 12.0% 80.0%
[libx264 @ 0000009a4082ddc0] mb I I16..4: 13.1% 13.8% 73.1%
[libx264 @ 0000009a4082ddc0] mb P I16..4: 0.0% 0.1% 0.8% P16..4: 17.5% 5.9% 4.2% 0.0% 0.0% skip:71.5%
[libx264 @ 0000009a4082ddc0] mb B I16..4: 0.0% 0.0% 0.3% B16..8: 12.1% 4.2% 2.4% direct: 6.3% skip:74.7% L0:42.9% L1:41.8% BI:15.4%
[libx264 @ 0000009a4082ddc0] final ratefactor: -7.50
[libx264 @ 0000009a4082ddc0] 8x8 transform intra:12.3% inter:14.5%
[libx264 @ 0000009a4082ddc0] coded y,uvDC,uvAC intra: 95.2% 96.9% 96.9% inter: 16.0% 14.9% 14.8%
[libx264 @ 0000009a4082ddc0] i16 v,h,dc,p: 26% 32% 32% 11%
[libx264 @ 0000009a4082ddc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 40% 14% 8% 1% 2% 1% 1% 25%
[libx264 @ 0000009a4082ddc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 45% 7% 4% 5% 3% 7% 3% 9%
[libx264 @ 0000009a4082ddc0] i8c dc,h,v,p: 36% 40% 18% 6%
[libx264 @ 0000009a4082ddc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000009a4082ddc0] ref P L0: 65.2% 2.2% 19.9% 12.7%
[libx264 @ 0000009a4082ddc0] ref B L0: 71.8% 23.0% 5.2%
[libx264 @ 0000009a4082ddc0] ref B L1: 88.2% 11.8%
[libx264 @ 0000009a4082ddc0] kb/s:17.86
Conversion failed!



Main message from above was :


[flv @ 0000009a40865940] Packets poorly interleaved, failed to avoid negative timestamp -3900 in stream 0.



It was problem to stream 0 so it was mixed sounds stream BUT earlier it was fine with mixing


and sending mix over internet BUT after I added screen view and scaling it failed to work.


What is problem ?


How to fix it ?


Since I was able to do this to stream to disc I would assume that


computer processing power is enough. Since I was able to stream over internet mixed sounds I


would assume that it is not problem here. So the problem must be with sending


screen view. BUT I put framerate 1 per second and downsized its resolution. I compressed


sounds as much as I could. I added -b:a and -b:v commands to reduce network flow.


WHAT ELSE COULD I DO TO FIX IT ?


-
Screen capture (video screencast) with FFMPEG with very low FPS
20 septembre 2023, par jesusdaI recently changed PCs, I went from having an Intel Core i5 4460 with integrated graphics card to a Xeon E5 2678 v3 with AMD RADEON RX 550 graphics.


On paper, the new PC is on the order of 3 to 7 times more powerful than the old one and I can attest that this is the case in daily use, video and image editing etc. The advantage of having so many cores and threads available is palpable. In terms of games I haven't tried it because I'm not really a gamer and the few games I use are the typical free ones that come with Debian and some emulators that, honestly, already worked fine with the old PC.


However there is one task that brings me head over heels for its terrible performance : video screen capture.


With my old PC I was able to capture at over 60 fps at full screen while doing any task I needed to record.


Even with my lenovo thinkpad x230 I am able to capture screen at over 80fps with total fluency.


The command I have always used is :


ffmpeg -f x11grab -draw_mouse 1 -framerate 60 -video_size 1920x1200 -i :0.0+1680,0 -qscale 0 -pix_fmt yuv420p -c:v libx264 -preset medium -qp 0 -q:v 1 -s 1920x1200 -f matroska -threads 4 video.mkv



notes :


-video_size 1920x1200 -i :0.0+1680,0 y -s 1920x1200
are the dimensions and position of the region to capture (my right monitor).

Notice that I even used
-preset medium
and software encoding, so I got very good quality even with that parameter setting and without ever going below 60 fps.

What happens to me now ?


The equipment is unable to capture more than 20 fps which makes any video invalid, with frame drops and not even reach 30fps, which would be the minimum required.


In addition, it is quite noticeable the decrease in responsiveness of the PC as soon as I launch the command. That is, all that fluidity and smoothness that is appreciated when working normally, disappears and even moving a window from one side to another is rough and stumbling.


I have tried with different parameters of ffmpeg, to capture raw, without encoding.


I have tried saving the resulting video directly to RAM disk in order to avoid the possible bottleneck of writing to disk. It doesn't affect it at all.


So, does anyone have any suggestions as to at least where I can dig further to find a solution to the problem ?


Additional data, in case it helps :


$ → inxi
CPU: 12-Core Intel Xeon E5-2678 v3 (-MT MCP-)
speed/min/max: 1201/1200/3300 MHz Kernel: 5.10.0-0.bpo.4-amd64 x86_64
Up: 1d 6h 55m Mem: 6427.6/32012.4 MiB (20.1%)
Storage: 13.76 TiB (55.9% used) Procs: 433 Shell: bash 5.0.18 inxi: 3.0.32


$ → ffmpeg -v
ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 8 (Debian 8.3.0-6)
 configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-libopencv --disable-outdev=sdl2 --disable-podpages --disable-sndio --disable-stripping --enable-libaom --enable-avfilter --enable-avresample --enable-gcrypt --disable-gnutls --enable-openssl --enable-gpl --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libzimg --enable-libxvid --enable-libzvbi --enable-nonfree --enable-opencl --enable-opengl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --enable-libwebp --incdir=/usr/include/x86_64-linux-gnu --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened --enable-frei0r --enable-chromaprint --enable-libx264 --enable-libiec61883 --enable-libdc1394 --enable-vaapi --enable-libmfx --enable-libvmaf --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
 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



I have the free amdgpu drivers (not amdgpu-pro), but I activated OpenCL just in case.


I followed this tutorial.


$ → glxinfo | grep OpenGL
OpenGL vendor string: AMD
OpenGL renderer string: Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:





$ → clinfo
Number of platforms 1
 Platform Name Clover
 Platform Vendor Mesa
 Platform Version OpenCL 1.1 Mesa 20.3.4
 Platform Profile FULL_PROFILE
 Platform Extensions cl_khr_icd
 Platform Extensions function suffix MESA

 Platform Name Clover
Number of devices 1
 Device Name Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)
 Device Vendor AMD
 Device Vendor ID 0x1002
 Device Version OpenCL 1.1 Mesa 20.3.4
 Driver Version 20.3.4
 Device OpenCL C Version OpenCL C 1.1
 Device Type GPU
 Device Profile FULL_PROFILE
 Device Available Yes
 Compiler Available Yes
 Max compute units 8
 Max clock frequency 1183MHz
 Max work item dimensions 3
 Max work item sizes 256x256x256
 Max work group size 256
 Preferred work group size multiple 64
 Preferred / native vector sizes
 char 16 / 16
 short 8 / 8
 int 4 / 4
 long 2 / 2
 half 0 / 0 (n/a)
 float 4 / 4
 double 2 / 2 (cl_khr_fp64)
 Half-precision Floating-point support (n/a)
 Single-precision Floating-point support (core)
 Denormals No
 Infinity and NANs Yes
 Round to nearest Yes
 Round to zero No
 Round to infinity No
 IEEE754-2008 fused multiply-add No
 Support is emulated in software No
 Correctly-rounded divide and sqrt operations No
 Double-precision Floating-point support (cl_khr_fp64)
 Denormals Yes
 Infinity and NANs Yes
 Round to nearest Yes
 Round to zero Yes
 Round to infinity Yes
 IEEE754-2008 fused multiply-add Yes
 Support is emulated in software No
 Address bits 64, Little-Endian
 Global memory size 3221225472 (3GiB)
 Error Correction support No
 Max memory allocation 1717986918 (1.6GiB)
 Unified memory for Host and Device No
 Minimum alignment for any data type 128 bytes
 Alignment of base address 32768 bits (4096 bytes)
 Global Memory cache type None
 Image support No
 Local memory type Local
 Local memory size 32768 (32KiB)
 Max number of constant args 16
 Max constant buffer size 67108864 (64MiB)
 Max size of kernel argument 1024
 Queue properties
 Out-of-order execution No
 Profiling Yes
 Profiling timer resolution 0ns
 Execution capabilities
 Run OpenCL kernels Yes
 Run native kernels No
 Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64

NULL platform behavior
 clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover
 clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [MESA]
 clCreateContext(NULL, ...) [default] Success [MESA]
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
 Platform Name Clover
 Device Name Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
 Platform Name Clover
 Device Name Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
 Platform Name Clover
 Device Name Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)

ICD loader properties
 ICD loader Name OpenCL ICD Loader
 ICD loader Vendor OCL Icd free software
 ICD loader Version 2.2.12
 ICD loader Profile OpenCL 2.2



This would not be a tearing problem, as no tearing is visible when playing videos and the TearFree driver policy is enabled.


$ → xrandr --verbose | grep TearFree
 TearFree: on
 TearFree: on
 TearFree: on