WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP

Home Page:https://avideo.tube/AVideo_OpenSource

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant get live stream working

para2022 opened this issue · comments

Any idea what im missing here dan?

I installed using the usual installation. Installed ssl to nginx. Im running on port 444. Port is not blocked. Stats are working on port 8080 and 444. SSL is working on streamer site. I get the following error in nginx log when trying to connect with obs.

2024/03/25 15:12:47 [info] 87591#0: *162 connect: app='live' args='s=em00alE1UFBOVnNkb0lodXhkeGp4QT09&webSiteRootURL=aHR0cHM6Ly9vdXJ0dWJlLmNvLnVrLw' flashver='FMLE/3.0 (compatible; FMSc/1.0)' swf_url='rtmp://ourtube.co.uk/live?s=em00alE1UFBOVnNkb0lodXhkeGp4QT09&webSiteRootURL=aHR0cHM6Ly9vdXJ0dWJlLmNvLnVrLw' tc_url='rtmp://ourtube.co.uk/live?s=em00alE1UFBOVnNkb0lodXhkeGp4QT09&webSiteRootURL=aHR0cHM6Ly9vdXJ0dWJlLmNvLnVrLw' page_url='' acodecs=0 vcodecs=0 object_encoding=0, client: 51.187.187.209, server: 0.0.0.0:1935
2024/03/25 15:12:47 [info] 87591#0: *162 createStream, client: 51.187.187.209, server: 0.0.0.0:1935
2024/03/25 15:12:47 [info] 87591#0: *162 publish: name='66018517e3239-1' args='' type=live silent=0, client: 51.187.187.209, server: 0.0.0.0:1935
2024/03/25 15:12:47 [info] 87591#0: *162 notify: publish 'localhost/plugin/Live/on_publish.php', client: 51.187.187.209, server: 0.0.0.0:1935
2024/03/25 15:12:47 [info] 87591#0: *162 disconnect, client: 51.187.187.209, server: 0.0.0.0:1935
2024/03/25 15:12:47 [info] 87591#0: *162 deleteStream, client: 51.187.187.209, server: 0.0.0.0:1935
2024/03/25 15:13:01 [info] 87591#0: *164 client closed connection while SSL handshaking, client: 127.0.0.1, server: 0.0.0.0:444
2024/03/25 15:13:01 [info] 87591#0: *165 client closed connection while waiting for request, client: 38.242.218.152, server: 0.0.0.0:444

I do not see any issue, but ara you using OBS?

yes it fails to connect

Could not access the specified channel or stream key, please double-check your stream key. If it is correct, there may be a problem connecting to the server.

check your AVideo log, maybe some info regarding on_publish.php'

Nothing at all in avideo log other than Total: 2315 errors needs your attention of those errors i reported earlier.

So this have never reach your server

2024/03/25 15:12:47 [info] 87591#0: *162 notify: publish 'localhost/plugin/Live/on_publish.php', client: 51.187.187.209, server: 0.0.0.0:1935

your on_publish parameter in the nginx.conf is probably wrong

These are my publish lines in nginx:

                        on_publish http://localhost/plugin/Live/on_publish.php;
                        on_publish_done http://localhost/plugin/Live/on_publish_done.php;
                        on_play http://localhost/plugin/Live/on_play.php;
                        on_record_done http://localhost/plugin/Live/on_record_done.php;

its ok ive replaced localhost with my domain name as that was the likely cause. so now it can connect but i get this and nothing shows on the site:

Screenshot 2024-03-25 at 16 54 00

Thanks dan. Solved and working now :)

Any reason why the live stream shows the title with a number after it? like:

live stream title (1)

Thanks that makes sense