<div dir="ltr">Hi all,<div><br></div><div>Since i written the FFMPEG video metadata parser in 6.0.0 branch, i'm trying to register a huge video collection from my host computer.</div><div><br></div><div>Here, more than 2500 MKV files are present, plus a lots of MP4, MOV, and another media taken with cellular and camera.</div><div><br></div><div>The registration have been very fast. 2500 file parsed in 2 minutes and ready to use. System has SSD, Sqlite, 8 cores, and 32Gb of RAM. No crash all work fine... excepted... the video thumbnails.</div><div><br></div><div>I facing random dysfunctions with video files. Sometime thumbs are there, sometime not. Using F5 always give a different results until i try to insist and i can see the DB locked and revival...</div><div><br></div><div>The video thumbnailer is based on QtAV frame extractor. My QtAV is last stable 1.12.0. I suspect a bug somewhere in QtAV, as i can see thumbnailer code including a lots of mutex to prevent concurrency.</div><div><br></div><div>This is typically abnormal. FFMPEG API is re-entrant as i checked with the multi-threaded metadata parser <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">unit test</span>.</div><div><br></div><div>As we depend now directly of FFMPEG API, I propose to rewrite the video thumbnailer with libav C function.</div><div><br></div><div>We have code ready to use with ffmpeg API here :</div><div><br></div><div><a href="https://cgit.kde.org/ffmpegthumbs.git/tree/">https://cgit.kde.org/ffmpegthumbs.git/tree/</a><br></div><div><br></div><div>Your viewpoint ?</div><div><br></div><div>GillesĀ </div><div><br></div><div><br></div></div>