How to stream your images/files with VLC?

Rella picture Rella · Apr 29, 2010 · Viewed 20.1k times · Source

So I know there are lot of wrappers of libVLC.dll . But I just do not know what one is ready to do what I need...

What I need is simple...

  • in my C# program I create some bitmap (once or twice per second)...
  • I now want to stream bitmaps live as video (in some format VLC can to offer me) to some http:localhost:port/ using VLC...

How to do that?

Answer

Ram picture Ram · May 19, 2010

You need to use following code to stream a image.

cd "C:\program files\videolan\vlc" 
vlc -I dummy fake:// --fake-file c:\1.jpg -vvv --sout #transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=udp,mux=ts,dst=localhost:1234}}