WWBN / AVideo

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

Restream problem with facebook #9112

Open mrgodgiven opened 2 months ago

mrgodgiven commented 2 months ago

Greetings Mr @DanielnetoDotCom the fscebook restreaming link does not work for a while now. When I add facebook the rtmp link or url does not appear and also the restreaming soes not connect except to youtube alone.

mrgodgiven commented 2 months ago

The Rtmp url is not showing and it's not working. image

mrgodgiven commented 2 months ago

Twich is showing the rtmp url and it's fine. image

DanielnetoDotCom commented 2 months ago

Please check your logs.

I am pretty sure it is because facebook requires RTMPS not RTMP

To restream a video to RTMPS (RTMP over SSL/TLS) using FFmpeg, you need to ensure that your FFmpeg build supports RTMPS. This support is typically available in FFmpeg versions compiled with librtmp or openssl for SSL/TLS support.

Requirements:

  1. FFmpeg Build with SSL/TLS Support: Ensure your FFmpeg build includes support for SSL/TLS. This is usually provided by including librtmp or openssl.
  2. SSL/TLS Library: You need openssl or gnutls to provide the SSL/TLS functionality.

Check if FFmpeg Supports RTMPS:

Run the following command to check if your FFmpeg supports librtmp or openssl:

   ffmpeg -version

Look for lines like:

   configuration: --enable-librtmp --enable-openssl
mrgodgiven commented 2 months ago

this one is not available --enable-librtmp there is only this one --enable-openssl

On Mon, Jun 3, 2024 at 7:30 PM Daniel Neto @.***> wrote:

Please check your logs.

I am pretty sure it is because facebook requires RTMPS not RTMP

To restream a video to RTMPS (RTMP over SSL/TLS) using FFmpeg, you need to ensure that your FFmpeg build supports RTMPS. This support is typically available in FFmpeg versions compiled with librtmp or openssl for SSL/TLS support. Requirements:

  1. FFmpeg Build with SSL/TLS Support: Ensure your FFmpeg build includes support for SSL/TLS. This is usually provided by including librtmp or openssl.
  2. SSL/TLS Library: You need openssl or gnutls to provide the SSL/TLS functionality.

Check if FFmpeg Supports RTMPS:

Run the following command to check if your FFmpeg supports librtmp or openssl:

ffmpeg -version

Look for lines like:

configuration: --enable-librtmp --enable-openssl

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9112#issuecomment-2145760673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMSFZYFZMY2ZQYIEQMQHKLZFSR4PAVCNFSM6AAAAABIWKVWHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVG43DANRXGM . You are receiving this because you authored the thread.Message ID: @.***>

DanielnetoDotCom commented 2 months ago

You still need to look into your logs, but this is my ffmpeg that works with Facebook

~$ ffmpeg -version
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100
mrgodgiven commented 2 months ago

mine looks like this

:~# ffmpeg -version ffmpeg version N-115388-ge9197db4f7-patrickz Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13 (Ubuntu 13.2.0-23ubuntu4) configuration: --enable-libwebp --disable-shared --enable-static --enable-pthrea ds --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-li

                  bfreetype --enable-libmp3lame --enable-libopus

--enable-libvorbis --enable-libvp x --enable-libx264 --enable-filters --enable-openssl --enable-runtime-cpudetect

--extra-version=patrickz libavutil 59. 20.100 / 59. 20.100 libavcodec 61. 5.104 / 61. 5.104 libavformat 61. 3.104 / 61. 3.104 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.102 / 10. 2.102 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100

On Tue, Jun 4, 2024 at 2:41 PM Daniel Neto @.***> wrote:

You still need to look into your logs, but this is my ffmpeg that works with Facebook

~$ ffmpeg -version ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9112#issuecomment-2147437894, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMSFZ66NQ5HEKBDFOFWRP3ZFWYXBAVCNFSM6AAAAABIWKVWHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGQZTOOBZGQ . You are receiving this because you authored the thread.Message ID: @.***>

mrgodgiven commented 2 months ago

How do I fix it

DanielnetoDotCom commented 2 months ago

Google and try to install ffmpeg with the same options as I have

but again you still may want to check the logs

mrgodgiven commented 2 months ago

my logs

plugin/Live/controlRecording.php [04-Jun-2024 17:01:52 Africa/Johannesburg] AVideoLog::DEBUG: Live:controlRecording [{"file":"\/var\/www\/html\/livefaces\/plugin\/Live\/Live.php","line":1097,"function":"controlRecording","class":"Live","type":"::"},{"file":"\/var\/www\/html\/livefaces\/plugin\/Live\/Live.php","line":1097,"function":"controlRecording","class":"Live","type":"::"},{"file":"\/var\/www\/html\/livefaces\/plugin\/Live\/Live.php","line":1097,"function":"controlRecording","class":"Live","type":"::"},{"file":"\/var\/www\/html\/livefaces\/plugin\/Live\/controlRecording.php","line":15,"function":"controlRecording","class":"Live","type":"::"}] SCRIPT_NAME: /var/www/html/livefaces/plugin/Live/controlRecording.php [04-Jun-2024 17:01:57 Africa/Johannesburg] Control.json.php start {"command":"record_start","app":"live","name":"619425b6d754f-1","token":"QlhMR3h2Vko2NHdxZS90OXZjaDhFWURVRHBuUFNaTUVDM05IZEF2VEN4a1I5ZnFzS2ZpcUtjLzc0YmloYWcyenZ4QnBvSUttNzl2cnoyWXIxTHRFZ1NPZWF6a2tGdHdlRnRDbWN2UlNBN0haNFBESlcxdU9sSDNCSHhQWDVydUhDWGRqMk9zRWJJL2VCYU8yeHZsakZRPT0="} [04-Jun-2024 17:01:57 Africa/Johannesburg] Control.json.php verifying token https://livefaces.live/plugin/Live/verifyToken.json.php?token=QlhMR3h2Vko2NHdxZS90OXZjaDhFWURVRHBuUFNaTUVDM05IZEF2VEN4a1I5ZnFzS2ZpcUtjLzc0YmloYWcyenZ4QnBvSUttNzl2cnoyWXIxTHRFZ1NPZWF6a2tGdHdlRnRDbWN2UlNBN0haNFBESlcxdU9sSDNCSHhQWDVydUhDWGRqMk9zRWJJL2VCYU8yeHZsakZRPT0= [04-Jun-2024 15:01:57 UTC] AVideoLog::DEBUG: To query IPV6 you must install php-gmp (apt-get install php-gmp) SCRIPT_NAME: /plugin/Live/verifyToken.json.php [04-Jun-2024 17:01:57 Africa/Johannesburg] AVideoLog::DEBUG: Live::verifyToken.json.php {"salt":"6651567e65635","timezone":"Africa\/Johannesburg","time":1717513317,"timeout":1717513377} SCRIPT_NAME: /plugin/Live/verifyToken.json.php [04-Jun-2024 17:01:57 Africa/Johannesburg] Control.json.php verification respond content {"error":false,"msg":"","token":"QlhMR3h2Vko2NHdxZS90OXZjaDhFWURVRHBuUFNaTUVDM05IZEF2VEN4a1I5ZnFzS2ZpcUtjLzc0YmloYWcyenZ4QnBvSUttNzl2cnoyWXIxTHRFZ1NPZWF6a2tGdHdlRnRDbWN2UlNBN0haNFBESlcxdU9sSDNCSHhQWDVydUhDWGRqMk9zRWJJL2VCYU8yeHZsakZRPT0=","users_id":0,"key":"_1717513317","RTMPLinkWithOutKey":""} [04-Jun-2024 17:01:57 Africa/Johannesburg] Control.json.php token is correct [04-Jun-2024 17:01:57 Africa/Johannesburg] Control.json.php finish {"error":false,"msg":"","streamerURL":"https:\/\/livefaces.live\/","token":"QlhMR3h2Vko2NHdxZS90OXZjaDhFWURVRHBuUFNaTUVDM05IZEF2VEN4a1I5ZnFzS2ZpcUtjLzc0YmloYWcyenZ4QnBvSUttNzl2cnoyWXIxTHRFZ1NPZWF6a2tGdHdlRnRDbWN2UlNBN0haNFBESlcxdU9sSDNCSHhQWDVydUhDWGRqMk9zRWJJL2VCYU8yeHZsakZRPT0=","command":"record_start","app":"live","name":"619425b6d754f-1","response":false,"requestedURL":"http:\/\/localhost:8080\/control\/record\/start?app=live&name=619425b6d754f-1&rec=video"} [04-Jun-2024 17:01:57 Africa/Johannesburg] AVideoLog::DEBUG: Live:controlRecording https://livefaces.live/plugin/Live/standAloneFiles/control.json.php?command=record_start&app=live&name=619425b6d754f-1&token=QlhMR3h2Vko2NHdxZS90OXZjaDhFWURVRHBuUFNaTUVDM05IZEF2VEN4a1I5ZnFzS2ZpcUtjLzc0YmloYWcyenZ4QnBvSUttNzl2cnoyWXIxTHRFZ1NPZWF6a2tGdHdlRnRDbWN2UlNBN0haNFBESlcxdU9sSDNCSHhQWDVydUhDWGRqMk9zRWJJL2VCYU8yeHZsakZRPT0%3D 0 - [{"error":false,"msg":"","streamerURL":"https:\/\/livefaces.live\/","token":"QlhMR3h2Vko2NHdxZS90OXZjaDhFWURVRHBuUFNaTUVDM05IZEF2VEN4a1I5ZnFzS2ZpcUtjLzc0YmloYWcyenZ4QnBvSUttNzl2cnoyWXIxTHRFZ1NPZWF6a2tGdHdlRnRDbWN2UlNBN0haNFBESlcxdU9sSDNCSHhQWDVydUhDWGRqMk9zRWJJL2VCYU8yeHZsakZRPT0=","command":"record_start","app":"live","name":"619425b6d754f-1","response":false,"requestedURL":"http:\/\/localhost:8080\/control\/record\/start?app=live&name=619425b6d754f-1&rec=video"}] SCRIPT_NAME: /var/www/html/livefaces/plugin/Live/controlRecording.php [04-Jun-2024 17:01:57 Africa/Johannesburg] AVideoLog::DEBUG: Live:controlRecording start record is ready SCRIPT_NAME: /var/www/html/livefaces/plugin/Live/controlRecording.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo video->getCan_share() = false SCRIPT_NAME: /view/modeYoutube.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo video->getCan_share() = false SCRIPT_NAME: /view/modeYoutube.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo video->getCan_share() = false SCRIPT_NAME: /view/modeYoutube.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo video->getCan_share() = false SCRIPT_NAME: /view/modeYoutube.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: deleteCache CachesInDB SCRIPT_NAME: /view/modeYoutube.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: CachesInDB::_deleteCacheStartingWith(live/) error line=338 SCRIPT_NAME: /view/modeYoutube.php [04-Jun-2024 17:02:10 Africa/Johannesburg] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo video->getCan_share() = false SCRIPT_NAME: /view/modeYoutube.php

On Tue, Jun 4, 2024 at 4:58 PM Daniel Neto @.***> wrote:

Google and try to install ffmpeg with the same options as I have

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9112#issuecomment-2147755778, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMSFZ626AAOQI4VFGMWITTZFXI2VAVCNFSM6AAAAABIWKVWHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXG42TKNZXHA . You are receiving this because you authored the thread.Message ID: @.***>

DanielnetoDotCom commented 2 months ago

You need to get a log when you start a live and it tries to restream

you may see the ffmpeg command and the log file for the ffmpeg

you will try to run the ffmpeg manually without stop the livestream,

mrgodgiven commented 2 months ago

please share the command for ffmpeg logs

On Tue, Jun 4, 2024 at 5:23 PM Daniel Neto @.***> wrote:

You need to get a log when you start a live and it tries to restream

you may see the ffmpeg command and the log file for the ffmpeg

you will try to run the ffmpeg manually without stop the livestream,

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9112#issuecomment-2147812620, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARMSFZ7EMJAFYH6URG2PASTZFXLYFAVCNFSM6AAAAABIWKVWHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXHAYTENRSGA . You are receiving this because you authored the thread.Message ID: @.***>

DanielnetoDotCom commented 2 months ago

You need to get a log when you start a live and it tries to restream

you may see the ffmpeg command and the log file for the ffmpeg

you will try to run the ffmpeg manually without stop the livestream,

I mean get the logs from AVideo, then in the AVideo logs you will see the ffmpeg log path