Screenshot for Media Convertor

chrisemcquilkin4909

New Member
YetiShare User
Mar 24, 2015
3
0
1
here's a screenshot generator i made for the media convertor plugin:

script https://pastebin.com/FKAer7LG

put it in

Code:
"/plugins/mediaconvertor/convertor/"
change the line 158:
Code:
$stmt = $db->query("SELECT * FROM file WHERE id=" . VIDEO_SCREENSHOT_ID);
to something like:
Code:
$stmt = $db->query("SELECT * FROM file WHERE id=1000");
or to
Code:
$stmt = $db->query("SELECT * FROM file");
for all files and run that in the terminal for php. I would share the full script with yall but i dont have the latest version of the convertor or yetishare so thats all i can offer. This script generates a random thumbnail instead of the first 15 seconds of the video.

If you have any questions, feel free to ask. I have a bunch of other scripts, but the lack of the latest version prevents me from sharing em.

I posting this here cause there are a lot of issues that could be solved, and ive solved most of them. a few of them had to deal with screeshots so heres a solution that i can share.
 

filegasm

Member
YetiShare User
Jul 1, 2015
34
2
6
You can generate a random thumbnail by just getting the whole video duration in seconds, then generating a random number with that as the upper limit, and declare that result as the variable for the converter to use, instead of the usual value.