Replies: 2 comments 2 replies
-
Consider this #1089 as well. Seams like the pyav close is not working. In MediaPlayer, av.open() to start ffmpeg. I managed to call _stop method and run self.__container.close() self.__container = None. Memeory is till not released. Seams like pyav's issue. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Related pyav issues are here: PyAV-Org/PyAV#1117 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm attempting to create a mass use Camera To WebRTC (Or RTSP to WebRTC) program in python and I can get the initial connection going just fine, but stopping it after a client disconnects is difficult, I have a webrtc datachannel that if a message isn't received from the browser in 5 seconds it runs the following closing function:
(https://pastebin.com/Ku9NkgNF)
The following is the way I create my WebRTC sessions with AioRTC:
(https://pastebin.com/rSPBFygj)
And the issue I am having is that the AioRTC RTP objects do not go away on their own, and any attempt to call RTCPeerConnection.close() always hangs forever, so it slowly takes up CPU threads and memory. I know this because when I force quit the program long after they should be dead I get the following:
(https://pastebin.com/3VpSa4XZ)
Beta Was this translation helpful? Give feedback.
All reactions