-
Hi,
This is the script, I just have added option probesize to see if this help but erorr still there:
Working on macOS 13 ventura, python 3.9, av 14.1.0
thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This should your blocking error: try:
while True:
try:
for frame in input_.decode(video=0):
packet = output_stream.encode(frame)
output.mux(packet)
except av.BlockingIOError:
pass
except KeyboardInterrupt:
print("Recording stopped by user")
packet = output_stream.encode(None)
output.mux(packet)
input_.close()
output.close() |
Beta Was this translation helpful? Give feedback.
-
Thanks ! |
Beta Was this translation helpful? Give feedback.
This should your blocking error: