Replies: 3 comments
-
This was the example of green frames, and I was on aiortc version 1.10.1. Today I set up an RPI as a publisher with a ribbon camera attached. I was able to receive the stream. Both record to file and live stream. The problem that occurred for then was:
To resolve this I switched to aiortc version 1.12. On 1.12 even on fetching the valid RPI stream -which was working on 1.10.1- again gave the following issue:
So, then I downgraded to V1.11. And now the stream can be viewed indefinitely without either 'rtx' issue or the 'invalid data' issue. I'm now really confused as to what's happening, what is actually causing the invalid data issue on the latest version, and why the invalid data issue occurred for the dummy stream as well in the first place. I hope I explained my working and investigation in a good way. If there's still any confusion, I can do more testing for you guys with the different versions that I've been using. Hope to get an explanation for this. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Now after running my subscriber script powered by V1.11. I get the following issue after a whille:
And the code that I use: `` import aiohttp logging.basicConfig(level=logging.INFO) RTC_CONFIG = RTCConfiguration(iceServers=[ pcs = set() relay = MediaRelay() def transaction_id(): class JanusPlugin:
class JanusSession:
class OpenCVVideoSink:
async def subscribe(session, room, feed):
async def run(room, session):
if name == "main":
How can I make this reliable? |
Beta Was this translation helpful? Give feedback.
-
Any help or just your insights would really be appreciated. im very new webrtc and janus |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the janus example. I have modified the script to have two versions. 1 only publishes the default green frames, while the other only subscribes and records the stream. My Janus instance is deployed on the cloud, the recorder always crashes. The complete log is given below, if anyone can help it would be really nice. I'm stuck and I don't know what to do.
C:\Users\bring\Documents\GitHub\janus_stream>python janus.py http://194.163.158.53:8088/janus --record-to sample2.mp4 id: 2399281696872851, display: aiortc INFO:aioice.ice:Connection(0) Could not bind to 169.254.23.128 - [WinError 10049] The requested address is not valid in its context INFO:aioice.ice:Connection(0) Could not bind to 169.254.61.247 - [WinError 10049] The requested address is not valid in its context INFO:aioice.ice:Connection(0) Could not bind to 169.254.228.123 - [WinError 10049] The requested address is not valid in its context INFO:aioice.ice:Connection(0) Check CandidatePair(('10.214.87.116', 62581) -> ('172.18.0.2', 49096)) State.FROZEN -> State.WAITING INFO:aioice.ice:Connection(0) Check CandidatePair(('10.214.87.116', 62581) -> ('194.163.158.53', 49096)) State.FROZEN -> State.WAITING INFO:aioice.ice:Connection(0) Check CandidatePair(('10.214.87.116', 62581) -> ('172.18.0.2', 49096)) State.WAITING -> State.IN_PROGRESS INFO:aioice.ice:Connection(0) Check CandidatePair(('10.214.87.116', 62581) -> ('194.163.158.53', 49096)) State.WAITING -> State.IN_PROGRESS INFO:aioice.ice:Connection(0) Check CandidatePair(('10.214.87.116', 62581) -> ('194.163.158.53', 49096)) State.IN_PROGRESS -> State.SUCCEEDED INFO:aioice.ice:Connection(0) ICE completed Track audio received Track video received INFO:aioice.ice:Connection(1) Could not bind to 169.254.23.128 - [WinError 10049] The requested address is not valid in its context INFO:aioice.ice:Connection(1) Could not bind to 169.254.61.247 - [WinError 10049] The requested address is not valid in its context INFO:aioice.ice:Connection(1) Could not bind to 169.254.228.123 - [WinError 10049] The requested address is not valid in its context INFO:aioice.ice:Connection(1) Check CandidatePair(('10.214.87.116', 62582) -> ('172.18.0.2', 38714)) State.FROZEN -> State.WAITING INFO:aioice.ice:Connection(1) Check CandidatePair(('10.214.87.116', 62582) -> ('194.163.158.53', 38714)) State.FROZEN -> State.WAITING INFO:aioice.ice:Connection(1) Check CandidatePair(('10.214.87.116', 62582) -> ('172.18.0.2', 38714)) State.WAITING -> State.IN_PROGRESS INFO:aioice.ice:Connection(1) Check CandidatePair(('10.214.87.116', 62582) -> ('194.163.158.53', 38714)) State.WAITING -> State.IN_PROGRESS Exchanging media INFO:aioice.ice:Connection(1) Check CandidatePair(('10.214.87.116', 62582) -> ('194.163.158.53', 38714)) State.IN_PROGRESS -> State.SUCCEEDED INFO:aioice.ice:Connection(1) ICE completed Exception in thread video-decoder: Traceback (most recent call last): File "C:\Users\bring\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner self.run() File "C:\Users\bring\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "C:\Users\bring\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiortc\rtcrtpreceiver.py", line 68, in decoder_worker for frame in decoder.decode(encoded_frame): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bring\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiortc\codecs\vpx.py", line 162, in decode return cast(list[Frame], self.codec.decode(packet)) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "av/codec/context.pyx", line 433, in av.codec.context.CodecContext.decode cpdef decode(self, Packet packet=None): File "av/codec/context.pyx", line 448, in av.codec.context.CodecContext.decode for frame in self._send_packet_and_recv(packet): File "av/codec/context.pyx", line 340, in av.codec.context.CodecContext._send_packet_and_recv err_check(res, "avcodec_send_packet()") File "av/error.pyx", line 424, in av.error.err_check raise cls(code, message, filename, log) av.error.InvalidDataError: [Errno 1094995529] Invalid data found when processing input: 'avcodec_send_packet()'
Beta Was this translation helpful? Give feedback.
All reactions