Peter Parker Posted March 10 Share Posted March 10 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 More sharing options...
1 Mohit Posted March 10 Share Posted March 10 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 More sharing options...
0 Peter Parker Posted March 10 Author Share Posted March 10 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 More sharing options...
0 Peter Parker Posted March 10 Author Share Posted March 10 UPDATE: FileSystemError was an issue on my end, not Ant Media Server. managed to resolve it already. Thanks for the kind assistance 😀 1 Link to comment Share on other sites More sharing options...
0 Mohit Posted March 10 Share Posted March 10 8 minutes ago, Peter Parker said: UPDATE: FileSystemError was an issue on my end, not Ant Media Server. managed to resolve it already. Thanks for the kind assistance 😀 Thank you @Peter Parker Have a great week 🙂 Link to comment Share on other sites More sharing options...
Question
Peter Parker
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
Top Posters For This Question
3
2
Popular Days
Mar 10
5
Top Posters For This Question
Peter Parker 3 posts
Mohit 2 posts
Popular Days
Mar 10 2023
5 posts
Popular Posts
Peter Parker
UPDATE: FileSystemError was an issue on my end, not Ant Media Server. managed to resolve it already. Thanks for the kind assistance 😀
4 answers to this question
Recommended Posts