Page 1 of 1

Streaming my own Video (frame by frame)

Posted: 02 Jun 2009 09:49
by wojwal2
Hi!

I'm using my own Video Analytics software - which is actually analyzing video frame by frame (it could be any format, but still as it is frame by frame - its actually set of images).

We are using C#. Lets assume its simple Bitmap object - but I could provide these frames as pointer, RGB, YUV - whatever.

I would like to add LAN Streaming feature - so we could access processed video over internet. Is it possible to provide input video as frame by frame?

I sucessfull ran C# LibVlc sample like:

Code: Select all

LibVlc vlc = new LibVlc(); vlc.Initialize(); vlc.VideoOutput = pictureBox1; vlc.PlaylistClear(); string[] Options = new string[] { ":sout=#duplicate{dst=display,dst=std {access=mmsh,mux=asfh,dst=:8080}}" }; vlc.AddTarget(@"D:\VideoFiles\cam01\video.avi", Options); vlc.Play();
But input for this is existsting video file. I would see a solution sth like a separate thread providing frames like:

Code: Select all

while (true) { vlc.NewFrame( <my_frame> ); }
As I assume there is no direct way to achieve this. Does anybody have an idea? Maybe there's an Indirect way - please give me some hint. Maybe there is a way in native VLC - I dont mind writting my own C# wrapper - but only if that is possible at all? Is it worth to dig into LibVlc in my situation?

I appreciate any response. Thanks!

Re: Streaming my own Video (frame by frame)

Posted: 02 Jun 2009 17:50
by wojwal2
Please give me any response?

Re: Streaming my own Video (frame by frame)

Posted: 03 Jun 2009 11:11
by Jean-Baptiste Kempf
Use VLC 1.0.0, where you can do frame-by-frame.