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

Broken missing files - encoder + b2_backblaze problem since update #9350

Open millzee01 opened 2 months ago

millzee01 commented 2 months ago

For some reason, since I updated to the latest version the encoder suddenly stopped transferring files to the streamer (or b2_backblaze). Previously it was spot on however I have updated the sites and b2_backblaze plugin.

The issue seems to occur just with the encoder copying the files to the streamer because it creates the tmp mp4 on the encoder/videos folder.

here's what I see in the log: [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: start to receive: {"duration":"0:04:00","title":"robloxapp-20240407-1052597","categories_id":0,"format":"mp4","resolution":"HD","videoDownloadedLink":"","description":"","downloadURL":"https:\/\/vid.hooptactix.com\/encoder\/videos\/avideoTmpFile_81_streamers_id_2_HD.mp4","encoderURL":"https:\/\/vid.hooptactix.com\/encoder\/","streamers_id":2,"user":"admin@futboltactix.com","pass":"07cb20308428a88d34ba3a216a83b433","return_vars":"{\"videos_id\":367,\"video_id_hash\":\"Mm0yekpmVW1TeDdZb3c5QzdEbGpsdjNTUGNBV0VoVjBYZzdQd3FrUjdaYz0=\",\"releaseDate\":\"2024-08-20 10:33:00\"}","releaseDate":"2024-08-20 10:33:00","releaseTime":"1724146380","videos_id":367,"video_id_hash":"Mm0yekpmVW1TeDdZb3c5QzdEbGpsdjNTUGNBV0VoVjBYZzdQd3FrUjdaYz0=","timezone":"Europe\/London","encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php

the video is uploaded and encoded then I see: [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: Encoder receiving post {"duration":"0:04:00","title":"robloxapp-20240407-1052597","categories_id":0,"format":"mp4","resolution":"HD","videoDownloadedLink":"","description":"","downloadURL":"https:\/\/vid.hooptactix.com\/encoder\/videos\/avideoTmpFile_81_streamers_id_2_HD.mp4","encoderURL":"https:\/\/vid.hooptactix.com\/encoder\/","streamers_id":2,"user":"admin@futboltactix.com","pass":"07cb20308428a88d34ba3a216a83b433","return_vars":"{\"videos_id\":367,\"video_id_hash\":\"Mm0yekpmVW1TeDdZb3c5QzdEbGpsdjNTUGNBV0VoVjBYZzdQd3FrUjdaYz0=\",\"releaseDate\":\"2024-08-20 10:33:00\"}","releaseDate":"2024-08-20 10:33:00","releaseTime":"1724146380","videos_id":367,"video_id_hash":"Mm0yekpmVW1TeDdZb3c5QzdEbGpsdjNTUGNBV0VoVjBYZzdQd3FrUjdaYz0=","timezone":"Europe\/London","encodedPass":1} SCRIPT_NAME: /objects/aVideoEncoder.json.php

and finally: [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: Files EMPTY SCRIPT_NAME: /objects/aVideoEncoder.json.php [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: Try to download https://vid.hooptactix.com/encoder/videos/avideoTmpFile_81_streamers_id_2_HD.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: this is not a video https://vid.hooptactix.com/encoder/videos/avideoTmpFile_81_streamers_id_2_HD.mp4 strlen=196 196 bytes SCRIPT_NAME: /objects/aVideoEncoder.json.php [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: **** Download ERROR https://vid.hooptactix.com/encoder/videos/avideoTmpFile_81_streamers_id_2_HD.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: Video::setStatus {"duration":"0:04:00","title":"robloxapp-20240407-1052597","categories_id":0,"format":"mp4","resolution":"HD","videoDownloadedLink":"","description":"","downloadURL":"https:\/\/vid.hooptactix.com\/encoder\/videos\/avideoTmpFile_81_streamers_id_2_HD.mp4","encoderURL":"https:\/\/vid.hooptactix.com\/encoder\/","streamers_id":2,"user":"admin@futboltactix.com","pass":"07cb20308428a88d34ba3a216a83b433","return_vars":"{\"videos_id\":367,\"video_id_hash\":\"Mm0yekpmVW1TeDdZb3c5QzdEbGpsdjNTUGNBV0VoVjBYZzdQd3FrUjdaYz0=\",\"releaseDate\":\"2024-08-20 10:33:00\"}","releaseDate":"2024-08-20

this entry: [20-Aug-2024 05:36:59 America/Toronto] AVideoLog::DEBUG: aVideoEncoder.json: **** Download ERROR https://vid.hooptactix.com/encoder/videos/avideoTmpFile_81_streamers_id_2_HD.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php

seems to suggest there was an issue downloading the mp4 form the encoder

I use b2_backblaze however direct upload works fine.

It seems to not want to upload the file to b2 after the video has been encoded.

The process creates all the files ont he encoder it needs and the also creates the video folder on streamer.

Eventually all files are automatically deleted

any ideas? i've got the latest updates + plugin update

This is what the video looks like on the manager screen: image

DanielnetoDotCom commented 2 months ago

Hi,

To help find the issue please follow this

https://github.com/WWBN/AVideo-Encoder/wiki/Finding-Errors-on-the-Encoder

millzee01 commented 2 months ago

Hi @DanielnetoDotCom

bit of a silly question, how do i create an encoder admin?
The only tables i see ont he encoder db is configurations; encoder_queue; formats; streamers and upload_queue

Do i need to create an admin user on the streamer site?

thanks

LOL forget that i just found admin on streamers :-)

millzee01 commented 2 months ago

now i feel stupid :-)

image