Streaming my own Video (frame by frame)

This forum is about all development around libVLC.
wojwal2
New Cone
New Cone
Posts: 2
Joined: 02 Jun 2009 09:30

Streaming my own Video (frame by frame)

Postby wojwal2 » 02 Jun 2009 09:49

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!

wojwal2
New Cone
New Cone
Posts: 2
Joined: 02 Jun 2009 09:30

Re: Streaming my own Video (frame by frame)

Postby wojwal2 » 02 Jun 2009 17:50

Please give me any response?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Streaming my own Video (frame by frame)

Postby Jean-Baptiste Kempf » 03 Jun 2009 11:11

Use VLC 1.0.0, where you can do frame-by-frame.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: m1adow and 24 guests