Streaming video with VLC

Here are few  simple real world examples of streaming / watching video using VLC both as the server and the client.

In the particular examples the video source is a video camera, identified as “-vvv v4l2://” at the command line. If you are going to stream a file, this argument may be something like, say, “-vvv test.flv” or “-vvv test.avi”.

Of course, you shall use your actual IP address instead of the one shown in the examples.

cvlc stands for the command-line version of VLC. You can use its GUI version vlc with equal success, if you like.

Example 1

Server:

cvlc -vvv v4l2:// --sout '#std{access=mmsh,mux=asfh,dst=:8081}'

Client:

vlc mmsh://192.168.1.100:8081

Example 2

Server:

cvlc -vvv v4l2:// --sout '#standard{access=http,mux=ogg,dst=192.168.1.100:8081}'

Client:

vlc http://192.168.1.100:8081
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.