Jump to content
  • 0

Playback with RTMP using OpenCV


Peter Parker
 Share

Question

Hello,

I am publishing an RTMP stream from a source.

I would like to consume the stream using opencv's VideoCapture method which takes in a URL as an argument.

I have tried: cap = cv2.VideoCapture(URL) where URL='rtmp://<public-IPV4>/LiveApp/<stream-name>'

However i am getting the error: [rtmp @ 0x289bb80] Server error: RTMP playback is disabled

Please direct me on how i can resolve this.

I am using Enterprise Editition on AWS EC2, running on the following AMI: AntMedia-AWS-Marketplace-EE-v253-52cdb7ae-1096-4915-823f-ff83a0a529a9

Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

4 answers to this question

Recommended Posts

  • 1
2 hours ago, Peter Parker said:

Hello,

I am publishing an RTMP stream from a source.

I would like to consume the stream using opencv's VideoCapture method which takes in a URL as an argument.

I have tried: cap = cv2.VideoCapture(URL) where URL='rtmp://<public-IPV4>/LiveApp/<stream-name>'

However i am getting the error: [rtmp @ 0x289bb80] Server error: RTMP playback is disabled

Please direct me on how i can resolve this.

I am using Enterprise Editition on AWS EC2, running on the following AMI: AntMedia-AWS-Marketplace-EE-v253-52cdb7ae-1096-4915-823f-ff83a0a529a9

Hi @Peter Parker,

How are you?

RTMP playback is disabled by default in AMS v2.5.1 and above.

You can refer to this discussion https://github.com/orgs/ant-media/discussions/4874 to enable RTMP playback.

Thank you

Link to comment
Share on other sites

  • 0
1 hour ago, Mohit said:

Hi @Peter Parker,

How are you?

RTMP playback is disabled by default in AMS v2.5.1 and above.

You can refer to this discussion https://github.com/orgs/ant-media/discussions/4874 to enable RTMP playback.

Thank you

Hi Mohit,

Thank you for the prompt reply.

I accessed the file described in the github link you provided. However, i am getting this error when inserting the line into the file: (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/usr/local/antmedia/webapps/LiveApp/WEB-INF/red5-web.properties')

Please let me know how i can proceed to enable RTMP playback.

On that note, i also saw that RTMP playback is not recommended due to deprecation and webRTC playback should be used instead. Could you describe how i can consume the RTMP stream with OpenCV? I'm afraid i am constrained to reading video frames from the stream as i am running computer vision algorithms. 

Appreciate your guidance.

Link to comment
Share on other sites

 Share

×
×
  • Create New...