Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTMP to Facebook does not work when the hlsMuxingEnabled is enabled in AMS. #6882

Open
amarantmeida opened this issue Dec 17, 2024 · 3 comments
Assignees
Labels

Comments

@amarantmeida
Copy link

Short description

RTMP endpoint to Facebook does not work when the HLS muxer is enabled in AMS. When we set "hlsMuxingEnabled" to "false" in the settings of an Application everything is fine. But as soon as we switch it to "true", there's no stream going to FB. I am able to reproduce the same on test server on AmatTest app

Environment

  • Operating system and version:
  • Java version:
  • Ant Media Server version: 2.12
  • Browser name and version:

Steps to reproduce

  1. Under advanced settings of your app, make sure hlsMuxingEnabled:true, and "Save"
  2. Start a stream (webrtc in my case), then add FB as RTMP endpoint. (ex- rtmps://live-api-s.facebook.com:443/rtmp/FB-28286452277612722-0-AbzwBnqCLJlUC9L-)
  3. Facebook Live stream doesnt show the stream.
  4. Now disable the setting, i.e; hlsMuxingEnabled:false, and "Save"
  5. Then restart the stream
  6. The stream will now appear on Facebook.

Expected behavior

__Stream should appear of facebook even when hlsMuxingEnabled:true, __

Actual behavior

When hlsMuxingEnabled:true, Stream doesnt pass on to Facebook

Logs

Place logs on pastebin or elsewhere and put links here

Ask your questions on Ant Media Github Discussions

@muratugureminoglu
Copy link
Collaborator

Agent Amarnath Thodupunoori linked Freshdesk ticket 140164 for this issue.

@mekya mekya moved this to Next Sprint in Ant Media Server Dec 19, 2024
@burak-58 burak-58 moved this from Next Sprint to 🔖 Sprint in Ant Media Server Dec 30, 2024
@burak-58 burak-58 moved this from 🔖 Sprint to 🏗 In progress in Ant Media Server Jan 6, 2025
@USAMAWIZARD
Copy link
Contributor

USAMAWIZARD commented Jan 7, 2025

I have build ffmpeg with Mbedtls enabled , even then the connection fails to establish with facebook. by default it was using tls 1.3 , I changed ffmpeg src code to force ffmpeg to use tls 1.2 instead then some time the connection works and some time it does not work.

when forcing mbedtls to use tls 1.2

[rtmps @ 0x5b1c47d72b40] FCPublish stream...
[rtmps @ 0x5b1c47d72b40] Creating stream...
[rtmps @ 0x5b1c47d72b40] Sending publish command for 'FB-1711675776045356-0-Ab3mAsVUGHPUQeh066UYGU1m'
[tls @ 0x5b1c47d71d40] mbedtls_ssl_read reported connection reset by peer
[out#0/flv @ 0x5b1c47e22940] Error opening output rtmps://live-api-s.facebook.com:443/rtmp/FB-1711675776045356-0-Ab3mAsVUGHPUQeh066UYGU1m: Input/output ing output file rtmps://live-api-s.facebooerror
Error openk.com:443/rtmp/FB-1711675776045356-0-Ab3mAsVUGHPUQeh066UYGU1m.
Error opening output files: Input/output error
[AVIOContext @ 0x5b1c47d5b680] Statistics: 175294 bytes read, 2 seeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants