<HTML ><HEAD ><TITLE > Send announces when streaming with VLC </TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="VideoLAN HOWTO" HREF="index.html"><LINK REL="UP" TITLE=" Add a channel information service " HREF="sap.html"><LINK REL="PREVIOUS" TITLE=" Add a channel information service " HREF="sap.html"><LINK REL="NEXT" TITLE=" Send announces for the programs streamed by VLS with the mini-SAP-server " HREF="x1315.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >VideoLAN HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="sap.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 12. Add a channel information service</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x1315.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="AEN1299" ></A >12.1. Send announces when streaming with VLC</H1 ><P > To send announces with VLC, you need to use the complex syntax of VLC's stream output, like this: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <TT CLASS="prompt" >% </TT ><TT CLASS="userinput" ><B >vlc -vvv input_stream --sout '#standard{access=udp,url=239.255.12.42,sap="Test Stream"}' --ttl 12</B ></TT > </PRE ></FONT ></TD ></TR ></TABLE ><P >where <TT CLASS="filename" >video1.xyz</TT > is the file you want to stream, <EM >239.255.12.42</EM > is the multicast IP address you want to stream on, <EM >Test Stream</EM > is the name that will be used for this program in the SAP announces and <EM >12</EM > is the value of the TTL (Time To Live) of the stream and of the SAP announces.</P ><P > To do the SAP announces in IPv6, just add the <EM >sap_ipv=6</EM > option: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <TT CLASS="prompt" >% </TT ><TT CLASS="userinput" ><B >vlc -vvv input_stream --sout '#standard{access=udp,url=239.255.12.42,sap="Test Stream",sap_ipv=6}' --ttl 12</B ></TT > </PRE ></FONT ></TD ></TR ></TABLE ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="sap.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x1315.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Add a channel information service</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="sap.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Send announces for the programs streamed by VLS with the mini-SAP-server</TD ></TR ></TABLE ></DIV ></BODY ></HTML >