multimedia over network I

I want to:

* run a program on a work PC, and
* see and hear it in action on a leisure PC.

The first attempt is failed, therefore I started to search for a solution using the step-by-step approach. The first step is to make sure that multimedia over networks works at all.

After some research, I found the tool ``VideoLAN - VLC media player''. Video streaming is one of the main features of the tool.

The documentation explains what to do to:

* http://www.videolan.org/doc/streaming-howto/en/index.html
* http://www.videolan.org/doc/streaming-howto/en/ch02.html

Important settings (probably suboptimal, but they work -- it's enough for start):
* RTP: On, address, port // address is where to send, not where to bind
* MPEG-TS: On
* Video: On
* Audio: On

The first test: make sure that streaming to 127.0.0.1 works.

The second test: make sure that streaming to the same computer (but with an external IP, not 127.0.0.1) works.

The third, final test, is to stream to another computer.

Command line

A correct command line for streaming can be found somewhere in GUI. In my vlc 0.9.1:

* go to Media->Streaming,
* select a file,
* press the button "Stream",
* after setting options, borrow the text from the field "Generated stream output string".

My test command line (on the streaming PC):


$ cvlc lalalalala.avi --sout '#transcode{vcodec=mp1v,vb=80
  0,scale=0,acodec=mpga,ab=128,channels=2}:duplicate{dst=r
  tp{dst=leisure_ip,mux=ts,port=1234}}'

To play video (on the multimedia PC):


$ cvlc rtp://@leisure_ip:1234
Categories: linux

Updated: