Open para2022 opened 1 year ago
It is not producing all the files. See below, the same file, one is successful with lots of files and the one saying broken is missing some files that the encoder did not produce. is this causing it?
All the broken vids are missing thumbs ive just gone through them.
This happens locally as well as ive installed an encoder on the streamer site for testing, still happens. The encoder servers fail locally also by using the encoder on the same site. So this is not a remote issue is seems the encoder code is broken. This cannot be a problem my end on all 3 servers. One was freshly reinstalled today to see if it was a server issue. Brand new install of everything and still broken files on the new server.
I see these lines in the log on the failed ones EE:EE:EE. These are uploads to the encoder not imports.
[14-May-2023 01:34:07 UTC] AVideoLog::DEBUG: Video::save (7-1 DTS HD MA (dtshd) surround pink noise test files for each speaker calibration 4k) Saved id = 32 EE:EE:EE [14-May-2023 01:34:07 UTC] AVideoLog::DEBUG: setDuration after EE:EE:EE SCRIPT_NAME: /myMySQLDatabase/objects/aVideoEncoder.json.php [14-May-2023 01:34:07 UTC] AVideoLog::DEBUG: setDuration before EE:EE:EE SCRIPT_NAME: /myMySQLDatabase/objects/aVideoEncoder.json.php
the EE:EE:EE is because of the missing files, you MUST check the logs, during the encoder process and transfer process.
both logs, encoder and streamer
I have checked already. No errors in encoder log . It does its thing and sends the file without error. The above is what i find in the streamer log.
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
Here is my encoder log. As you can see it ends successfully with no errors.
[18-May-2023 20:44:00 UTC] sendToStreamer https://encoder2.ourtube.co.uk/ourtube/aVideoEncoder.json in 1.360 seconds {"error":false,"target":"aVideoEncoder.json","postFields":{"duration":"0:09:17","title":"It\'s down to us","categories_id":0,"format":"mp4","resolution":"240","videoDownloadedLink":"","description":"","downloadURL":"https:\/\/encoder2.ourtube.co.uk\/2\/videos\/avideoTmpFile_69_streamers_id_15_240.mp4","encoderURL":"https:\/\/encoder2.ourtube.co.uk\/2\/","streamers_id":"15","user":"ourtube","pass":"_user_hash_dWxnRGxQeFNRWG9rRnRtQituZERrcWdCclIvVmxCK0p1VlNadjBPZVV2UXlyKzV2cTM5aXNVUFFsM2ZzQXUrSXdvQlRod24yb0pDaEFveWo0WlhHYlE9PQ==","return_vars":"{\"videos_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","releaseDate":"2023-05-18 19:39:00","videos_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","timezone":"UTC"},"response_raw":"{\"error\":false,\"video_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","response":{"error":false,"video_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","releaseDate":"2023-05-18 19:39:00"}} [18-May-2023 20:44:00 UTC] Encoder:sendFileChunk no need, we could download [18-May-2023 20:44:13 UTC] Duration found: 0:09:17 [18-May-2023 20:44:13 UTC] sendToStreamer to aVideoEncoder.json [18-May-2023 20:44:14 UTC] Encoder::save id=(69) title=(It\'s down to us) [18-May-2023 20:44:14 UTC] Encoder::save id=(69) title=(It\'s down to us) [18-May-2023 20:44:14 UTC] sendToStreamer spectrumimage not set [18-May-2023 20:44:14 UTC] sendToStreamer rawVideo not set [18-May-2023 20:44:14 UTC] sendToStreamer image not set [18-May-2023 20:44:14 UTC] sendToStreamer gifimage not set [18-May-2023 20:44:14 UTC] sendToStreamer webpimage not set [18-May-2023 20:44:14 UTC] sendToStreamer video not set [18-May-2023 20:44:14 UTC] sendToStreamer https://encoder2.ourtube.co.uk/ourtube/aVideoEncoder.json in 1.472 seconds {"error":false,"target":"aVideoEncoder.json","postFields":{"duration":"0:09:17","title":"It\'s down to us","categories_id":0,"format":"mp4","resolution":"480","videoDownloadedLink":"","description":"","downloadURL":"https:\/\/encoder2.ourtube.co.uk\/2\/videos\/avideoTmpFile_69_streamers_id_15_480.mp4","encoderURL":"https:\/\/encoder2.ourtube.co.uk\/2\/","streamers_id":"15","user":"admin","pass":"_user_hash_dWxnRGxQeFNRWG9rRnRtQituZERrcWdCclIvVmxCK0p1VlNadjBPZVV2UXlyKzV2cTM5aXNVUFFsM2ZzQXUrSXdvQlRod24yb0pDaEFveWo0WlhHYlE9PQ==","return_vars":"{\"videos_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","releaseDate":"2023-05-18 19:39:00","videos_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","timezone":"UTC"},"response_raw":"{\"error\":false,\"video_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","response":{"error":false,"video_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","releaseDate":"2023-05-18 19:39:00"}} [18-May-2023 20:44:14 UTC] Encoder:sendFileChunk no need, we could download [18-May-2023 20:44:36 UTC] Duration found: 0:09:17 [18-May-2023 20:44:36 UTC] sendToStreamer to aVideoEncoder.json [18-May-2023 20:44:38 UTC] Encoder::save id=(69) title=(It\'s down to us) [18-May-2023 20:44:38 UTC] Encoder::save id=(69) title=(It\'s down to us) [18-May-2023 20:44:38 UTC] sendToStreamer spectrumimage not set [18-May-2023 20:44:38 UTC] sendToStreamer rawVideo not set [18-May-2023 20:44:38 UTC] sendToStreamer image not set [18-May-2023 20:44:38 UTC] sendToStreamer gifimage not set [18-May-2023 20:44:38 UTC] sendToStreamer webpimage not set [18-May-2023 20:44:38 UTC] sendToStreamer video not set [18-May-2023 20:44:38 UTC] sendToStreamer https://encoder2.ourtube.co.uk/ourtube/aVideoEncoder.json in 2.141 seconds {"error":false,"target":"aVideoEncoder.json","postFields":{"duration":"0:09:17","title":"It\'s down to us","categories_id":0,"format":"mp4","resolution":"720","videoDownloadedLink":"","description":"","downloadURL":"https:\/\/encoder2.ourtube.co.uk\/2\/videos\/avideoTmpFile_69_streamers_id_15_720.mp4","encoderURL":"https:\/\/encoder2.ourtube.co.uk\/2\/","streamers_id":"15","user":"admin","pass":"_user_hash_dWxnRGxQeFNRWG9rRnRtQituZERrcWdCclIvVmxCK0p1VlNadjBPZVV2UXlyKzV2cTM5aXNVUFFsM2ZzQXUrSXdvQlRod24yb0pDaEFveWo0WlhHYlE9PQ==","return_vars":"{\"videos_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","releaseDate":"2023-05-18 19:39:00","videos_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","timezone":"UTC"},"response_raw":"{\"error\":false,\"video_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","response":{"error":false,"video_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","releaseDate":"2023-05-18 19:39:00"}} [18-May-2023 20:44:38 UTC] Encoder:sendFileChunk no need, we could download [18-May-2023 20:44:38 UTC] Encoder::save id=(69) title=(It\'s down to us) [18-May-2023 20:44:38 UTC] getReturn_vars {"videos_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","releaseDate":"2023-05-18 19:39:00"} [18-May-2023 20:44:38 UTC] AVideo-Encoder sending confirmation to objects/aVideoEncoderNotifyIsDone.json.php [18-May-2023 20:44:38 UTC] sendToStreamer to objects/aVideoEncoderNotifyIsDone.json.php [18-May-2023 20:44:39 UTC] Encoder::save id=(69) title=(It\'s down to us) [18-May-2023 20:44:39 UTC] sendToStreamer spectrumimage not set [18-May-2023 20:44:39 UTC] sendToStreamer rawVideo not set [18-May-2023 20:44:39 UTC] sendToStreamer image not set [18-May-2023 20:44:39 UTC] sendToStreamer gifimage not set [18-May-2023 20:44:39 UTC] sendToStreamer webpimage not set [18-May-2023 20:44:39 UTC] sendToStreamer video not set [18-May-2023 20:44:39 UTC] sendToStreamer https://encoder2.ourtube.co.uk/ourtube/objects/aVideoEncoderNotifyIsDone.json.php in 0.749 seconds {"error":false,"target":"objects\/aVideoEncoderNotifyIsDone.json.php","postFields":{"fail":0,"streamers_id":"15","user":"admin","pass":"_user_hash_dWxnRGxQeFNRWG9rRnRtQituZERrcWdCclIvVmxCK0p1VlNadjBPZVV2UXlyKzV2cTM5aXNVUFFsM2ZzQXUrSXdvQlRod24yb0pDaEFveWo0WlhHYlE9PQ==","return_vars":"{\"videos_id\":45696,\"video_id_hash\":\"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=\",\"releaseDate\":\"2023-05-18 19:39:00\"}","releaseDate":"2023-05-18 19:39:00","videos_id":45696,"video_id_hash":"aXZETnRtRjlCTld5RTBhZ3I4YW92ZGFpaTArWDRnT2FHMWZXQWtxQUMyVT0=","timezone":"UTC"},"response_raw":"{\"error\":false,\"video_id\":45696}","response":{"error":false,"video_id":45696}} [18-May-2023 20:44:39 UTC] Encoder::save id=(69) title=(It\'s down to us)
The above was an upload, not import and streamer and encoder is on same site.
the encoder is horrible at times it starts 2 main processes on same file and results in corrupted video's and goes in a loop Especially with files over 1GB it has serious problems ... plus that it has to encode the whole file once again for the error report it takes ages to get a video on the streamer which is absolutely not needed .. i stopped using Avideo completely went to jellyfin as that does what i need it to do and faster without any errors as i am the only one to upload on my video site jellyfin works perfect .... but lately Avideo the streamer and the encoders are terrible this script/project has gone down the drain if you ask me . my major problem i have with it is that it needs root permissions and is totally not acceptable !!!
I have just installed a fresh install using an OVH server 32GB ram and xeon.
Followed this to the letter and the other install guide for Avideo and encoder https://github.com/WWBN/AVideo/wiki/How-to-install-LAMP,-FFMPEG-and-Git-on-a-fresh-Ubuntu-22.x-for-AVideo-Platform-version-11.x-or-newer
Im using mod_php 8.1 and apache.
Broken files on the local encoder again so im sorry to say this but it is clearly broken. So how can 3 new server builds all result with the same identical problem? This worked fine before a few weeks ago.
@para2022
These files work fine that is why i use them cause i know them to have worked on the site. They are files that were uploaded before the problems started. They are on the site working now so it is not the files that are a problem. I will post logs
I mean to be able to help you I need to reproduce the issue. I cannot see it in my encoders , that is why I want you to test in one of my encoders
I do not have a login. Also just because things work on your server doesn't mean this is not an issue for others, which is not an ideal situation. All i know is this problem only reared its ugly head recently as i never had this issue before. Id have thought building a whole new system would eradicate the problem but it does not no matter what i do and the issue is random. Let me give you an example. I will upload the same file 5 files and it will be random how many work. The image attached all those uploads worked then within half hour they are now broken, so why??
Here is the streamer log for the neil oliver that failed:
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: created changed in table=videos id=3 created=2023-05-19 00:42:05 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: setDuration after 0:08:51 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: setDuration before 0:08:51 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: ReceiveImage: duration Line 179 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: ReceiveImage: duration NOT empty 0:08:51 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: ReceiveImage: download https://www.mysite.com/1/videos/3_tmpFile.mp4.webp 1147416 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: ReceiveImage: download https://www.mysite.com/1/videos/3_tmpFile.mp4.gif 413452 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: ReceiveImage: download https://www.mysite.com/1/videos/3_tmpFile.mp4.jpg to path/to/my/myMySQLDatabase/site/videos/video_230519004205_v492a/video_230519004205_v492a.jpg 99.25KB SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[19-May-2023 00:45:13 UTC] AVideoLog::DEBUG: ReceiveImage: videoFilename = [video_230519004205_v492a] destination_local = path/to/my/myMySQLDatabase/site/videos/video_230519004205_v492a/video_230519004205_v492a Encoder receiving post {"image":{"name":"3tmpFile.mp4.jpg","full_path":"\/var\/www\/html\/myMySQLDatabase\/1\/videos\/3_tmpFile.mp4.jpg","type":"application\/octet-stream","tmp_name":"\/tmp\/php9ntMiX","error":0,"size":101637},"gifimage":{"name":"3tmpFile.mp4.gif","full_path":"\/var\/www\/html\/myMySQLDatabase\/1\/videos\/3_tmpFile.mp4.gif","type":"application\/octet-stream","tmp_name":"\/tmp\/php3eoSVR","error":0,"size":413452},"webpimage":{"name":"3tmpFile.mp4.webp","full_path":"\/var\/www\/html\/myMySQLDatabase\/1\/videos\/3_tmpFile.mp4.webp","type":"application\/octet-stream","tmp_name":"\/tmp\/phpVNrKzC","error":0,"size":1147416}} SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
**** **** ***** * * ***** *
Hi,
My streamer site keeps getting broken missing files from the encoders. It happens with both encoders.
When i check the files are there with the correct permissions and owner. I have downloaded the files and they play fine.
I have looked in the database and the entries are how they should be but set to (b) broken. I set it to (a) and it still fails. So the question is what the hell is causing this? Why will they not set back to active if everything is there and how it should be?
No errors in the log but i can see it receives the file and everything looks good but it sets the file as broken for no apparent reason. Some are successful but very few as most are failing now. Cant get my head around it.
This doesn't happen with direct upload.
Used another server and it happens on that one too.
Thanks