Replies: 4 comments
-
Are you trying on windows ? I noticed the same thing while on windows but on ubuntu it is a lot faster. |
Beta Was this translation helpful? Give feedback.
-
@issa-ai Yes, testing it on windows |
Beta Was this translation helpful? Give feedback.
-
Can somebody share the solution to resolve the delay in webcam (windows) sample program? |
Beta Was this translation helpful? Give feedback.
-
I've debugged a little the source of the library and found that the main delay happens in server.py function offer() and more precisely here:
looking deeper in setLocalDescription() I found these lines in .venv/Lib/site-packages/aiortc/rtcpeerconnection.py
It takes 5-7 seconds to finish this line. |
Beta Was this translation helpful? Give feedback.
-
How can reduce the initial delay for the webcam example. Now it is taking 5 to 7 seconds to load the video.
I am using the flowing configuration.
options = {"framerate": "30", "video_size": "640x480", "pixel_format":"yuyv422"}
parser.add_argument(
"--video-codec", "-video/VP8", help="Force a specific video codec (e.g. video/H264)"
)
Beta Was this translation helpful? Give feedback.
All reactions