WWBN / AVideo

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

Problems Encoding / Downloading Videos. #7699

Closed kollossus55 closed 1 year ago

kollossus55 commented 1 year ago

Hi I seem to be having problems downloading videos from youtube. Checking the logfile, I see the following:-

[21-Feb-2023 14:27:23 Europe/London] AVideoLog::ERROR: MySQL ERROR: [{"file":"\/var\/www\/html\/AVideo\/objects\/mysql_dal.php","line":227,"function":"log_error"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Scheduler\/Objects\/Scheduler_commands.php","line":42,"function":"readSql","class":"sqlDAL","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Scheduler\/Objects\/Scheduler_commands.php","line":26,"function":"getFromVideosId","class":"Scheduler_commands","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Scheduler\/Scheduler.php","line":125,"function":"isActiveFromVideosId","class":"Scheduler_commands","type":"::"},{"file":"\/var\/www\/html\/AVideo\/objects\/video.php","line":723,"function":"isActiveFromVideosId","class":"Scheduler","type":"::"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php

What does this mean ?

Regards

DanielnetoDotCom commented 1 year ago

this error is not enough but I am send a bug fix to the Scheduler plugin in 1 hour

kollossus55 commented 1 year ago

Hi Sorry for not being clued up, but what is required in the scheduler Plugin?

DanielnetoDotCom commented 1 year ago

I've just released a new version of our plugin, which will provide you with more detailed information about whether the scheduler plugin is running.

This new version is only required if you're using the video release date feature. However, I recommend that you install it and have it ready, as we will be creating and transferring features that will work specifically with this new version.

To ensure that the plugin is running as intended, please add the following command to your crontab file, to execute every minute:

php /var/www/html/demo.avideo.com/plugin/Scheduler/run.php

To add this command to your crontab, you can follow these steps:

  1. Open a terminal window on your server and log in as the user who will be running the cron job.

  2. Type the command crontab -e to edit the user's crontab file. If the user does not yet have a crontab file, one will be created for them.

  3. In the crontab file, add the following line at the bottom of the file:

* * * * * php /var/www/html/demo.avideo.com/plugin/Scheduler/run.php
  1. This will schedule the run.php script to run every minute. If you'd like to adjust the schedule to run at different intervals, you can modify the * part of the command using the syntax I provided in my previous message.

Save the crontab file and exit the editor. Your changes will take effect immediately, and the run.php script will be scheduled to run at specified intervals.

image
kollossus55 commented 1 year ago

hi

Followed the above steps.. I cannot download youtube videos via the encoder.. Cannot see any errors in log file...

DanielnetoDotCom commented 1 year ago

the steps above are not to resolve the encoder issue, it is just because you asked me about the scheduler.

check your encoder log

kollossus55 commented 1 year ago

Will do.. it just happened at the same time....

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: Daniel Neto @.> Sent: Wednesday, February 22, 2023 4:57:17 PM To: WWBN/AVideo @.> Cc: kollossus55 @.>; Author @.> Subject: Re: [WWBN/AVideo] Problems Encoding / Downloading Videos. (Issue #7699)

the steps above are not to resolve the encoder issue, it is just because you asked me about the scheduler.

check your encoder log

— Reply to this email directly, view it on GitHubhttps://github.com/WWBN/AVideo/issues/7699#issuecomment-1440422907, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM24UOKXYBPAYIOZUAXAKYLWYZAO3ANCNFSM6AAAAAAVDE7B54. You are receiving this because you authored the thread.Message ID: @.***>

kollossus55 commented 1 year ago

Hi checked logs, doesn't show any errors, tried to download again and checked the logfile. Got info below:-

[23-Feb-2023 11:55:01 Europe/London] AVideoLog::DEBUG: Last visit set path/to/my/streamer/site/videos/cache/schedulerLastVisit.log SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:55:01 Europe/London] AVideoLog::DEBUG: Scheduler::run There are 0 active requests; getAllActiveAndReady=0 getAllScheduledTORepeat=0 on time {"minute":55,"hour":11,"day_of_month":23,"month":2,"day_of_week":4} SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:54:06 Europe/London] AVideoLog::DEBUG: getAllCategories getUserGroups SCRIPT_NAME: /view/index.php [23-Feb-2023 11:54:01 Europe/London] AVideoLog::DEBUG: Last visit set path/to/my/streamer/site/videos/cache/schedulerLastVisit.log SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:54:01 Europe/London] AVideoLog::DEBUG: Scheduler::run There are 0 active requests; getAllActiveAndReady=0 getAllScheduledTORepeat=0 on time {"minute":54,"hour":11,"day_of_month":23,"month":2,"day_of_week":4} SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:53:30 Europe/London] AVideoLog::DEBUG: User:login finish 1 SCRIPT_NAME: /objects/login.json.php [23-Feb-2023 11:53:30 Europe/London] AVideoLog::DEBUG: login.json.php user found SCRIPT_NAME: /objects/login.json.php [23-Feb-2023 11:53:30 UTC] AVideoLog::DEBUG: Cache::isREQUEST_URIWhitelisted: (/login) is whitelisted SCRIPT_NAME: /objects/login.json.php [23-Feb-2023 11:53:30 UTC] AVideoLog::DEBUG: loginFromRequest NOT FOUND admin SCRIPT_NAME: /objects/login.json.php **** **** ***** **** * * **** *** - password **** **** ***** **** * * **** ***** - password **** **** ** ***** ** ** * * ***** **** *** - password **** **** *** **** ** * *** **** *** - password **** **** *** **** ** * **** ***** - password **** **** ** ***** ** ** * * ***** **** *** - password [23-Feb-2023 11:53:30 UTC] AVideoLog::DEBUG: loginFromRequest NOT FOUND admin SCRIPT_NAME: /objects/login.json.php **** **** *** **** ** * *** **** *** - password **** **** *** **** ** * ***** **** *** - password **** **** *** ** ** * *** *** **** * - password **** **** ***** **** * * **** *** - password **** **** ***** **** * * ***** **** *** - password **** **** *** ** ** * *** *** **** * - password [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$WebSocket is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 114 [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpRequest is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 112 [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpBuffer is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpRequestParser.php on line 30 [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpHeadersReceived is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpServer.php on line 33 [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$remoteAddress is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 87 [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$resourceId is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 84 [23-Feb-2023 11:53:26 Europe/London] PHP Deprecated: Creation of dynamic property React\Socket\Connection::$decor is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 83 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$WebSocket is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 114 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpRequest is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 112 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpBuffer is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpRequestParser.php on line 30 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpHeadersReceived is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpServer.php on line 33 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$remoteAddress is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 87 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$resourceId is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 84 [23-Feb-2023 11:53:10 Europe/London] PHP Deprecated: Creation of dynamic property React\Socket\Connection::$decor is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 83 [23-Feb-2023 11:53:02 Europe/London] AVideoLog::DEBUG: Last visit set path/to/my/streamer/site/videos/cache/schedulerLastVisit.log SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:53:02 Europe/London] AVideoLog::DEBUG: Scheduler::run There are 0 active requests; getAllActiveAndReady=0 getAllScheduledTORepeat=0 on time {"minute":53,"hour":11,"day_of_month":23,"month":2,"day_of_week":4} SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:52:46 Europe/London] AVideoLog::DEBUG: getAllCategories getUserGroups SCRIPT_NAME: /view/index.php [23-Feb-2023 11:52:05 Europe/London] AVideoLog::DEBUG: Warning: Slow process detected [modeYoutubeBundle.php] On Line 114 takes 0.4314 seconds to complete, Limit (0.2). path/to/my/streamer/site/view/modeYoutube.php SCRIPT_NAME: /view/modeYoutube.php [23-Feb-2023 11:52:05 Europe/London] AVideoLog::DEBUG: userCanWatchVideo: the video (82) is set Only_for_paid = true) SCRIPT_NAME: /view/modeYoutube.php [23-Feb-2023 11:52:05 Europe/London] AVideoLog::DEBUG: getAllCategories getUserGroups SCRIPT_NAME: /view/modeYoutube.php [23-Feb-2023 11:52:01 Europe/London] AVideoLog::DEBUG: Last visit set path/to/my/streamer/site/videos/cache/schedulerLastVisit.log SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:52:01 Europe/London] AVideoLog::DEBUG: Scheduler::run There are 0 active requests; getAllActiveAndReady=0 getAllScheduledTORepeat=0 on time {"minute":52,"hour":11,"day_of_month":23,"month":2,"day_of_week":4} SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:51:14 Europe/London] AVideoLog::DEBUG: getAllCategories getUserGroups SCRIPT_NAME: /view/index.php [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$WebSocket is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 114 [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpRequest is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 112 [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpBuffer is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpRequestParser.php on line 30 [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpHeadersReceived is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpServer.php on line 33 [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$remoteAddress is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 87 [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$resourceId is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 84 [23-Feb-2023 11:51:02 Europe/London] PHP Deprecated: Creation of dynamic property React\Socket\Connection::$decor is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 83 [23-Feb-2023 11:51:02 Europe/London] AVideoLog::DEBUG: Plugin Not Found 1: page SCRIPT_NAME: /objects/pluginsAvailable.json.php [23-Feb-2023 11:51:02 Europe/London] AVideoLog::DEBUG: Plugin Not Found 1: install SCRIPT_NAME: /objects/pluginsAvailable.json.php [23-Feb-2023 11:51:01 Europe/London] AVideoLog::DEBUG: Last visit set path/to/my/streamer/site/videos/cache/schedulerLastVisit.log SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:51:01 Europe/London] AVideoLog::DEBUG: Scheduler::run There are 0 active requests; getAllActiveAndReady=0 getAllScheduledTORepeat=0 on time {"minute":51,"hour":11,"day_of_month":23,"month":2,"day_of_week":4} SCRIPT_NAME: path/to/my/streamer/site/plugin/Scheduler/run.php [23-Feb-2023 11:51:01 Europe/London] AVideoLog::DEBUG: Warning: Slow process detected [modeYoutubeBundle.php] On Line 114 takes 0.4457 seconds to complete, Limit (0.2). path/to/my/streamer/site/view/modeYoutube.php SCRIPT_NAME: /view/modeYoutube.php [23-Feb-2023 11:51:01 Europe/London] AVideoLog::DEBUG: userCanWatchVideo: the video (82) is set Only_for_paid = true) SCRIPT_NAME: /view/modeYoutube.php [23-Feb-2023 11:51:01 Europe/London] AVideoLog::DEBUG: Plugin Not Found 1: Objects SCRIPT_NAME: /objects/pluginsAvailable.json.php [23-Feb-2023 11:51:00 Europe/London] AVideoLog::DEBUG: getAllCategories getUserGroups SCRIPT_NAME: /view/modeYoutube.php [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$WebSocket is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 114 [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpRequest is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsServer.php on line 112 [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpBuffer is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpRequestParser.php on line 30 [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$httpHeadersReceived is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Http/HttpServer.php on line 33 [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$remoteAddress is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 87 [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property Ratchet\Server\IoConnection::$resourceId is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 84 [23-Feb-2023 11:50:52 Europe/London] PHP Deprecated: Creation of dynamic property React\Socket\Connection::$decor is deprecated in path/to/my/streamer/site/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 83 [23-Feb-2023 11:50:51 Europe/London] AVideoLog::DEBUG: Verification Response (https://search.ypt.me/verify.php?url=https%3A%2F%2Fwww.mysite.com%2F&screenshot=1): {"msg":["https:\/\/www.mysite.com\/ Site verified"],"isPrivate":false,"verified":true,"status":"a"} SCRIPT_NAME: /admin/index.php

Is there anything there ?

regards

DanielnetoDotCom commented 1 year ago

you should check the encoder log, NOT the streamer log

kollossus55 commented 1 year ago

Just to double check Directory:-

/var/www/html/AVideo/Encoder/videos# then avideo.log ?

Thanks

DanielnetoDotCom commented 1 year ago

correct

kollossus55 commented 1 year ago

Nothing is showing....No Update....

Encoder Video log

DanielnetoDotCom commented 1 year ago

you MUST get the code when you try to submit a video

kollossus55 commented 1 year ago

Hi

Im sorry for my ignorance, but what code are we talking about. Since I updated the software I seem to be having various problems. I have done git pulls and checked logfiles. When I try to download videos nothing happens at all; the page blinks and nothing comes on the queue.....

DanielnetoDotCom commented 1 year ago

I mean the Encoder logs

you MUST get the Encoder logs when you try to submit a video

kollossus55 commented 1 year ago

I ran the tail command at the time of trying to download. Does this mena anything ?

[24-Feb-2023 16:26:29 Europe/London] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:26:29 Europe/London] AVideoLog::DEBUG: avideoEndIncluded already processed SCRIPT_NAME: /view/index.php [24-Feb-2023 16:27:01 UTC] PHP Warning: Undefined array key "language" in /var/www/html/AVideo/locale/function.php on line 131 [24-Feb-2023 16:27:01 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:01 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:01 UTC] PHP Deprecated: Return type of FtpClient\FtpClient::count($directory = '.', $type = null, $recursive = true) should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/AVideo/plugin/CDN/FtpClient/FtpClient.php on line 542 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Deprecated: Return type of FtpClient\FtpClient::count($directory = '.', $type = null, $recursive = true) should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/AVideo/plugin/CDN/FtpClient/FtpClient.php on line 542 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409 [24-Feb-2023 16:27:13 UTC] PHP Warning: Undefined array key "PHPSESSID" in /var/www/html/AVideo/objects/functions.php on line 4409

DanielnetoDotCom commented 1 year ago

this log is still the Streamer log NOT the encoder log.

the encoder log should be inside the Encoder/videos folder

usually tail -f /var/www/html/AVideo/Encoder/videos/avideo.log

kollossus55 commented 1 year ago

Got this information:-

[24-Feb-2023 22:59:19 UTC] Login:: done session_id = eb05chl2252vll5h5i1vfvbcgo session_login [24-Feb-2023 23:03:20 UTC] getTitleFromLink: Get Title Error: LC_ALL=en_US.UTF-8 /usr/local/bin/yt-dlp --no-check-certificate --no-playlist --force-ipv4 --skip-download -e 'https://youtu.be/U2ww0sFgFMc' Array ( [0] => ERROR: [youtube] U2ww0sFgFMc: Unable to extract uploader id; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U )

[24-Feb-2023 23:03:20 UTC] youtubeDl::addVideo We could not get the title () of your video (https://youtu.be/U2ww0sFgFMc)

Please advise. Thx

DanielnetoDotCom commented 1 year ago

Here is the solution

https://github.com/WWBN/AVideo/issues/7682#issuecomment-1434799136

kollossus55 commented 1 year ago

hi

yes that did the trick..

Thanks