1

I have a sequence of IplImage objects coming from a webcam, apply some processing, and I would like this video to be shown on a webpage. What is the best way to do this?

rossb83
  • 1,694
  • 4
  • 21
  • 40

3 Answers3

1

I was able to do this with the following "hack"

1) set up an amazon aws account to use their S3 service. 2) Create an s3 "bucket". And continuously update the file (use the same name each time) into the bucket. Make sure you set the metadata attribute for no-cache and permissions for everyone to view.

3)create a simple web page where the JavaScript updates the every second (or what u prefer).

This is pretty bandwidth heavy and haven't tested at any scale. Since it's amazon, I'm not worried that things will fall apart when I scale traffic. However, users won't be happy with their bandwidth consumption. But it is free for up to 2000 puts and 20000 gets per month.

Next I want to figure out how to stream properly w codecs, etc, and am pulling my hair out figuring out a solution.

I'm happy to provide my source iOS client and JavaScript) but I'm on a train now. If you are truly interested ping me so I remember when I'm at my desk...

rockitt
  • 11
  • 2
1

rossb As far as I know opencv has no support for streaming of opencv videos though there has been attempts to stream video over TCP using Sockets but that would not be the best way to implement for a webapp

100rabh
  • 6,156
  • 5
  • 27
  • 41
  • Well I was thinking I could combine several packages. So opencv can do all the image processing, and produce a sequence of IplImage* image objects. I could then convert that image to another image type belonging to a package that could stream these on the net. The question is, what package would be best? – rossb83 Jan 07 '11 at 15:45
  • @rossb Do also check this [post](http://stackoverflow.com/questions/5097573/saving-as-flash-in-c/5152763) which says it can be done using JavaCV & java-ffmpeg **And let us informed as I too am working on a similar project** – 100rabh Mar 12 '11 at 07:35
0

You could make your own webserver. Implementing just the basic GET command should be very simple. If you're using a .net language, things should be very easy for you.

Utkarsh Sinha
  • 3,295
  • 4
  • 30
  • 46
  • kudos for your awesome blog .Keep on the good work & do check my [post](http://saurabh-nigam.blogspot.com/2011/02/devrandom.html) about ur blog – 100rabh Mar 12 '11 at 07:37
  • Yep I too have been trying to stream and process live video using **Red5+Xuggler+JavaCV** as directed by this [nabble post](http://old.nabble.com/Re:-Red5-:-How-to-Detect-circular-objects-in-live-video-stream-p30832469.html) – 100rabh Mar 14 '11 at 05:44