here's a screenshot generator i made for the media convertor plugin:
script https://pastebin.com/FKAer7LG
put it in
"/plugins/mediaconvertor/convertor/"
change the line 158:
$stmt = $db->query("SELECT * FROM file WHERE id=" . VIDEO_SCREENSHOT_ID);
to something like:
$stmt =...