C# AForge.NET c# streaming webcam over sockets

  • Thread starter Thread starter Superposed_Cat
  • Start date Start date
AI Thread Summary
The discussion revolves around challenges in streaming live video over sockets in C# using AForge, NetworkStream, and sockets. The user successfully sends images but struggles with live video streaming, suspecting that knowledge of each frame's size is necessary for proper display. Suggestions include adjusting the PictureBox size after the server receives the image and before displaying it, as well as using pictureBox.Update() to refresh the display. The request for code examples on GitHub highlights the need for practical solutions to the streaming issue.
Superposed_Cat
Messages
388
Reaction score
5
Hi, I have been able to take a picture and send it over a socket in c# using AForge, NetworkStream and sockets, but I am unable to stream live video over them. I keep altering my code (it's n00bish code albeit) but it won't work. I think it is because you would have to know the size of each frame server side before displaying it in a picturebox. Any help/links appreciated.
 
Technology news on Phys.org
Can you post some code on github?

Can you adjust the size of the picture box after the server receives the image but before you display it?
 
Last edited:
Do you have any code?

Try to update the picture box, pictureBox.Update()
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top