Closed JoshWho closed 5 months ago
It ia a fresh install brand new server. I am sure it is something like wrong port or something needing changed here.
I am also having trouble with the Live. It says it is broadcasting on my OBS but I do not see it pop up. I can pay you a fee to check out my install if needed please @DanielnetoDotCom
there is no firewalls no cloudflare and no cpanel every port is open I do believe and is Ubuntu 22
https://ftjmedia.com:8443/ and http://ftjmedia.com:8080/ are working fine this is a head scratcher
Hi Josh,
I need to ask you to always open separate issues for different problems.
I have just sent you a new update for the test.php
in the socket. It will provide more clues about what might be missing.
Regarding your live setup, you are missing the stats page. Please follow these steps:
cd /usr/local/nginx/html
sudo wget https://raw.githubusercontent.com/WWBN/AVideo/master/plugin/Live/install/stat.xsl
You can see a working sample here: https://demo.avideo.com:8443/stats
Your current stats page shows a forbidden error: https://ftjmedia.com:8443/stats
It is because I only have the server ip allowed to see it.
It is because I only have the server ip allowed to see it.
that may be your issue. try to open and check again. ,
only add more rules once you make sure is all working 100%
I see. I sent you server info and admin login to your email no rush today but if u get time. Please and thanks
I removed the deny you can see it now
I apologize, but I am unable to offer partial installation assistance. In my experience, it is much easier and more efficient to perform a clean installation rather than trying to fix an existing one.
but if you really want a partial installation assistence, you will need to hire me on an hourly basis
However, it might be more cost-effective to hire me for a basic clean installation, which would require you to provide a clean Ubuntu server.
If you still need support with your live installation on github, please open a new issue for that. This thread is specifically for the socket issue.
Hmm Only reason why I wouldn't do that is people already started uploading things. I just need u see if there is just a step missing or something. Everything on the tests says good, I do not get why it would not show on the site when going live but OBS says it is broadcasting. Also when I click change stream key it seems it never changes. I am working with business partners that has funds, if you can think of a way for me to pay for this please let me know and I can get you the money.
[30-Jun-2024 17:28:49 America/Chicago] AVideoLog::WARNING: The plugin [VideoThumbnails::getHeadCode] takes 2.6682 seconds to complete. URL: https://www.mysite.com/view/modeYoutube.php?videos_id=.hUlFijgDpcV1vAAmhUgrrg&channelName=GiuseppeVafanculo IP: 167.99.124.17 [{"file":"\/var\/www\/html\/AVideo\/plugin\/AVideoPlugin.php","line":84,"function":"YPTend","class":"AVideoPlugin","type":"::"},{"file":"\/var\/www\/html\/AVideo\/view\/include\/head.php","line":5,"function":"getHeadCode","class":"AVideoPlugin","type":"::"},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":123,"args":["\/var\/www\/html\/AVideo\/view\/include\/head.php"],"function":"include"},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":232,"function":"getHead","class":"Page","type":"->"},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":243,"function":"getPage","class":"Page","type":"->"},{"file":"\/var\/www\/html\/AVideo\/view\/modeYoutube.php","line":435,"function":"print","class":"Page","type":"->"}] SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:49 America/Chicago] AVideoLog::DEBUG: getDirSize: found 530802232 from - 530802232 path/to/my/streamer/site/videos/video_240630165259_vfe6a/ SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:49 America/Chicago] AVideoLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_240630165259_vfe6a/ SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:49 America/Chicago] AVideoLog::DEBUG: createStprits: created old=[147137] new=[147137] path/to/my/streamer/site/videos/video_240630165259_vfe6a/video_240630165259_vfe6a_thumbsSprit.jpg SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:49 America/Chicago] AVideoLog::DEBUG: createStprits: https://enc.www.mysite.com/getSpiritsFromVideo/aHR0cHM6Ly9mdGptZWRpYS5jb20vdmlkZW9zL3ZpZGVvXzI0MDYzMDE2NTI1OV92ZmU2YS92aWRlb18yNDA2MzAxNjUyNTlfdmZlNmFfNzIwLm1wNA==/150/100/1%3A57%3A22?disableCache=6681dc2111640&sync=0 SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:46 America/Chicago] AVideoLog::DEBUG: createStprits: creating https://www.mysite.com/videos/video_240630165259_vfe6a/video_240630165259_vfe6a_720.mp4 SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:46 America/Chicago] AVideoLog::DEBUG: createStprits: videosURL+token: https://www.mysite.com/videos/video_240630165259_vfe6a/video_240630165259_vfe6a_720.mp4 SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:46 America/Chicago] AVideoLog::DEBUG: createStprits: videosURL: https://www.mysite.com/videos/video_240630165259_vfe6a/video_240630165259_vfe6a_720.mp4 SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:46 America/Chicago] AVideoLog::DEBUG: createStprits: filesize is (147137) (path/to/my/streamer/site/videos/video_240630165259_vfe6a/video_240630165259_vfe6a_thumbsSprit.jpg) SCRIPT_NAME: /view/modeYoutube.php [30-Jun-2024 17:28:45 America/Chicago] AVideoLog::DEBUG: login.json.php user found [joshwho] SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: User:login finish with success users_id= 2 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 IP=167.99.124.17 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: setUserCookieCredentials there is already a cookie and is the same user SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: setUserCookieCredentials there is already a cookie SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: User::find line= 1647 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: User:login finish with success users_id= 2 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 IP=167.99.124.17 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: setUserCookieCredentials there is already a cookie and is the same user SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: setUserCookieCredentials there is already a cookie SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: User::find line= 1647 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: User:login finish with success users_id= 2 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 IP=167.99.124.17 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: setUserCookieCredentials credentials set SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: User::find line= 1647 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:45 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/login.json.php [30-Jun-2024 22:28:42 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Live/stats.json.php [30-Jun-2024 22:28:42 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/UserNotifications/getNotifications.json.php [30-Jun-2024 22:28:42 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/YPTSocket/getWebSocket.json.php [30-Jun-2024 17:28:42 America/Chicago] AVideoLog::DEBUG: getCaptchaImage: XEiPc - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: ie4t2vdb30g47017e42uvf56a6 SCRIPT_NAME: /objects/getCaptcha.php [30-Jun-2024 22:28:42 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/getCaptcha.php [30-Jun-2024 22:28:40 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /view/user.php [30-Jun-2024 22:28:40 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Chat2/getRoom.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/YPTSocket/getWebSocket.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Chat2/getRoom.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: [{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":15,"function":"_session_start","args":[]},{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":10,"function":"includeLangFile","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php","line":4,"args":["\/var\/www\/html\/AVideo\/locale\/function.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/user.php","line":14,"args":["\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/configuration.php","line":7,"args":["\/var\/www\/html\/AVideo\/objects\/user.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/include_config.php","line":134,"args":["\/var\/www\/html\/AVideo\/objects\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/videos\/configuration.php","line":48,"args":["\/var\/www\/html\/AVideo\/objects\/include_config.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Chat2\/getRoom.json.php(18) : eval()'d code(1) : eval()'d code","line":6,"args":["\/var\/www\/html\/AVideo\/videos\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Chat2\/getRoom.json.php(18) : eval()'d code","line":1,"function":"eval"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Chat2\/getRoom.json.php","line":18,"function":"eval"}] SCRIPT_NAME: /plugin/Chat2/getRoom.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: session_start takes 1.7077398300171 seconds to open SCRIPT_NAME: /plugin/Chat2/getRoom.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Chat2/getChatTotalNew.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: [{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":15,"function":"_session_start","args":[]},{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":10,"function":"includeLangFile","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php","line":4,"args":["\/var\/www\/html\/AVideo\/locale\/function.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/user.php","line":14,"args":["\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/configuration.php","line":7,"args":["\/var\/www\/html\/AVideo\/objects\/user.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/include_config.php","line":134,"args":["\/var\/www\/html\/AVideo\/objects\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/videos\/configuration.php","line":48,"args":["\/var\/www\/html\/AVideo\/objects\/include_config.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Chat2\/getChatTotalNew.json.php(18) : eval()'d code(1) : eval()'d code","line":5,"args":["\/var\/www\/html\/AVideo\/videos\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Chat2\/getChatTotalNew.json.php(18) : eval()'d code","line":1,"function":"eval"},{"file":"\/var\/www\/html\/AVideo\/plugin\/Chat2\/getChatTotalNew.json.php","line":18,"function":"eval"}] SCRIPT_NAME: /plugin/Chat2/getChatTotalNew.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: session_start takes 1.5342929363251 seconds to open SCRIPT_NAME: /plugin/Chat2/getChatTotalNew.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/getTimes.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: [{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":15,"function":"_session_start","args":[]},{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":10,"function":"includeLangFile","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php","line":4,"args":["\/var\/www\/html\/AVideo\/locale\/function.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/user.php","line":14,"args":["\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/configuration.php","line":7,"args":["\/var\/www\/html\/AVideo\/objects\/user.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/include_config.php","line":134,"args":["\/var\/www\/html\/AVideo\/objects\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/videos\/configuration.php","line":48,"args":["\/var\/www\/html\/AVideo\/objects\/include_config.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/getTimes.json.php","line":6,"args":["\/var\/www\/html\/AVideo\/videos\/configuration.php"],"function":"require_once"}] SCRIPT_NAME: /objects/getTimes.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: session_start takes 1.3676869869232 seconds to open SCRIPT_NAME: /objects/getTimes.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/playlists.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: [{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":15,"function":"_session_start","args":[]},{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":10,"function":"includeLangFile","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php","line":4,"args":["\/var\/www\/html\/AVideo\/locale\/function.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/user.php","line":14,"args":["\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/configuration.php","line":7,"args":["\/var\/www\/html\/AVideo\/objects\/user.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/include_config.php","line":134,"args":["\/var\/www\/html\/AVideo\/objects\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/videos\/configuration.php","line":48,"args":["\/var\/www\/html\/AVideo\/objects\/include_config.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/playlists.json.php","line":4,"args":["\/var\/www\/html\/AVideo\/videos\/configuration.php"],"function":"require_once"}] SCRIPT_NAME: /objects/playlists.json.php [30-Jun-2024 22:28:39 UTC] AVideoLog::PERFORMANCE: session_start takes 1.5918140411377 seconds to open SCRIPT_NAME: /objects/playlists.json.php [30-Jun-2024 22:28:38 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php [30-Jun-2024 22:28:38 UTC] AVideoLog::PERFORMANCE: [{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":15,"function":"_session_start","args":[]},{"file":"\/var\/www\/html\/AVideo\/locale\/function.php","line":10,"function":"includeLangFile","args":[]},{"file":"\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php","line":4,"args":["\/var\/www\/html\/AVideo\/locale\/function.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/user.php","line":14,"args":["\/var\/www\/html\/AVideo\/plugin\/Plugin.abstract.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/configuration.php","line":7,"args":["\/var\/www\/html\/AVideo\/objects\/user.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/objects\/include_config.php","line":134,"args":["\/var\/www\/html\/AVideo\/objects\/configuration.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/videos\/configuration.php","line":48,"args":["\/var\/www\/html\/AVideo\/objects\/include_config.php"],"function":"require_once"},{"file":"\/var\/www\/html\/AVideo\/plugin\/PlayerSkins\/mediaSession.json.php","line":4,"args":["\/var\/www\/html\/AVideo\/videos\/configuration.php"],"function":"require_once"}] SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php [30-Jun-2024 22:28:38 UTC] AVideoLog::PERFORMANCE: session_start takes 1.767009973526 seconds to open SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php [30-Jun-2024 22:28:37 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /view/videosList.php [30-Jun-2024 22:28:37 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/comments.json.php [30-Jun-2024 22:28:37 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Live/stats.json.php [30-Jun-2024 22:28:36 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/YPTSocket/getWebSocket.json.php [30-Jun-2024 22:28:36 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Chat2/index.php [30-Jun-2024 22:28:36 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/UserNotifications/getNotifications.json.php [30-Jun-2024 22:28:36 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /objects/videoAddViewCount.json.php [30-Jun-2024 22:28:35 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /view/xsendfile.php [30-Jun-2024 22:28:35 UTC] AVideoLog::DEBUG: getUserCookieCredentials ip does not match 98.46.68.100 SCRIPT_NAME: /plugin/Chat2/index.php
you still did not open a new issue for the live. but here is your problem
check this
should it not be the streamer site url?
Just to be clear here, I need to change it back to localhost?
This is how I got it:
user www-data;
worker_processes 1;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
buflen 1000ms;
chunk_size 4096;
ping_timeout 30s;
### Use case option (max_streams; default is 32 )
#max_streams 10;
allow play all;
#creates our "live" full-resolution HLS videostream from our incoming encoder stream and tells where to put the HLS video manifest and video fragments
application live {
allow play all;
live on;
hls on;
hls_nested on;
hls_path /HLS/live;
hls_playlist_length 60m;
hls_fragment 4s;
drop_idle_publisher 30s;
sync 500ms;
#Experimental. Force dropped stream, or ended stream from being watched. (idle_streams)
#idle_streams off;
on_publish http://localhost/AVideo/plugin/Live/on_publish.php;
on_publish_done http://localhost/AVideo/plugin/Live/on_publish_done.php;
on_play http://localhost/AVideo/plugin/Live/on_play.php;
on_record_done http://localhost/AVideo/plugin/Live/on_record_done.php;
recorder video{
# record all; # Use this line if you NOT want to use the controls
record all manual;
record_path /var/www/tmp;
record_notify on;
#record_max_size 12582912KM;
#will produce files of the form yourUserKey-24-Apr-13-18:23:38.flv
record_suffix -%d-%b-%y-%T.flv;
}
#exec ffmpeg -re -i rtmp://localhost/live/$name -c:v libx264 -preset veryfast -c:a copy -f hls -hls_time 5 -hls_list_size 0 -f flv rtmp://localhost/adaptive/$name_hi;
#exec ffmpeg -re -i rtmp://localhost/live/$name
# -c:v libx264 -vf scale=-2:240 -r 20 -g 40 -keyint_min 40 -sc_threshold 0 -bf 3 -b_strategy 2 -b:v 400k -maxrate 700k -bufsize 1400k -c:a aac -strict -2 -b:a 96k -f flv rtmp://localhost/adaptive/$name_low
# -c:v libx264 -vf scale=-2:480 -r 30 -g 60 -keyint_min 48 -sc_threshold 0 -bf 3 -b_strategy 2 -b:v 1200k -maxrate 2100k -bufsize 4200k -c:a aac -strict -2 -b:a 128k -f flv rtmp://localhost/adaptive/$name_mid
# -c:v libx264 -vf scale=-2:720 -r 30 -g 60 -keyint_min 48 -sc_threshold 0 -bf 3 -b_strategy 2 -b:v 2400k -maxrate 3000k -bufsize 6000k -c:a aac -strict -2 -b:a 128k -f flv rtmp://localhost/adaptive/$name_hi;
#recorder video {
# record all manual;
# record_path /var/www/tmp;
# record_notify on;
# record_max_size 2048M;
# record_suffix -%d-%b-%y-%T.flv;
###If live-stream is over 30FPS and you want to limit it to 30FPS recording to light the encoding task #record_max_frames 30;
# ## record_max_frames 30;
#}
### Record Audio Separately ( For podcast )
#recorder audio {
# record audio;
# record_path /var/www/tmp;
# record_max_size 1024M;
# record_suffix -%d-%b-%y-%T.mp3;
#}
}
#application adaptive {
# live on;
# hls on;
# hls_path /HLS/live;
# hls_nested on;
# hls_playlist_length 10m;
# allow play all;
# allow publish 127.0.0.1;
# deny publish all;
# hls_variant _hi BANDWIDTH=264000,RESOLUTION=1280x720; # this is for line 34 only, do not uncomment it
# hls_variant _low BANDWIDTH=900000;
# hls_variant _mid BANDWIDTH=2400000;
# hls_variant _hi BANDWIDTH=3500000;
#}
}
}
http {
include mime.types;
default_type application/octet-stream;
server {
#listen 88443 ssl;
#listen [::]:88443 ssl;
#include /usr/local/nginx/snippets/self-signed.conf;
#include /usr/local/nginx/snippets/ssl-params.conf;
listen 8080;
server_name localhost fjtmedia.com;
#creates the http-location for our full-resolution (desktop) HLS stream - "http://my-ip/live/my-stream-key/index.m3u8"
location /live {
expires 60;
add_header 'Cache-Control' 'public';
location ~ \.m3u8$ {
expires -1;
# Disable cache
add_header 'Cache-Control' 'no-cache';
# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length';
}
# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length';
# allow CORS preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
types {
application/vnd.apple.mpegurl m3u8;
}
alias /HLS/live;
}
#allows us to see how stats on viewers on our Nginx site using a URL like: "http://my-ip/stats"
#location /stats {
# stub_status;
#}
location /stat {
allow 127.0.0.1;
allow 185.75.21.101;
deny all;
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
root html;
}
location /control {
# replace this with the IP of your AVideo site
allow 127.0.0.1;
allow 185.75.21.101;
deny all;
rtmp_control all;
}
#allows us to host some webpages which can show our videos: "http://my-ip/my-page.html"
location / {
root html;
index index.html index.htm;
}
listen 8443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/ftjmedia.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/ftjmedia.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
#location ~ \.php$ {
# include /etc/nginx/snippets/fastcgi-php.conf;
# fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
#}
}
}
You need to make sure it uses http and does not redirect
Is above look correct?
Looks correct but if still redirecting the on_publish you need to find what is redirecting
Now OBS fails to connect with that setting before it was broadcasting.
So you need to investigate your on_publish url what is wrong
What would cause this http://185.75.21.101/AVideo/plugin/Live/on_publish.php
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish denied {"error":true,"liveTransmitionHistory_id":0} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
That file gives a 401 error but it is there so I do not get what is going on here
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: isReconnection=[false,false,"",1] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
WHERE 1=1 AND (lth.live_servers_id = 1 ) AND (lth.modified_php_time >= 1719792568) OR (lth.modified >= DATE_SUB(NOW(), INTERVAL 10 MINUTE) OR lth.finished IS NULL) ORDER BY (lth.key
= '') DESC, lth.created DESC LIMIT 1 SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
LEFT JOIN live_transmitions lt ON lth.users_id = lt.users_id
FROM live_transmitions_history lth
lt.categories_id
lt.id as live_transmitions_id,
lth.*,
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: LiveTransmitionHistory::getLatest not found (, 1, 10, 0, 0) SELECT
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_str: {"yptDeviceID":"635f6a52-6745-4a93-a740-7bf022137394"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_url: {"path":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish php://input SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish GET: {"yptDeviceID":"635f6a52-6745-4a93-a740-7bf022137394"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
[30-Jun-2024 19:19:28 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish POST: {"redirectUri":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
If you access the URL http://localhost/AVideo/plugin/Live/on_publish.php
(which could also be your IP address or domain name, depending on your on_publish
parameter) directly in your browser, an HTTP error code 401 is expected. This means you did not send the correct credentials. Your RTMP publisher, like OBS, will send the correct credentials to NGINX, which will then forward them to the on_publish
script.
on_publish
is correctly configured, when you use the RTMP publisher, you will see some lines in your AVideo logs with the string:AVideoLog::DEBUG: NGINX ON Publish
How can I test that in command terminal?
you cannot, use OBS and check your logs
if there is no "AVideoLog::DEBUG: NGINX ON Publish" records in your logs, that means the on_publish, have never reaches your server.
[30-Jun-2024 20:20:26 America/Chicago] AVideoLog::ERROR: Time: 3.321s | Limit: 0.2s | Location: path/to/my/streamer/site/view/iframe.php Line 137 [navbar.php] IP=167.99.124.17 backtrace=[{"file":"\/var\/www\/html\/AVideo\/view\/include\/navbar.php","line":137,"function":"TimeLogEnd","args":["navbar.php",137,0.2]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":162,"args":["\/var\/www\/html\/AVideo\/view\/include\/navbar.php"],"function":"include"},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":205,"function":"getNavBar","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":233,"function":"getContent","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":243,"function":"getPage","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/view\/iframe.php","line":66,"function":"print","class":"Page","object":{},"type":"->","args":[]}] SCRIPT_NAME: /view/iframe.php
[30-Jun-2024 20:20:15 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish denied {"error":true,"liveTransmitionHistory_id":0} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
[30-Jun-2024 20:20:15 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish deciding ... SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
That is what I get when I try to go live
Something is missing in your logs, you must have something like
NGINX ON Publish POST...
NGINX ON Publish GET...
NGINX ON Publish php://input ...
Double check if you have the right rtmp url and keys
[30-Jun-2024 20:32:39 America/Chicago] AVideoLog::ERROR: Time: 2.870s | Limit: 0.2s | Location: path/to/my/streamer/site/view/iframe.php Line 137 [navbar.php] IP=167.99.124.17 backtrace=[{"file":"\/var\/www\/html\/AVideo\/view\/include\/navbar.php","line":137,"function":"TimeLogEnd","args":["navbar.php",137,0.2]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":162,"args":["\/var\/www\/html\/AVideo\/view\/include\/navbar.php"],"function":"include"},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":205,"function":"getNavBar","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":233,"function":"getContent","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/objects\/Page.php","line":243,"function":"getPage","class":"Page","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/AVideo\/view\/iframe.php","line":66,"function":"print","class":"Page","object":{},"type":"->","args":[]}] SCRIPT_NAME: /view/iframe.php
[30-Jun-2024 20:32:29 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish denied {"error":true,"liveTransmitionHistory_id":0} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
😲
Still incomplete
Double check if you have the right rtmp url and keys
Use the following command to monitor the AVideo logs in real-time and filter for NGINX ON Publish
entries:
tail -f /var/www/html/AVideo/videos/avideo.log | grep -i "NGINX ON Publish"
Use OBS again
Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish POST: {"app":"live","flashver":"FMLE\/3.0 (compatible; FMSc\/1.0)","swfurl":"rtmp:\/\/ftjmedia.com\/live?s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v","tcurl":"rtmp:\/\/ftjmedia.com\/live?s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v","pageurl":"","addr":"167.99.124.17","clientid":"21","call":"publish","name":"6681f537b3081-1","type":"live","redirectUri":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish GET: [] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish php://inputapp=live&flashver=FMLE/3.0%20(compatible%3B%20FMSc/1.0)&swfurl=rtmp://ftjmedia.com/live%3Fs=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09%26webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v&tcurl=rtmp://ftjmedia.com/live%3Fs=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09%26webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v&pageurl=&addr=167.99.124.17&clientid=21&call=publish&name=6681f537b3081-1&type=live SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish encryption token error livetransmition error: [6681f537b3081] false SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_url: {"scheme":"rtmp","host":"ftjmedia.com","path":"\/live","query":"s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_str: {"s":"L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09","webSiteRootURL":"aHR0cHM6Ly9mdGptZWRpYS5jb20v"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish error, Password not found SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish deciding ... SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish denied {"error":true,"liveTransmitionHistory_id":0} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish POST: {"app":"live","flashver":"FMLE\/3.0 (compatible; FMSc\/1.0)","swfurl":"rtmp:\/\/ftjmedia.com\/live?s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v","tcurl":"rtmp:\/\/ftjmedia.com\/live?s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v","pageurl":"","addr":"167.99.124.17","clientid":"23","call":"publish","name":"6681f537b3081-1","type":"live","redirectUri":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish GET: [] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish php://inputapp=live&flashver=FMLE/3.0%20(compatible%3B%20FMSc/1.0)&swfurl=rtmp://ftjmedia.com/live%3Fs=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09%26webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v&tcurl=rtmp://ftjmedia.com/live%3Fs=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09%26webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v&pageurl=&addr=167.99.124.17&clientid=23&call=publish&name=6681f537b3081-1&type=live SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish encryption token error livetransmition error: [6681f537b3081] false SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_url: {"scheme":"rtmp","host":"ftjmedia.com","path":"\/live","query":"s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish parse_str: {"s":"L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09","webSiteRootURL":"aHR0cHM6Ly9mdGptZWRpYS5jb20v"} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish error, Password not found SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish deciding ... SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:36:00 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish denied {"error":true,"liveTransmitionHistory_id":0} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish POST: {"app":"live","flashver":"FMLE\/3.0 (compatible; FMSc\/1.0)","swfurl":"rtmp:\/\/ftjmedia.com\/live?s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v","tcurl":"rtmp:\/\/ftjmedia.com\/live?s=L0phWlNkVmxaNXFCZDdHeGlMOUpWdz09&webSiteRootURL=aHR0cHM6Ly9mdGptZWRpYS5jb20v","pageurl":"","addr":"167.99.124.17","clientid":"21","call":"publish","name":"6681f537b3081-1","type":"live","redirectUri":""} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America/Chicago] AVideoLog::DEBUG: NGINX ON Publish GET: [] SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php [30-Jun-2024 20:35:57 America
If we can't figure this out please tell me a price and I will have this server wiped and let you install the whole thing if that is what needed.
are you sure you are grabing the right credentials?
what user are you using to livestream?
is this key correct? 6681f537b3081
I am pretty sure you are grabbing the credentials and keys wrong
try logoff and login again
I tested from the meeting and it works fine
just sent to email the live credentials for that account
I do not have OBS here and I cannot test it, I will not have access to OBS for 2 weeks, I am traveling.
Logoff and login again, and try to grab the credentials again.
Just tried logging off logging back in and this is what it gave me. [30-Jun-2024 21:06:36 America/Chicago] AVideoLog::SECURITY: NGINX ON Publish denied {"error":true,"liveTransmitionHistory_id":0} SCRIPT_NAME: /AVideo/plugin/Live/on_publish.php
I just checked your user and as I told you many times in this thread you grabbed the wrong credentials (Key and RTMP URL).
I do not know why you didnt listner to me
sorry but this waste time.
It says broadcasting but I do not see it on the homepage or on live page https://ftjmedia.com/live
Ok that one is working. Why would my JoshWho Account not work? It won't even let me change the key everytime I click change key in live it stays the same.
Try to clear the cache, it supposed reset, if stays the same please check the avideo.log
Try to clear the cache, it supposed reset, if stays the same please check the avideo.log
Thank you. I will try that today
No clue why this won't work:
root@server:~# php /var/www/html/AVideo/plugin/YPTSocket/test.php [2024-06-30 00:46:13] Starting socket test [2024-06-30 00:46:13] Testing connection with [0]: ws://localhost:2053 on 2024/06/30 00:46:13 [2024-06-30 00:46:13] Testing connection with [1]: wss://localhost:2053 on 2024/06/30 00:46:13 [2024-06-30 00:46:13] Testing connection with [2]: ws://127.0.0.1:2053 on 2024/06/30 00:46:13 [2024-06-30 00:46:13] Testing connection with [3]: wss://127.0.0.1:2053 on 2024/06/30 00:46:13 [2024-06-30 00:46:13] Testing connection with [4]: ws://ftjmedia.com:2053 on 2024/06/30 00:46:13 [2024-06-30 00:46:13] Testing connection with [5]: wss://ftjmedia.com:2053 on 2024/06/30 00:46:13 [2024-06-30 00:46:13] NOT SECURE CONNECTION CONNECTION FAIL ws://127.0.0.1:2053 Connection to tcp://127.0.0.1:2053 failed: Connection refused (ECONNREFUSED) [2024-06-30 00:46:13] SECURE CONNECTION CONNECTION FAIL wss://127.0.0.1:2053 Connection to tls://127.0.0.1:2053 failed: Connection refused (ECONNREFUSED) [2024-06-30 00:46:13] NOT SECURE CONNECTION CONNECTION FAIL ws://localhost:2053 Connection to tcp://localhost:2053 failed: Last error for IPv4: Connection to tcp://127.0.0.1:2053 failed: Connection refused (ECONNREFUSED). Previous error for IPv6: DNS query for localhost (AAAA) did not return a valid answer (NOERROR / NODATA) [2024-06-30 00:46:13] SECURE CONNECTION CONNECTION FAIL wss://localhost:2053 Connection to tls://localhost:2053 failed: Last error for IPv4: Connection to tcp://127.0.0.1:2053 failed: Connection refused (ECONNREFUSED). Previous error for IPv6: DNS query for localhost (AAAA) did not return a valid answer (NOERROR / NODATA) [2024-06-30 00:46:13] NOT SECURE CONNECTION CONNECTION FAIL ws://ftjmedia.com:2053 Connection to tcp://ftjmedia.com:2053 failed: Last error for IPv4: Connection to tcp://185.75.21.101:2053 failed: Connection refused (ECONNREFUSED). Previous error for IPv6: DNS query for ftjmedia.com (AAAA) did not return a valid answer (NOERROR / NODATA) [2024-06-30 00:46:13] SECURE CONNECTION CONNECTION FAIL wss://ftjmedia.com:2053 Connection to tls://ftjmedia.com:2053 failed: Last error for IPv4: Connection to tcp://185.75.21.101:2053 failed: Connection refused (ECONNREFUSED). Previous error for IPv6: DNS query for ftjmedia.com (AAAA) did not return a valid answer (NOERROR / NODATA) [2024-06-30 00:46:13] We found 0 possible configurations:
root@server:~#