WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.92k stars 972 forks source link

video thumbnails plugin bug #7870

Open para2022 opened 1 year ago

para2022 commented 1 year ago

Hi,

I have a bug with video thumbnails plugin. It took me a while to work out what was spawning lots of ffmpeg processes slowing down the server. What ive noticed is when i turn it on shit loads of ffmpeg processes start and its creating .mp3 files in the videos folders and a .mp3.log

Any ideas? its off for now and the problem goes away.

Thanks

para2022 commented 1 year ago

Hmm i think my site went offline while it was running, i got a downtime notification

DanielnetoDotCom commented 1 year ago

weird, but it was working right?

para2022 commented 1 year ago

Yes it was working mate but stops at the same point at the same video each time.

para2022 commented 1 year ago

OMG lol i see what the prob is. It spawns more processes than ever before, jeez 100s. It crashed the server hence the offline message

DanielnetoDotCom commented 1 year ago

you can run the command line with the plugin disabled

so only the command line sill create the thumbs

para2022 commented 1 year ago

Maybe limit the script to process no more than 3 at a time which would be fine as a background process until it completes? If at all possible.

para2022 commented 1 year ago

the plugin is disabled mate

para2022 commented 1 year ago

Ive watched the script in the window and i see a lot of this before it terminates and at the same time the server is crashed: Error on connect, trying again [Too many connections] SCRIPT_NAME: getStpritsFromAll.php

DanielnetoDotCom commented 1 year ago

I see now, this process is made in the encoder, so it may not be a good idea to run it in the command line.

I am thinking of a solution

para2022 commented 1 year ago

ok no problem

DanielnetoDotCom commented 1 year ago

Hi, this is my last try today, it is over 10 PM here

now you will need to update the encoder and streamer with git pull

and download the plugin version 4.3

then try the command line again. it may not spam a bunch of processes. only in the command line.

para2022 commented 1 year ago

its ok you get some rest dude. Sadly i updated the plugin, git pull on the encoder and streamer site and run the script and still got failure and endless ffmpeg spawns. For now im also tired and am going to leave the site in maintenance mode and let the plugin run and see how many i can complete over night, i really want want this back running again as its an awesome plugin. Thanks

Error on connect, trying again [Too many connections] SCRIPT_NAME: getStpritsFromAll.php

DanielnetoDotCom commented 1 year ago

maybe the best idea would be for you to give me direct access to the server. I just tested it here and works fine

If you can give me access email me at developer@youphptube.com

para2022 commented 1 year ago

Me being stupid! That last script works beautiful. Its running on the terminal now generating the thumbs and not hammering the server. As ive already done the mp3s already. I will run that script again once this one completes and then turn on videothumbs and everything should be fine then. Thank you so much Dan :)

DanielnetoDotCom commented 1 year ago

I am glad it is working

para2022 commented 1 year ago

All the folders that are used to create the video thumbs and spirit files that are in the encoder, i was curious, are they used as well as the image files in the videos folder? I was wondering if i can delete those image files in the encoder/videos as they are taking up 140GB of space. Thanks

DanielnetoDotCom commented 1 year ago

All the folders that are used to create the video thumbs and spirit files that are in the encoder, I was curious, are they used as well as the image files in the videos folder? I was wondering if I can delete those image files in the encoder/videos as they are taking up 140GB of space. Thanks

yes, please delete them.

they are supposed to be deleted when you get the image, it is also happening on my side, and once I find the cause I will fix it.