In context, I transfer video from a camera on a raspberry pi 3, to a local computer. The local network is only used for this purpose so there is no congestion on the network, besides I am connected by cable, on the computer and on the raspberry, (LAN). The shipping is slow and I had an idea to increase the transfer using double wire delivery
Question
I have a question, to verify if it is possible or someone else has tried to do it.
In context, I transfer video from a camera on a raspberry pi 3, to a local computer. The local network is only used for this purpose so there is no congestion on the network, besides I am connected by cable, on the computer and on the raspberry, (LAN).
The video quality I transfer has a size of 1920 x 1080.
Using the NetGear library I transfer the video correctly, but at an average speed of 3 FPS.
For my purposes I need more video at a higher speed, but without reducing the quality of the video or resizing it.
server = NetGear (address = '192.168.x.xxx', port = '5454', protocol = 'tcp', pattern = 1, receive_mode = False, logging = True, ** options) #Define netgear client at Server IP address .
server2 = NetGear ...... different port
Try to implement a communication using 2 threads, where in each thread you send a video frame to the computer so that in this way while sending a video frame you can also make another sending at the same time of a subsequent frame. In theory this could help me increase the amount of SPF.
But what I have observed, is that internally even if you use threads, the video sending is only done one by one, even if you have two sending objects, one or the other will wait internally for the other to finish sending to send yours.
for example, implement 3 threads to send video at the same time but with consecutive frames, executing the code for 10 seconds. Each thread could only send 10 frames, where in total for the ten seconds were 30, 3 FPS.
Each thread is constantly checking on a corresponding video stack if there is a frame to send.
while True:
if len (queue1)> 0:
server.send (frame)
Acknowledgment
- [*] A brief but descriptive Title of your issue.
- [*] I have searched the issues for my issue and found nothing related or helpful.
- [*] I have read the FAQ.
- [*] I have read the Wiki.
Context
I mainly want to increase the amount of video frames I receive
In context, I transfer video from a camera on a raspberry pi 3, to a local computer. The local network is only used for this purpose so there is no congestion on the network, besides I am connected by cable, on the computer and on the raspberry, (LAN).
The video quality I transfer has a size of 1920 x 1080.
Your Environment
- VidGear version: 0.1.5
- Branch:
- Python version: 3.5
- pip version: current version
- Operating System and version: Ubuntu 16.04
Optional