WWBN / AVideo

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

Home page loads heavy what can be done to speed it up? #5212

Closed JoshWho closed 3 years ago

JoshWho commented 3 years ago

I am trying to slim it down so it loads fast and trying to pinpoint what is causing this on the homepage.

I disabled categories and turned off the cache per person and only have cache for logged user turned on. all other pages load fast it is just the home page.

JoshWho commented 3 years ago

Not sure if related but what shows in the log

[25-May-2021 03:33:42 America/Chicago] AVideoLog::ERROR: {"type":64,"message":"require_once(): Failed opening required '..\/..\/videos\/configuration.php' (include_path='.:\/usr\/share\/php')","file":"\/var\/www\/html\/YouPHPTube\/plugin\/MaintenanceMode\/index.php","line":2} SCRIPT_NAME: /view/index.php

JoshWho commented 3 years ago

`[25-May-2021 04:10:47 America/Chicago] AVideoLog::DEBUG: Live::createStatsCache {"bytes":62222,"cachefile":"\/var\/www\/html\/YouPHPTube\/videos\/cache\/YPTObjectCache\/getstats\/getstatsnotifications\/joshwhotv.com\/https\/-\/admin_bf16de73ad2ee12df97606e07cae8bcc\/3059e0b3b2c8af1bab5f5d65ee6961d7.cache"} SCRIPT_NAME: /view/iframe.php *** SCRIPT_NAME: /view/iframe.php function: include Line: {74} File: {path/to/my/streamer/site/view/iframe.php} function: getHTMLMenuRight Line: {429} File: {path/to/my/streamer/site/view/include/navbar.php} function: getHTMLMenuRight Line: {238} File: {path/to/my/streamer/site/plugin/AVideoPlugin.php} function: include Line: {49} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsNotifications Line: {448} File: {path/to/my/streamer/site/plugin/Live/view/menuRight.php} function: getStats Line: {6186} File: {path/to/my/streamer/site/objects/functions.php} function: _getStats Line: {956} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsObject Line: {1155} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: get_data Line: {709} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: _error_log_debug Line: {743} File: {path/to/my/streamer/site/plugin/Live/Live.php} Live::get_data(https://live.joshwhotv.com:444/stat, 20)


[25-May-2021 04:10:47 America/Chicago] AVideoLog::DEBUG: [25-May-2021 04:10:47 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0]: Creating a waitfile path/to/my/streamer/site/videos/cache/a84fdc425fca22fe1f87e4a7a8db29b9 SCRIPT_NAME: /view/iframe.php [25-May-2021 04:10:47 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /view/iframe.php [25-May-2021 04:10:47 America/Chicago] AVideoLog::DEBUG: getStatsNotifications: 1 [{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Live\/view\/menuRight.php","line":448,"function":"getStatsNotifications","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Live\/Live.php","line":49,"args":["\/var\/www\/html\/YouPHPTube\/plugin\/Live\/view\/menuRight.php"],"function":"include"},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/AVideoPlugin.php","line":238,"function":"getHTMLMenuRight","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/view\/include\/navbar.php","line":429,"function":"getHTMLMenuRight","class":"AVideoPlugin","type":"::","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/view\/iframe.php","line":74,"args":["\/var\/www\/html\/YouPHPTube\/view\/include\/navbar.php"],"function":"include"}] SCRIPT_NAME: /view/iframe.php [25-May-2021 04:10:43 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/v/16158?yptDeviceID=ed561fe7-7acd-4653-8077-27e5f69aa53c) FROM: 54.36.148.221 Browser: Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) SCRIPT_NAME: /view/index.php [25-May-2021 04:10:39 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/channel/5e961094e5c82/) FROM: 40.77.167.62 Browser: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) SCRIPT_NAME: /view/channel.php [25-May-2021 04:10:38 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/videos/_YPTuniqid_5cb9e385337bd8.16007197_thumbsSprit.jpg?cache=1555693992) FROM: 66.249.66.200 Browser: Googlebot-Image/1.0 SCRIPT_NAME: /view/img/image404.php [25-May-2021 04:10:38 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/v/14807?yptDeviceID=30c1fe26-50b5-4542-aae5-4ecd6fc7cf0f) FROM: 54.36.148.54 Browser: Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) SCRIPT_NAME: /view/index.php [25-May-2021 04:10:37 America/Chicago] AVideoLog::DEBUG: Image not found for videos/_YPTuniqid_5dec339a97bf70.69868912_thumbsV2.jpg we are using path/to/my/streamer/site/videos/_YPTuniqid_5dec339a97bf70.69868912/_YPTuniqid_5dec339a97bf70.69868912.jpg instead SCRIPT_NAME: /view/img/image404.php [25-May-2021 04:10:37 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/videos/_YPTuniqid_5dec339a97bf70.69868912_thumbsV2.jpg?1589239504) FROM: 66.249.75.235 Browser: Googlebot-Image/1.0 SCRIPT_NAME: /view/img/image404.php [25-May-2021 02:10:33 America/Los_Angeles] AVideoLog::DEBUG: Live::isLiveFromKey is online [5f9b81801b86d] SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 02:10:33 America/Los_Angeles] AVideoLog::DEBUG: Live::isLiveFromKey 5f9b81801b86d JSON was not empty SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 02:10:33 America/Los_Angeles] AVideoLog::DEBUG: Live::_getStats cached result 2 undefined getStats/live_servers_id0/undefined SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 02:10:33 America/Los_Angeles] AVideoLog::DEBUG: Live::isLiveFromKey is online [601ae8cac2465] SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 02:10:33 America/Los_Angeles] AVideoLog::DEBUG: Live::isLiveFromKey 601ae8cac2465 JSON was not empty SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 02:10:33 America/Los_Angeles] AVideoLog::DEBUG: Live::_getStats cached result 2 undefined getStats/live_servers_id0/undefined SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 04:10:30 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/v/29218?yptDeviceID=31a673b7-bfe0-4fc0-ade8-9ed44193313c) FROM: 54.36.149.104 Browser: Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) SCRIPT_NAME: /view/index.php [25-May-2021 04:10:28 America/Chicago] AVideoLog::DEBUG: verifyToken token timout time = 1621933828; obj->time = 1621460009; obj->timeout = 1621503209 SCRIPT_NAME: path/to/my/streamer/site/plugin/YPTSocket/server.php [25-May-2021 04:10:27 America/Chicago] Configuration::getEncoderURL ERROR your network (https://www.mysite.com/Uploader/) is not configured properly This slow down your site a lot, disable the option useEncoderNetworkRecomendation in your CustomizeAdvanced plugin [25-May-2021 04:10:27 America/Chicago] AVideoLog::DEBUG: wget: ERROR the url does not download https://www.mysite.com/Uploader/view/getBestEncoder.php, path/to/my/streamer/site/videos/cache/YPTurl_get_contents/8cbde3560a75a0fb41e01e8a31388f19 SCRIPT_NAME: /view/index.php [25-May-2021 04:10:22 America/Chicago] AVideoLog::DEBUG: Warning: Slow process detected [video::getAllVideos foreach] On Line 1198 takes 3.5756 seconds to complete, Limit (1.2). path/to/my/streamer/site/plugin/Livesearch/myVideos.json.php SCRIPT_NAME: /plugin/Livesearch/myVideos.json.php [25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: Warning: Slow process detected [video::getAllVideos foreach] On Line 1198 takes 3.4913 seconds to complete, Limit (1.2). path/to/my/streamer/site/plugin/Livesearch/myVideos.json.php SCRIPT_NAME: /plugin/Livesearch/myVideos.json.php [25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: Warning: Slow process detected [video::getAllVideos foreach] On Line 1198 takes 2.823 seconds to complete, Limit (1.2). path/to/my/streamer/site/plugin/Livesearch/myVideos.json.php SCRIPT_NAME: /plugin/Livesearch/myVideos.json.php [25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: Live::createStatsCache {"bytes":62222,"cachefile":"\/var\/www\/html\/YouPHPTube\/videos\/cache\/YPTObjectCache\/getstats\/getstatsnotifications\/joshwhotv.com\/https\/notlogged_789ed234f180cf1b21746d9cca37f35a\/3059e0b3b2c8af1bab5f5d65ee6961d7.cache"} SCRIPT_NAME: /view/index.php *** SCRIPT_NAME: /view/index.php function: require Line: {36} File: {path/to/my/streamer/site/view/index.php} function: include Line: {374} File: {path/to/my/streamer/site/view/modeYoutube.php} function: getHTMLMenuRight Line: {429} File: {path/to/my/streamer/site/view/include/navbar.php} function: getHTMLMenuRight Line: {238} File: {path/to/my/streamer/site/plugin/AVideoPlugin.php} function: include Line: {49} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsNotifications Line: {448} File: {path/to/my/streamer/site/plugin/Live/view/menuRight.php} function: getStats Line: {6186} File: {path/to/my/streamer/site/objects/functions.php} function: _getStats Line: {956} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsObject Line: {1155} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: get_data Line: {709} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: _error_log_debug Line: {743} File: {path/to/my/streamer/site/plugin/Live/Live.php} Live::get_data(https://live.joshwhotv.com:444/stat, 20)


[25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: [25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0]: Creating a waitfile path/to/my/streamer/site/videos/cache/a84fdc425fca22fe1f87e4a7a8db29b9 SCRIPT_NAME: /view/index.php [25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /view/index.php [25-May-2021 04:10:20 America/Chicago] AVideoLog::DEBUG: getStatsNotifications: 1 [{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Live\/view\/menuRight.php","line":448,"function":"getStatsNotifications","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Live\/Live.php","line":49,"args":["\/var\/www\/html\/YouPHPTube\/plugin\/Live\/view\/menuRight.php"],"function":"include"},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/AVideoPlugin.php","line":238,"function":"getHTMLMenuRight","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/view\/include\/navbar.php","line":429,"function":"getHTMLMenuRight","class":"AVideoPlugin","type":"::","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/view\/modeYoutube.php","line":374,"args":["\/var\/www\/html\/YouPHPTube\/view\/include\/navbar.php"],"function":"include"},{"file":"\/var\/www\/html\/YouPHPTube\/view\/index.php","line":36,"args":["\/var\/www\/html\/YouPHPTube\/view\/modeYoutube.php"],"function":"require"}] SCRIPT_NAME: /view/index.php [25-May-2021 04:10:19 America/Chicago] AVideoLog::DEBUG: Bot Detected, NOT showing the cache (/v/9566?yptDeviceID=0779f680-a585-4ce9-bfeb-832473cf4de0) FROM: 54.36.148.162 Browser: Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) SCRIPT_NAME: /view/index.php [25-May-2021 04:10:19 America/Chicago] AVideoLog::DEBUG: _json_encode: Error 3 Found: Malformed UTF-8 characters, possibly incorrectly encoded SCRIPT_NAME: /plugin/Livesearch/myVideos.json.php [25-May-2021 04:10:19 America/Chicago] AVideoLog::DEBUG: _json_encode: Error 2 Found: Malformed UTF-8 characters, possibly incorrectly encoded SCRIPT_NAME: /plugin/Livesearch/myVideos.json.php [25-May-2021 04:10:19 America/Chicago] AVideoLog::DEBUG: _json_encode: Error 1 Found: Malformed UTF-8 characters, possibly incorrectly encoded SCRIPT_NAME: /plugin/Livesearch/myVideos.json.php [25-May-2021 04:10:17 America/Chicago] AVideoLog::DEBUG: Live::createStatsCache {"bytes":62222,"cachefile":"\/var\/www\/html\/YouPHPTube\/videos\/cache\/YPTObjectCache\/getstats\/getstatsnotifications\/joshwhotv.com\/https\/US\/user_6099dddccd802b335db4ba4c04b2863e\/3059e0b3b2c8af1bab5f5d65ee6961d7.cache"} SCRIPT_NAME: /view/index.php *** SCRIPT_NAME: /view/index.php function: require Line: {38} File: {path/to/my/streamer/site/view/index.php} function: include Line: {15} File: {path/to/my/streamer/site/plugin/Gallery/view/modeGallery.php} function: getHTMLMenuRight Line: {429} File: {path/to/my/streamer/site/view/include/navbar.php} function: getHTMLMenuRight Line: {238} File: {path/to/my/streamer/site/plugin/AVideoPlugin.php} function: include Line: {49} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsNotifications Line: {448} File: {path/to/my/streamer/site/plugin/Live/view/menuRight.php} function: getStats Line: {6186} File: {path/to/my/streamer/site/objects/functions.php} function: _getStats Line: {956} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsObject Line: {1155} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: get_data Line: {709} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: _error_log_debug Line: {743} File: {path/to/my/streamer/site/plugin/Live/Live.php} Live::get_data(https://live.joshwhotv.com:444/stat, 20)


[25-May-2021 04:10:16 America/Chicago] AVideoLog::DEBUG: [25-May-2021 04:10:16 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0]: Creating a waitfile path/to/my/streamer/site/videos/cache/a84fdc425fca22fe1f87e4a7a8db29b9 SCRIPT_NAME: /view/index.php [25-May-2021 04:10:16 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /view/index.php [25-May-2021 04:10:16 America/Chicago] AVideoLog::DEBUG: getStatsNotifications: 1 [{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Live\/view\/menuRight.php","line":448,"function":"getStatsNotifications","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Live\/Live.php","line":49,"args":["\/var\/www\/html\/YouPHPTube\/plugin\/Live\/view\/menuRight.php"],"function":"include"},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/AVideoPlugin.php","line":238,"function":"getHTMLMenuRight","class":"Live","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/view\/include\/navbar.php","line":429,"function":"getHTMLMenuRight","class":"AVideoPlugin","type":"::","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/plugin\/Gallery\/view\/modeGallery.php","line":15,"args":["\/var\/www\/html\/YouPHPTube\/view\/include\/navbar.php"],"function":"include"},{"file":"\/var\/www\/html\/YouPHPTube\/view\/index.php","line":38,"args":["\/var\/www\/html\/YouPHPTube\/plugin\/Gallery\/view\/modeGallery.php"],"function":"require"}] SCRIPT_NAME: /view/index.php [25-May-2021 04:10:16 America/Chicago] AVideoLog::DEBUG: im_resizeV2: path/to/my/streamer/site/videos/cache/_jpg_60acbef8ce6c5.jpg, path/to/my/streamer/site/videos/cache/og_200X200.jpg, 200, 200, 100 SCRIPT_NAME: /view/index.php [25-May-2021 04:10:06 America/Chicago] AVideoLog::DEBUG: Live::isLiveFromKey is online [5f9b81801b86d] SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 04:10:06 America/Chicago] AVideoLog::DEBUG: Live::isLiveFromKey 5f9b81801b86d JSON was not empty SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 04:10:06 America/Chicago] AVideoLog::DEBUG: Live::isLiveFromKey is online [601ae8cac2465] SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 04:10:06 America/Chicago] AVideoLog::DEBUG: Live::isLiveFromKey 601ae8cac2465 JSON was not empty SCRIPT_NAME: /plugin/Live/getImage.php [25-May-2021 04:10:06 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0] 3: return cached result getStats/live_servers_id_0/getStatsObject [lifetime=60] SCRIPT_NAME: /plugin/Live/getImage.php *** SCRIPT_NAME: /plugin/Live/getImage.php function: isLive Line: {26} File: {path/to/my/streamer/site/plugin/Live/getImage.php} function: isLiveAndIsReadyFromKey Line: {1433} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: isKeyLiveInStats Line: {1548} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStats Line: {1457} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: _getStats Line: {956} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: getStatsObject Line: {1155} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: get_data Line: {709} File: {path/to/my/streamer/site/plugin/Live/Live.php} function: _error_log_debug Line: {743} File: {path/to/my/streamer/site/plugin/Live/Live.php} `

JoshWho commented 3 years ago
[25-May-2021 06:30:11 America/Chicago] AVideoLog::DEBUG: Warning: Slow process detected [video::getAllVideos foreach] On  Line 1198 takes 2.1757 seconds to complete, Limit (1.2). path/to/my/streamer/site/view/index.php SCRIPT_NAME: /view/index.php
 [25-May-2021 06:30:09 America/Chicago] AVideoLog::DEBUG: Live::createStatsCache {"bytes":62222,"cachefile":"\/var\/www\/html\/YouPHPTube\/videos\/cache\/YPTObjectCache\/getstats\/getstatsnotifications\/joshwhotv.com\/https\/admin_bf16de73ad2ee12df97606e07cae8bcc\/3059e0b3b2c8af1bab5f5d65ee6961d7.cache"} SCRIPT_NAME: /view/iframe.php
 *** SCRIPT_NAME: /view/iframe.php
 function: include Line: {74} File: {path/to/my/streamer/site/view/iframe.php}
 function: getHTMLMenuRight Line: {429} File: {path/to/my/streamer/site/view/include/navbar.php}
 function: getHTMLMenuRight Line: {238} File: {path/to/my/streamer/site/plugin/AVideoPlugin.php}
 function: include Line: {49} File: {path/to/my/streamer/site/plugin/Live/Live.php}
 function: getStatsNotifications Line: {448} File: {path/to/my/streamer/site/plugin/Live/view/menuRight.php}
 function: getStats Line: {6186} File: {path/to/my/streamer/site/objects/functions.php}
 function: _getStats Line: {956} File: {path/to/my/streamer/site/plugin/Live/Live.php}
 function: getStatsObject Line: {1155} File: {path/to/my/streamer/site/plugin/Live/Live.php}
 function: get_data Line: {709} File: {path/to/my/streamer/site/plugin/Live/Live.php}
 function: _error_log_debug Line: {743} File: {path/to/my/streamer/site/plugin/Live/Live.php}
 Live::get_data(https://live.joshwhotv.com:444/stat, 20)
JoshWho commented 3 years ago
[25-May-2021 06:30:09 America/Chicago] AVideoLog::DEBUG: 
 [25-May-2021 06:30:09 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0]: Creating a waitfile path/to/my/streamer/site/videos/cache/a84fdc425fca22fe1f87e4a7a8db29b9 SCRIPT_NAME: /view/iframe.php
 [25-May-2021 06:30:09 America/Chicago] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /view/iframe.php
DanielnetoDotCom commented 3 years ago

Hi, first step please use the cache on the default values.

if you can delete the plugin code and let it as the default.

image

JoshWho commented 3 years ago

not sure what u mean I just added all the new settings and put the cache on the ssd drive this morning.

JoshWho commented 3 years ago

It was working great only wondering why the homepage lagged

JoshWho commented 3 years ago

those settings is slower than the ssd that i had it set on i made a folder for it on the ssd here /mnt/md0/jtvcache

DanielnetoDotCom commented 3 years ago

Please check if this update makes any difference

DanielnetoDotCom commented 3 years ago

Also check that

[25-May-2021 04:10:27 America/Chicago] Configuration::getEncoderURL ERROR your network (https://www.mysite.com/Uploader/) is not configured properly This slow down your site a lot, disable the option useEncoderNetworkRecomendation in your CustomizeAdvanced plugin

JoshWho commented 3 years ago

that is a bug Encoder network is fine and fully up to date No clue where it is pulling mysite.com

DanielnetoDotCom commented 3 years ago

Try to disable it and see if makes any difference.

also update your streamer

JoshWho commented 3 years ago

I did earlier and I didn't see any speed change but when I did that I went ahead and did a git pull. My encoder network is in the YouPHPTube/Uploader/ folder

root@joshwhotv:/var/www/html/YouPHPTube/Uploader# git pull
remote: Enumerating objects: 65, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 53 (delta 35), reused 41 (delta 27), pack-reused 0
Unpacking objects: 100% (53/53), done.
From https://github.com/WWBN/AVideo-Encoder-Network
   ab70ccb..592092f  master     -> origin/master
Updating ab70ccb..592092f
Fast-forward
 install/checkConfiguration.php                     |    1 +
 install/index.php                                  |    7 +-
 objects/include_config.php                         |    1 +
 view/bootgrid/jquery.bootgrid.css                  |  147 -
 view/bootgrid/jquery.bootgrid.fa.js                |   19 -
 view/bootgrid/jquery.bootgrid.fa.min.js            |    6 -
 view/bootgrid/jquery.bootgrid.js                   | 2042 ------
 view/bootgrid/jquery.bootgrid.min.css              |    5 -
 view/bootgrid/jquery.bootgrid.min.js               |    6 -
 view/bootstrap/css/bootstrap-theme.css             |  587 --
 view/bootstrap/css/bootstrap-theme.css.map         |    1 -
 view/bootstrap/css/bootstrap-theme.min.css         |    6 -
 view/bootstrap/css/bootstrap-theme.min.css.map     |    1 -
 view/bootstrap/css/bootstrap.css                   | 6757 --------------------
 view/bootstrap/css/bootstrap.css.map               |    1 -
 view/bootstrap/css/bootstrap.min.css               |    6 -
 view/bootstrap/css/bootstrap.min.css.map           |    1 -
 .../fonts/glyphicons-halflings-regular.eot         |  Bin 20127 -> 0 bytes
 .../fonts/glyphicons-halflings-regular.svg         |  288 -
 .../fonts/glyphicons-halflings-regular.ttf         |  Bin 45404 -> 0 bytes
 .../fonts/glyphicons-halflings-regular.woff        |  Bin 23424 -> 0 bytes
 .../fonts/glyphicons-halflings-regular.woff2       |  Bin 18028 -> 0 bytes
 view/bootstrap/js/bootstrap.js                     | 2377 -------
 view/bootstrap/js/bootstrap.min.js                 |    7 -
 view/bootstrap/js/npm.js                           |   13 -
 view/getBestEncoder.php                            |   56 +-
 view/index.php                                     |   39 +-
 view/js/jquery-3.2.0.min.js                        |    4 -
 view/js/seetalert/sweetalert.css                   |  686 --
 view/js/seetalert/sweetalert.js                    | 1196 ----
 view/js/seetalert/sweetalert.min.js                |    1 -
 view/score.php                                     |    9 +-
 32 files changed, 83 insertions(+), 14187 deletions(-)
 delete mode 100644 view/bootgrid/jquery.bootgrid.css
 delete mode 100644 view/bootgrid/jquery.bootgrid.fa.js
 delete mode 100644 view/bootgrid/jquery.bootgrid.fa.min.js
 delete mode 100644 view/bootgrid/jquery.bootgrid.js
 delete mode 100644 view/bootgrid/jquery.bootgrid.min.css
 delete mode 100644 view/bootgrid/jquery.bootgrid.min.js
 delete mode 100644 view/bootstrap/css/bootstrap-theme.css
 delete mode 100644 view/bootstrap/css/bootstrap-theme.css.map
 delete mode 100644 view/bootstrap/css/bootstrap-theme.min.css
 delete mode 100644 view/bootstrap/css/bootstrap-theme.min.css.map
 delete mode 100644 view/bootstrap/css/bootstrap.css
 delete mode 100644 view/bootstrap/css/bootstrap.css.map
 delete mode 100644 view/bootstrap/css/bootstrap.min.css
 delete mode 100644 view/bootstrap/css/bootstrap.min.css.map
 delete mode 100644 view/bootstrap/fonts/glyphicons-halflings-regular.eot
 delete mode 100644 view/bootstrap/fonts/glyphicons-halflings-regular.svg
 delete mode 100644 view/bootstrap/fonts/glyphicons-halflings-regular.ttf
 delete mode 100644 view/bootstrap/fonts/glyphicons-halflings-regular.woff
 delete mode 100644 view/bootstrap/fonts/glyphicons-halflings-regular.woff2
 delete mode 100644 view/bootstrap/js/bootstrap.js
 delete mode 100644 view/bootstrap/js/bootstrap.min.js
 delete mode 100644 view/bootstrap/js/npm.js
 delete mode 100644 view/js/jquery-3.2.0.min.js
 delete mode 100644 view/js/seetalert/sweetalert.css
 delete mode 100644 view/js/seetalert/sweetalert.js
 delete mode 100644 view/js/seetalert/sweetalert.min.js
root@joshwhotv:/var/www/html/YouPHPTube/Uploader#
JoshWho commented 3 years ago

i figured encoder network was just erroring because it wasn't updating

JoshWho commented 3 years ago

Now only drag I see is something that says grab all videos or something like that

DanielnetoDotCom commented 3 years ago

sorry what?

JoshWho commented 3 years ago

Warning: Slow process detected [video::getAllVideos fo

DanielnetoDotCom commented 3 years ago

did you update the streamer?

JoshWho commented 3 years ago

yes

JoshWho commented 3 years ago

it was probably a old error

JoshWho commented 3 years ago

I think it is real good now. Thank you @DanielnetoDotCom

DanielnetoDotCom commented 3 years ago

Sorry, what happens? did you detect the problem?

DanielnetoDotCom commented 3 years ago

Also check this https://github.com/WWBN/AVideo/wiki/Speed-up-your-page#tuning-your-apache-server

maxlinux2000 commented 3 years ago

Hi, I'm looking at the speed results using this tool

https://developers.google.com/speed/pagespeed/insights/ and the results are not good.

I've gotten a result of "34/100" on home and "24/100" on a video page, which is very bad.

It is clear that YouTube is faster, but none of us think we can spend $ 10,000 a month to have much faster servers. My target is $ 20 per month and I would like to stay that way because I don't have so many videos nor are they of particular interest to 99% of people.

I have activated the Cache, with the default values ​​and it has not changed at all ... well ... 36 instead of 34, but it is imperceptible.

I propose to change rendering strategy within the "cache" plugin so that it greatly increases the rendering speed by serving modified static copies in html with async javascript.

Jquery and other javascipt can be loaded last, after rendering the page.

Increase LazyLoad action of images on pages

Reduce the CSS to the minimum possible (bootstrap is very fat) by taking a light version only of the whole set that is actually used and serve only this css, instead of the whole set

All this means that perhaps the new videos will not be loaded quickly on the home page ... but a cache refresh could be forced when there is a new video just loaded from the Encoder ... that is, when the Streamer receives a new video from the Encoder, automatically refresh the cache, to reflect the changes

I hope this serves as inspiration for the modifications in AVideo.

akhilleusuggo commented 3 years ago

we need page pre-load, like wordpress plugin. Preloading the pages before they're clicked. We have ytp-socket, could be useful for this.

maxlinux2000 commented 3 years ago

I obtain this poor performance with ytp-socket plugin activated :-(