usesout.xml 16.6 KB
Newer Older
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
<?xml version="1.0" encoding="iso-8859-1" ?>

<chapter id="usesout"><title id="tusesout">
<span xml:lang="en">Advanced use of VLC's stream output
(transcoding, multiple streaming, etc...)</span>
<span xml:lang="fr">Utilisation avance du stream output de VLC
(transcodage, diffusion multiple, ...)</span>
<span xml:lang="es">Utilizacin avanzada de la salida de transmisin de VLC
(transcodificacin, mltiples transmisiones, etc...)</span>
<span xml:lang="de">Fortgeschrittene Nutzung der Stream-Ausgabe von VLC
(Umkodierung, multiples Streaming, etc.)</span>
</title>

<sect1><title>
<span xml:lang="en">The syntax</span>
<span xml:lang="fr">La syntaxe</span>
<span xml:lang="es">La sintaxis</span>
<span xml:lang="de">Die Syntax</span>
</title>

<para>
<span xml:lang="en">Please refer to the <emphasis>command line
interface</emphasis> chapter of the VLC user guide to learn the syntax
of VLC's stream output. You can find the VLC user guide on the <ulink
url="http://www.videolan.org/doc/">documentation page</ulink></span>
<span xml:lang="fr">Merci de vous rfrer au chapitre <emphasis>Ligne
de commande</emphasis> du guide de l'utilisateur de VLC,
pour apprendre la syntaxe du stream output du VLC. Vous
pouvez trouver le guide de l'utilisateur de VLC sur la <ulink
url="http://www.videolan.org/doc/">page documentation</ulink></span>
<span xml:lang="es">Por favor consulte el captulo <emphasis>interfaz de lnea de comandos</emphasis> de la gua de usuario de VLC para aprender
la sintaxis de la salida de transmisin de VLC. Puedes encontrar la gua de usuario de VLC en la pgina de documentacin<ulink
url="http://www.videolan.org/doc/"></ulink></span>
<span xml:lang="de">Bitte benutzen Sie das <emphasis>
Command-Line-Interface</emphasis>-Kapitel des VLC-Userguides, um die
Syntax von VLCs Streamausgabe. Sie finden den VLC-Userguide auf der 
<ulink url="http://www.videolan.org/doc/">Dokumentationsseite</ulink></span>
.</para>

</sect1>

<sect1><title>
<span xml:lang="en">Examples</span>
<span xml:lang="fr">Exemples</span>
<span xml:lang="es">Ejemplos</span>
<span xml:lang="de">Beispiele</span>
</title>

<sect2><title>
<span xml:lang="en">Transcoding</span>
<span xml:lang="fr">Transcodage</span>
<span xml:lang="es">Transcodificacin</span>
<span xml:lang="de">Umkodierung</span>
</title>

<para>
<span xml:lang="en">Transcode the input stream and send it to a
multicast IP address with the associated SAP announce</span>
<span xml:lang="fr">Transcodez le flux d'entre et envoyez le vers une
adresse IP multicast, avec l'annonce SAP associe</span>
<span xml:lang="es">Transcodifica el flujo de entrada y lo enva a una
direccin IP multicast con el correspondiente anuncio asociado SAP</span>
<span xml:lang="de">Umkodieren des Input-Streams und senden an eine
Multicast-IP-Adresse mit der zugehrigen SAP-Ankndigung</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
standard{access=udp,mux=ts,url=239.255.12.42,sap=TestStream}'</userinput>
</screen>

<para>
<span xml:lang="en"> Display the input stream, transcode it and send it
to a multicast IP address with the associated SAP announce</span>
<span xml:lang="fr">Affichez le flux d'entre, transcodez le, et envoyez
le sur une adresse IP multicast, avec l'annonce SAP associe</span>
<span xml:lang="es"> Muestra el flujo de entrada, lo transcodifica y lo enva
a la direccin multicast con el correspondiente anuncio asociado SAP</span>
<span xml:lang="de"> Den Input-Stream anzeigen, umkodieren und an eine
Multicast-IP-Adresse mit der zugehrigen SAP-Ankndigung senden</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#duplicate{dst=display,dst=
"transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
standard{access=udp,mux=ts,url=239.255.12.42,sap=TestStream}"}'</userinput>
</screen>

<para>
<span xml:lang="en">Transcode the input stream, display the transcoded
stream and send it to a multicast IP address with the associated SAP
announce</span>
<span xml:lang="fr">Transcodez le flux d'entre, affichez le flux
transcod, et envoyez le sur une adresse IP multicast, avec l'annonce
SAP associe</span>
<span xml:lang="es">Transcodifica el flujo de entrada, muestra el flujo transcodificado
y lo enva a la direccin IP multicast con el correspondiente anuncio asociado SAP</span>
<span xml:lang="de">Umkodieren des Input-Streams, Anzeige des umkodierten
Streams und Senden an eine Multicast-IP-Adresse mit der zugehrigen
SAP-Ankndigung</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
duplicate{dst=display,dst=standard{access=udp,mux=ts,url=239.255.12.42,sap=TestStream}}'</userinput>
</screen>

</sect2>

<sect2><title>
<span xml:lang="en">Multiple streaming</span>
<span xml:lang="fr">Diffusion multiple</span>
<span xml:lang="es">Transmisin mltiple</span>
<span xml:lang="de">Multiples Streaming</span>
</title>

<para>
<span xml:lang="en">Send a stream to a multicast IP address and a
unicast IP address</span>
<span xml:lang="fr">Envoyez un flux sur une adresse IP multicast et une
adresse IP unicast</span>
<span xml:lang="es">Enviar un flujo a una direccin IP multicast y a una
direccin IP unicast</span>
<span xml:lang="de">Senden eines Streams an eine Multicast-IP-Adresse und
eine Unicast-IP-Adresse</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#duplicate{dst=
standard{access=udp,mux=ts,url=239.255.12.42,sap=TestStream},
dst=standard{access=udp,mux=ts,url=192.168.1.2}}'</userinput>
</screen>

<para>
<span xml:lang="en">Display the stream and send it to two unicast IP
addresses</span>
<span xml:lang="fr">Affichez le flux, et envoyez le sur deux adresses IP
unicast</span>
<span xml:lang="es">Muestra el flujo y lo envaa dos direcciones IP 
unicast</span>
<span xml:lang="de">Anzeige des Streams und Senden an zwei
Unicast-IP-Adressen</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#duplicate{dst=display,dst=
standard{access=udp,mux=ts,url=192.168.1.12},
dst=standard{access=udp,mux=ts,url=192.168.1.42}}'</userinput>
</screen>

</sect2>

<sect2><title>

<span xml:lang="en">Transcoding and multiple streaming</span>
<span xml:lang="fr">Transcodage et diffusion multiple</span>
<span xml:lang="es">Transcodificacin y transmisin mltiple</span>
<span xml:lang="de"> Umkodieren und multiples Streaming</span>
</title>

<para>
<span xml:lang="en">Transcode the input stream, display the transcoded
stream and send it to a multicast IP address with the associated SAP
announce and an unicast IP address</span>
<span xml:lang="fr">Transcodez le flux d'entre, affichez le flux
transcod, envoyez le sur une adresse IP multicast avec l'annonce SAP
aossicie, et sur une adresse IP unicast</span>
<span xml:lang="es">Transcodifica el flujo de entrada, muestra el flujo
transcodificado y lo enva a una direccin IP multicast con el correspondiente anuncio SAP asociado y a una direccin IP unicast</span>
<span xml:lang="de">Umkodieren des Input-Streams, Anzeige des umkodierten
Streams und senden dessen an eine Multicast-IP-Adresse mit der zugehrigen
SAP-Ankndigung und an eine Unicast-IP-Adresse</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:
duplicate{dst=display,dst=standard{access=udp,mux=ts,url=239.255.12.42,sap=TestStream},
dst=standard{access=udp,mux=ts,url=192.168.1.2}}'</userinput>
</screen>

<para>
<span xml:lang="en">Display the input stream, transcode it and send it
to two unicast IP addresses</span>
<span xml:lang="fr">Affichez le flux d'entre, transcodez-le, et
envoyez-le sur deux adresses IP unicast</span>
<span xml:lang="es">Muestra el flujo de entrada, lo transcodifica y lo enva
a dos direcciones IP unicast</span>
<span xml:lang="de">Anzeige des Input-Streams, Umkodierung dessen und
senden dessen an zwei Unicast-IP-Adressen</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#duplicate{dst=display,
dst="transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:
duplicate{dst=standard{access=udp,mux=ts,url=192.168.1.2},
dst=standard{access=udp,mux=ts,url=192.168.1.12}"}'</userinput>
</screen>

<para>
<span xml:lang="en">Send the input stream to a multicast IP address
and the transcoded stream to another multicast IP address with the
associated SAP announces</span>
<span xml:lang="fr">Envoyez le flux d'entre sur une adresse IP
multicast et le flux transcod sur une autre adresse IP multicast, avec
les annonces SAP associes</span>
<span xml:lang="es">Enva el flujo de entrada a una direccin IP multicast
y el flujo transcodificado a otra direccin IP multicast con los
correspondientes anuncios SAP asociados</span>
<span xml:lang="de">Senden des Input-Streams an eine Multicast-IP-Adresse
und des umkodierten Streams an eine andere Multicast-IP-Adresse mit der
zugehrigen SAP-Ankndigung</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#duplicate{dst=
standard{access=udp,mux=ts,url=239.255.1.2,sap=OriginalStream},
dst="transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:
standard{access=udp,mux=ts,url=239.255.1.3,sap=TranscodedStream}"}'</userinput>
</screen>

</sect2>

<sect2><title>
<span xml:lang="en">HTTP streaming</span>
<span xml:lang="fr">Diffusion HTTP</span>
<span xml:lang="es">Transmisin HTTP</span>
<span xml:lang="de">HTTP-Streaming</span>
</title>

<para>
<span xml:lang="en">Stream in HTTP</span>
<span xml:lang="fr">Diffusez en HTTP</span>
<span xml:lang="es">Transmitir en HTTP</span>
<span xml:lang="de">Streamen per HTTP</span>
:</para>

<itemizedlist>

<listitem><para>
<span xml:lang="en">on the server, run</span>
<span xml:lang="fr">sur le serveur, lancez</span>
<span xml:lang="es">en el servidor, ejecuta</span>
<span xml:lang="de">Fhren Sie auf dem Server aus</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#standard{access=http,mux=ogg,url=server.example.org:8080}'</userinput>
</screen>

</listitem>

<listitem><para>
<span xml:lang="en">on the client(s), run</span>
<span xml:lang="fr">sur le(s) client(s), lancez</span>
<span xml:lang="es">oen el/los cliente(s), ejecuta</span>
<span xml:lang="de">Fhren Sie bei den Clients aus</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc http://server.example.org:8080</userinput>
</screen>

</listitem>

</itemizedlist>

<para>
<span xml:lang="en">Transcode and stream in HTTP</span>
<span xml:lang="fr">Transcodez et envoyez en HTTP</span>
<span xml:lang="es">Transcodificacin y transmisin en HTTP</span>
<span xml:lang="de">Umkodieren und Streamen per HTTP</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:
standard{access=http,mux=ogg,url=server.example.org:8080}'</userinput>
</screen>

<para>
<span xml:lang="en">For example, if you want to stream an audio CD in
Ogg/Vorbis over HTTP</span>
<span xml:lang="fr">Par exemple, si vous dsirez diffuser un CD audio en
Ogg/Vorbis sur HTTP</span>
<span xml:lang="es">Por ejemplo, si tu quieres transmitir un CD de audio en
Ogg/Vorbis sobre HTTP</span>
<span xml:lang="de">Beispielsweise wenn Sie eine Audio-CD in Ogg/Vorbis
per HTTP streamen mchten</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv cdda:/dev/cdrom --sout '#transcode{acodec=vorb,ab=128}:
standard{access=http,mux=ogg,url=server.example.org:8080}'</userinput>
</screen>

</sect2>

<sect2><title>
<span xml:lang="en">RTP streaming</span>
<span xml:lang="fr">Diffusion RTP</span>
<span xml:lang="es">Transmisin RTP</span>
<span xml:lang="de">RTP-Streaming</span>
</title>

<para>
<span xml:lang="en">Stream in RTP</span>
<span xml:lang="fr">Diffusez en RTP</span>
<span xml:lang="es">Transmitir en RTP</span>
<span xml:lang="de">Streamen per RTP</span>
:</para>

<itemizedlist>

<listitem><para>
<span xml:lang="en">on the server, run</span>
<span xml:lang="fr">sur le serveur, lancez</span>
<span xml:lang="es">en el servidor, ejecuta</span>
<span xml:lang="de">Fhren Sie auf dem Server aus</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#rtp{dst=192.168.0.12,port=1234,sdp=http://server.example.org:8080/test.sdp}'</userinput>
</screen>

</listitem>

<listitem><para>
<span xml:lang="en">on the client(s), run</span>
<span xml:lang="fr">sur le(s) client(s), lancez</span>
<span xml:lang="es">en el/los cliente(s), ejecuta</span>
<span xml:lang="de">Fhren Sie bei den Clients aus</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc http://server.example.org:8080/test.sdp</userinput>
</screen>

</listitem>

</itemizedlist>

</sect2>


<sect2><title>
<span xml:lang="en">Use the <emphasis>es</emphasis> module</span>
<span xml:lang="fr">Utilisation du module <emphasis>es</emphasis></span>
<span xml:lang="es">Utilizacin del mdulo <emphasis>es</emphasis></span>
<span xml:lang="de">Benutzung des <emphasis>es</emphasis>-Moduls</span>
</title>

<para>
<span xml:lang="en">Separate audio and video in two PS files</span>
<span xml:lang="fr">Sparez l'audio et la vido en deux fichiers PS</span>
<span xml:lang="es">Separa el audio y el vdeoen dos fichero PS</span>
<span xml:lang="de">Teilen von Bild und Ton in zwei PS-Dateien</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout
'#es{access=file,mux=ps,url_audio=audio-%c.%m,url_video=video-%c.%m}'</userinput>
</screen>

<para>
<span xml:lang="en">Extract the audio track of the input stream to a TS
file</span>
<span xml:lang="fr">Extrayez la piste audio d'un flux, vers un fichier
TS</span>
<span xml:lang="es">Extrae la pista de sonido del flujo de entrada a un fichero TS</span>
<span xml:lang="de">Extrahieren der Tonspur des Input-Streams in eine
TS-Datei</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#es{access_audio=file,mux_audio=ts,url_audio=audio-%c.%m}'</userinput>
</screen>

<para>
<span xml:lang="en"> Stream in unicast the audio track on a port and the
video track on another port</span>
<span xml:lang="fr">Diffusez, en unicast, la piste audio sur un port et
la piste vido sur un autre</span>
<span xml:lang="es"> Transmite en unicast la pista de sonido en un puerto y el
vdeo en otro puerto</span>
<span xml:lang="de"> Streamen der Tonspur ber einen Port und der Bildspur
ber einen anderen Port per Unicast</span>
:</para>

<itemizedlist>

<listitem><para>
<span xml:lang="en">on the server side</span>
<span xml:lang="fr">Ct serveur</span>
<span xml:lang="es">en la parte servidor</span>
<span xml:lang="de">Auf der Serverseite</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout
'#es{access=rtp,mux=ts,url_audio=192.168.1.2:1212,url_video=192.168.1.2:1213}'</userinput>
</screen>

</listitem>

<listitem><para>
<span xml:lang="en">on the client side: to receive the audio</span>
<span xml:lang="fr">ct client: pour recevoir l'audio</span>
<span xml:lang="es">: en la parte cliente: para recibir el audio</span>
<span xml:lang="de">auf der Clientseite: Zum Empfangen des Tons</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc udp:@:1212</userinput>
</screen>


<para>
<span xml:lang="en">to receive the video</span>
<span xml:lang="fr">pour recevoir la vido</span>
<span xml:lang="es">para recibir el vdeo</span>
<span xml:lang="de">Zum Empfangen des Bildes</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc udp:@:1213</userinput>
</screen>

</listitem>

</itemizedlist>

<para>
<span xml:lang="en">Stream in multicast the video and dump the audio in
a file</span>
<span xml:lang="fr">Diffusez la vido en multicast et envoyez l'audio
dans un fichier</span>
<span xml:lang="es">Transmite el vdeo en multicast y enva el audio a
un fichero</span>
<span xml:lang="de">Streamen des Bildes per Multicast und speichern des Tons
in einer Datei</span>
:</para>

<screen>
<prompt>% </prompt><userinput>vlc -vvv input_stream --sout '#es{access_video=udp,mux_video=ts,url_video=239.255.12.42,
access_audio=file,mux_audio=ps,url_audio=audio-%c.%m}'</userinput>
</screen>

<note><para>
<span xml:lang="en">You can also combine the <emphasis>es</emphasis>
module with the other modules to set-up even more complex
solution</span>
<span xml:lang="fr">Vous pouvez galement combiner le module
<emphasis>es</emphasis> avec les autres modules pour laborer des
solutions encore plus complexes</span>
<span xml:lang="es">Puedes tambin combinar el mdulo <emphasis>es</emphasis> 
con otros mdulos para configurar soluciones incluso ms complicadas</span>
<span xml:lang="de">Sie knnen auch das <emphasis>es</emphasis>-Modul
mit den anderen Modulen kombinieren, um noch komplexere Lsungen
aufzusetzen</span>
.</para></note>

</sect2>
</sect1>
</chapter>