apache / openmeetings

Mirror of Apache Openmeetings
Other
639 stars 261 forks source link

Openmeetings 4.0.7 RTMPT to native RTMPS #133

Closed andylin810 closed 3 years ago

andylin810 commented 3 years ago

Please correct me if I misunderstand any thing. I am trying to read the RTMPS stream from OpenMeetings sharing screen using ffmpeg and convert stream to HLS stream for testing by using the rtmps:// url. When I was inspecting the flash player I notice in the chrome's network tab, https post requests are being made to download AMF flash data to the flash player which gives me the impression that OpenMeetings is using RTMP tunneling by sending data via HTTPS instead of RTMPS( I'm guessing this is why my ffmpeg -i rtmps:// .... command fails). After some googling, I have found some links like this one here having instruction on how to active native RTMPS.

https://svn.apache.org/repos/asf/openmeetings/site/trunk/RTMPSAndHTTPS.html#Set_up_RTMPS

All I tried is uncommenting out the RTMPS section in conf/red5-core.xml file, I was not able to find red5/webapps/openmeetings/public/config.xml at all in the project. Can someone give me some advise on how to turn off RTMPT and use RTMPS as path for transporting video data? Is the above link instructions outdated? I am still using the older flash version of OpenMeetings 4.0.7, my company isn't ready for migrating to WebRTC version yet.

If I misunderstood the whole situation, is there any way of reading the RTMPS sharing screen data by using ffmpeg?

Thanks.

solomax commented 3 years ago

Actually there are 2 modes for secure RTMP

both should be described here https://github.com/apache/openmeetings/blob/4.0.x/openmeetings-server/src/site/xdoc/RTMPSAndHTTPS.xml

4.0.x is no more supported, but the documentation should work

andylin810 commented 3 years ago

Actually there are 2 modes for secure RTMP

  • native
  • tunneled

both should be described here https://github.com/apache/openmeetings/blob/4.0.x/openmeetings-server/src/site/xdoc/RTMPSAndHTTPS.xml

4.0.x is no more supported, but the documentation should work

Hi solomax, thanks very much for your info. I am not sure if this is the right place to ask, but do you know it is possible at all to read the screenshare stream in OpenMeetings and convert it with ffmpeg? I was able to get the stream source rtmp:// url, but it gives input/output error in ffmpeg, when I inspect the traffic using Wireshark, RTMP connection was able to established but video and audio data were never sent. Is this all Red5 thing or did OpenMeetings customize the code. Thank you.

solomax commented 3 years ago

Screenshare stream is regular RTMP stream It is being processed by ffmeg inside OM while creating final recording file

I would recommend to switch to latest release and ensure RTMPS works in a browser before "playing" with ffmpeg