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
OSError: [Errno 55] No buffer space available #67
Comments
More of error message |
Try this: import threefive
# start monkey patch
import new_reader
import socket
def _udp_sock_opts(sock):
# sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 90000000)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 7456540)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
if hasattr(socket, "SO_REUSEPORT"):
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
new_reader._udp_sock_opts = _udp_sock_opts
# end monkey patch
strm = threefive.Stream('udp://@224.2.2.4:1234') Does it work for you? |
Hi richard thanks very much it is working nicely { |
@richard-vd, |
@cisiwen
|
thanks for the deep level of explanation! i suspected could be os level issue but can't get proper fix from google search Like threefive work like a charm and thanks both you and richard so quick and prefessinal solution. |
belive the issue solved, you can close the ticket! |
run |
not sure is anyone encounter this error
but when i try to
strm = threefive.Stream('udp://@224.2.2.4:1234')
i keep getting
OSError: [Errno 55] No buffer space available
ffplay playing good
Input #0, mpegts, from 'udp://@224.2.2.4:1234':KB sq= 0B f=0/0 Duration: N/A, start: 630.728000, bitrate: N/A Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 98 kb/s Stream #0:2[0x258]: Data: scte_35
System: macos Big Sur
Python : Python 3.9.13 with Anaconda
thanks
The text was updated successfully, but these errors were encountered: