Best way to stream video?
-
When streaming video over the internet, witch way is the best/fastest way to do it? Send frame by frame? Send from a avi-stream? I have a program witch captures frames/video from a webcamera. The picture (bitmap) size is 160*120*24bit This gives me a buffer size of 57600 bytes (160*120*3) which is too much to data to send. The upload speed is 256 kilobits/s. which is 32000 bytes/s (256000/8 = 32000) This give me ~ a half picture/s :^) How can I compress this buffer (without the use of 3-party components)?
-
When streaming video over the internet, witch way is the best/fastest way to do it? Send frame by frame? Send from a avi-stream? I have a program witch captures frames/video from a webcamera. The picture (bitmap) size is 160*120*24bit This gives me a buffer size of 57600 bytes (160*120*3) which is too much to data to send. The upload speed is 256 kilobits/s. which is 32000 bytes/s (256000/8 = 32000) This give me ~ a half picture/s :^) How can I compress this buffer (without the use of 3-party components)?
You have two choices: 1) Code the compression/decompression on your own (called a "codec") and suffer with nearly zero support from other people. 2) Use codecs that are already written, "industry standard", and supported by others. The choice is up to you. If it were me, I'd skip writing my own codec... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You have two choices: 1) Code the compression/decompression on your own (called a "codec") and suffer with nearly zero support from other people. 2) Use codecs that are already written, "industry standard", and supported by others. The choice is up to you. If it were me, I'd skip writing my own codec... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
I agree... but: should the stream be frame by frame or avi stream???
-
I agree... but: should the stream be frame by frame or avi stream???
That's not as straight forward as it would seem. There are many methods for compressing a video stream into a data stream and sending it. It sould like your talking about both using the same terms. AVI is just a compressed video stream format. You can compress the video stream using either a full frame compression technique, or partial frames with key frames, or several frames at once. There are dozens of different techniques that fall under each of these categories. Sending the data can be done over TCP, UDP, or Multicast IP. The choice is up to you. But unless you writing code to explore these techniques and come up with your own format, you'd be MUCH better off using third party components that follow industry standards for video compression and transmission. The Microsoft Windows Media SDK[^] would be a good place to start. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome