1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body><font face="Georgia, Times New Roman, Times, serif">
<h2> Summary </h1>
<ol>
<li>Set up a virtual machine</li>
<li>Install VLC</li>
<li>Create RTP video stream</li>
<li>Make sure the stream is accessible from the internet</li>
</ol>
<h2>Instructions</h1>
<ol>
<li>
<h4>Set up a virtual machine </h3>
<p> Use disk simpleArbiter. You can get it <a href="http://polz.si/media/uploads/kpov/virtualke/">here</a>. </p>
</li>
<li>
<h4>Install VLC</h3>
<p>
In file <code>/etc/apt/sources.list</code> replace <code>wheezy</code> with
<code>testing</code> or if missing, add rows:
</p>
<p>
<code>
deb http://ftp.at.debian.org/debian wheezy main contrib non-free <br>
deb-src http://ftp.at.debian.org/debian wheezy main contrib non-free
</code>
</p>
<img alt="slika-01" src="../images/1.png" style="width: 640px;" />
<p>
Check for updates and install VLC with the following commands:
</p>
<p>
<code>
apt-get update <br>
apt-get install vlc
</code>
</p>
</li>
<li>
<h4>Create a new stream </h3>
<p>
Open VLC. In Media menu select Stream.
</p>
<img src="../images/stream_menu.png" style="width: 640px;" alt="menu">
<p>
Here we choose stream source. This can be a file, a network stream or a capture device. <br>
For this excercise, add one or more video file by clicking <i>Add ...</i> Continue with a click on button Stream.
</p>
<img src="../images/playlist.PNG" style="width: 640px;" alt="stream source">
<p>
We must also choose the stream destination. For this excercise, choose RTP/MPEG Transport Stream and click Add.
You can configure multiple destinations simultaneously.
</p>
<p>
Configure destination settings. Enter address and stream name.
</p>
<img src="../images/stream_output.PNG" style="width: 640px;" alt="stream destination">
<p>
Next, we can set transcoding, encapsulation, audio and video codecs and also subtitles. When you finish, click Save and Next.
</p>
<img src="../images/stream_transcoding.PNG" style="width: 640px;" alt="stream settings">
<p>
In the last step, it is important to check option Stream all elementary streams.
In the text area, we can see the string that can be used to run the stream from a command line.
This is useful if you want to run stream from a computer without graphic interface.
</p>
<img src="../images/stream_finish.PNG" style="width: 640px;">
</li>
<li>
<h4>Open stream </h3>
<p>
We can now play the stream from another device using VLC.
</p>
<img src="../images/stream_open.PNG" style="width: 640px;" alt="play stream">
</li>
</ol>
</body>
</html>
|