Question: v_file = cv2.VideoCapture('video_test.avi') ret, frame = v_file.read() data = cv2.imencode('.jpg', frame)[1].tostring() connectionSocket.sendall(data) ____________________________________________________________________ while (True): data = clientSocket.recv(90456) nparr = numpy.fromstring(data, numpy.uint8) frame = cv2.imdecode(nparr,

v_file = cv2.VideoCapture('video_test.avi') ret, frame = v_file.read() data = cv2.imencode('.jpg', frame)[1].tostring() connectionSocket.sendall(data)

____________________________________________________________________

while (True): data = clientSocket.recv(90456) nparr = numpy.fromstring(data, numpy.uint8) frame = cv2.imdecode(nparr, cv2.COLOR_BGR2GRAY) cv2.imshow('frame',frame) if cv2.waitKey(0) & 0xFF == ord('q'): break

The botton(client) receives a file video from the server(bold), but it is only showing the first frame. It is stuck there, and it doesn't play the entire video.

Need Ideas please (Python - Video Streaming service)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!