WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.89k stars 972 forks source link

cant get live stream working #8925

Open para2022 opened 5 months ago

para2022 commented 5 months ago

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

DanielnetoDotCom commented 5 months ago

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

para2022 commented 5 months ago

yes it fails to connect

para2022 commented 5 months ago

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.

DanielnetoDotCom commented 5 months ago

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

para2022 commented 5 months ago

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

DanielnetoDotCom commented 5 months ago

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

para2022 commented 5 months ago

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;
para2022 commented 5 months ago

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

DanielnetoDotCom commented 5 months ago

https://github.com/WWBN/AVideo/issues/8829#issuecomment-1938706088

https://github.com/WWBN/AVideo/issues/5169#issuecomment-844103239

para2022 commented 5 months ago

Thanks dan. Solved and working now :)

para2022 commented 5 months ago

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

live stream title (1)

DanielnetoDotCom commented 5 months ago

https://github.com/WWBN/AVideo/issues/8914

para2022 commented 5 months ago

Thanks that makes sense