Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Best way to stream video?

Best way to stream video?

Scheduled Pinned Locked Moved Visual Basic
questiongraphicsperformance
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DK KiloDunse
    wrote on last edited by
    #1

    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)?

    D 1 Reply Last reply
    0
    • D DK KiloDunse

      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)?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        D Offline
        D Offline
        DK KiloDunse
        wrote on last edited by
        #3

        I agree... but: should the stream be frame by frame or avi stream???

        D 1 Reply Last reply
        0
        • D DK KiloDunse

          I agree... but: should the stream be frame by frame or avi stream???

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups