Closed guymass closed 1 year ago
When uploading my file everything seems to work fine:
ok strange, after clearing cache few times and also deleting everything in the videos directory of the encoder, I made another test and it worked now. not sure why will test awhile longer and if its just a false alarm I will close this post, sorry.
post is created and working now:
check if you have free space in your disks, also in the /tmp directory
HI, this is the amount of space I have: /dev/sda5 29T 5.9T 22T 22% /, so no issue with space. However now I get a different issue suddenly it will not encode my live stream although it shows it on the video list, but it doesn't show the encoding process on the encoder page when my live stream is done. I see the following errors in console while live stream is running and I cannot view my live stream anymore:
Then it shows the file in the list being encoded but this hangs forever, doesn't finish:
I don't see yet any real error message in my logs. I haven't changed naything in my configuration files. The only thing that was done was me recompiling the FFMPEG again which actually solved my encoding when I upload, but now I see my live stream is not being encoded and saved properly.
isLiveAndIsReadyFromKey the m3u8 file is not present https://alive528.com:8443/live/6463c5bac6883.m3u8 [{"file":"\/var\/www\/html\/AVideo\/plugin\/Live\/on_publish_socket_notification.php","line":38,"function":"isLiveAndIsReadyFromKey","class":"Live","type":"::"}] SCRIPT_NAME: /var/www/html/AVideo/plugin/Live/on_publish_socket_notification.php
Now my only issue is this m3u8 file which I never had an issue until now so I am not sure what changed yet.
Live stream is being encoded eventually even if I don't see the live stream so encoding works.
I will open a separate issue for this as encoding is working and that was this post's issue
I am fully updated, I had an issue where I updated my server I accidentally update and change the working ffmpeg instead of the one I compiled. Now I have reverted back to my previous ffmpeg and the encoding seems to go through, better then before, but still I get a broken file error after encoding is done and post is created. The following errors are seen in my log:
getWebpImage: Image error : ffmpeg -y -ss 00:10:00 -t 3 -i '/var/www/html/AVideo/Encoder/videos/8849_tmpFile.mp4' -vcodec libwebp -lossless 1 -vf fps=10,scale=640:360:force_original_aspect_ratio=decrease,pad=640:360:-1:-1:color=black -q 60 -preset default -loop 0 -an -vsync 0 '/var/www/html/AVideo/Encoder/videos/8849_tmpFile.mp4.webp' ["ffmpeg version N-102348-g011006874c Copyright (c) 2000-2021 the FFmpeg developers"," built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)"," configuration:"," libavutil 57. 0.100 \/ 57. 0.100"," libavcodec 59. 0.100 \/ 59. 0.100"," libavformat 59. 0.100 \/ 59. 0.100"," libavdevice 59. 0.100 \/ 59. 0.100"," libavfilter 8. 0.101 \/ 8. 0.101"," libswscale 6. 0.100 \/ 6. 0.100"," libswresample 4. 0.100 \/ 4. 0.100","Unrecognized option 'lossless'.","Error splitting the argument list: Option not found"]
[01-Oct-2023 23:16:49 Asia/Jerusalem] Encoder::save id=(8849) title=(אליטה) [01-Oct-2023 23:16:49 Asia/Jerusalem] Encoder::save id=(8849) title=(אליטה) [01-Oct-2023 23:16:49 Asia/Jerusalem] progressFileHasVideosWithErrors: we could not detect files on the progress log, we will ignore errors ffmpeg version N-102348-g011006874c Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04) configuration: libavutil 57. 0.100 / 57. 0.100 libavcodec 59. 0.100 / 59. 0.100 libavformat 59. 0.100 / 59. 0.100 libavdevice 59. 0.100 / 59. 0.100 libavfilter 8. 0.101 / 8. 0.101 libswscale 6. 0.100 / 6. 0.100 libswresample 4. 0.100 / 4. 0.100 Unrecognized option 'preset'. Error splitting the argument list: Option not found
[01-Oct-2023 23:16:49 Asia/Jerusalem] PHP Warning: filesize(): stat failed for /var/www/html/AVideo/Encoder/videos/avideoTmpFile_8849_streamers_id_2_SD.mp4 in /var/www/html/AVideo/Encoder/objects/Encoder.php on line 1482 [01-Oct-2023 23:16:49 Asia/Jerusalem] sendFileChunk: file (/var/www/html/AVideo/Encoder/videos/avideoTmpFile_8849_streamers_id_2_SD.mp4) is empty or do not exist [01-Oct-2023 23:16:49 Asia/Jerusalem] Encoder::save id=(8849) title=(אליטה) [01-Oct-2023 23:16:49 Asia/Jerusalem] getReturn_vars {"videos_id":21697,"video_id_hash":"UExPaC91ZzBnM01VYnB5QTdVQlNveGpSUTFkVUVrbGJoRmEvSHIyUEF6Zz0=","releaseDate":"2023-10-01 23:08:00"} [01-Oct-2023 23:16:49 Asia/Jerusalem] AVideo-Encoder sending confirmation to objects/aVideoEncoderNotifyIsDone.json.php [01-Oct-2023 23:16:49 Asia/Jerusalem] sendToStreamer to objects/aVideoEncoderNotifyIsDone.json.php [01-Oct-2023 23:16:54 Asia/Jerusalem] Encoder::save id=(8849) title=(אליטה) [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer spectrumimage not set [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer rawVideo not set [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer image not set [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer gifimage not set [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer webpimage not set [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer video not set [01-Oct-2023 23:16:54 Asia/Jerusalem] sendToStreamer https://alive528.com/objects/aVideoEncoderNotifyIsDone.json.php in 5.218 seconds {"error":false,"target":"objects\/aVideoEncoderNotifyIsDone.json.php","postFields":{"fail":0,"streamers_id":"2","user":"streamer","pass":"_user_hash_QjFieUNwSkgxeDNML0VFNVJCOTBGeWkvVFN3WjRaNmRFMStRdUdLeG83cmUrUXVtQ25yVG9VbHd5OVBodXZGUU1jcXhaWExwQll1YXhLcUowb2QvSEE9PQ==","return_vars":"{\"videos_id\":21697,\"video_id_hash\":\"UExPaC91ZzBnM01VYnB5QTdVQlNveGpSUTFkVUVrbGJoRmEvSHIyUEF6Zz0=\",\"releaseDate\":\"2023-10-01 23:08:00\"}","releaseDate":"2023-10-01 23:08:00","releaseTime":1696190880,"videos_id":21697,"video_id_hash":"UExPaC91ZzBnM01VYnB5QTdVQlNveGpSUTFkVUVrbGJoRmEvSHIyUEF6Zz0=","timezone":"Asia\/Jerusalem"},"response_raw":"{\"error\":false,\"video_id\":21697}","response":{"error":false,"video_id":21697}} [01-Oct-2023 23:16:54 Asia/Jerusalem] Encoder::save id=(8849) title=(אליטה)
These are the sections containing errors, not sure why.