-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic on connecting client (vlc and ffplay) #43
Comments
This happens on both TCP and UDP (this is the TCP error message)
|
So looking into this.. You have the client double buffer fixed at 2048 server-client.go:790
The size of the frames are larger than this. If I send only the first 2048 bytes of each frame (obviously this means the frame is not complete and only a portion of the picture is sent) it will work main.go:526
I don't know enough about the details of the code to know if I should up the buffer size or send the frame over multiple buffers but I hope that this helps with the debugging. |
I tried chunking the data but that did not work as I expected, so instead I bumped up the buffer size to 20480 (since the largest frame was 19999 bytes) |
This increasing of the buffer size only works with the TCP since the UDP uses another method hmm. Or at least the buffer is defined elsewhere. Anyway I will stop tinkering. |
Hello, this happens because you're publishing via TCP (read buffer size = 512*1028) and reading via TCP (write buffer size = 2048) and UDP (write buffer size = 2048). The buffer sizes have been adjusted to the following values to avoid memory leaks:
|
I can confirm that this is working. Thanks for your efforts :) |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
v0.9.3
Describe the problem
After your bug fix in #41 I am able to connect the publishing client (an ios app). When attempting to play the stream the following error occurs.
Please let me know if you need further debugging information
The text was updated successfully, but these errors were encountered: