<HTML ><HEAD ><TITLE > Stream with VLS </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=" Stream from an acquisition card or a webcam " HREF="softencoding.html"><LINK REL="PREVIOUS" TITLE=" Stream with VLC " HREF="x988.html"><LINK REL="NEXT" TITLE=" Advanced use of VLC's stream output (transcoding, multiple streaming, etc...) " HREF="usesout.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="x988.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 8. Stream from an acquisition card or a webcam</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="usesout.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="AEN1074" ></A >8.3. Stream with VLS</H1 ><DIV CLASS="note" ><P ></P ><TABLE CLASS="note" WIDTH="100%" BORDER="0" ><TR ><TD WIDTH="25" ALIGN="CENTER" VALIGN="TOP" ><IMG SRC="../images/note.gif" HSPACE="5" ALT="Note"></TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P > You need the CVS version of VLS. When you compile it, you must do a <B CLASS="command" >./bootstrap</B > and <B CLASS="command" >./configure --enable-v4l --with-ffmpeg=PATH</B > (where <EM >PATH</EM > is the absolute path to the directory where you compiled ffmpeg, and not the relative path !) .</P ></TD ></TR ></TABLE ></DIV ><P > There is no command line interface for this input for the moment, so you will have to use the configuration file .</P ><P > Here is a typical configuration file <TT CLASS="filename" >vls.cfg</TT >to run VLS with a v4l device :</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > # vls.cfg (VLS configuration file) # Example of the VideoLAN HOWTO for the Video for Linux input BEGIN "Inputs" webcam = "v4l" END BEGIN "webcam" # V4L device Device = "/dev/video" # Channel Source : Webcam is often "0" # TV Card, may be Tuner(0), Composite(1), Svideo(2) Channel = "0" # Norm: PAL=0, NTSC=1, SECAM=2 Norm = "0" # Frequency of the channel in Mhz, multiplied by 16 (tuner cards only) Frequency = "7668" # Size possibilities: can be either: # - empty string : default size # - width x height # - subQCIF(128x96), QSIF(160x120), QCIF(176x144), SIF(320x240), # CIF(352x288), VGA (640x480) Size = "" # DeInterlace: "0" = no ; "1" = yes DeInterlace = "0" # Video compression format: "mpeg1" or "mpeg4" Compression = "mpeg4" # Video bitrate (approx.) in kbps Bitrate = "500" # Quality: "1.0" (good) to "31.0" (bad) Quality = "1.0" # Sound device AudioDevice = "/dev/dsp" # Audio compression format: "mp2", "mp3" or "ogg" AudioCompression = "mp2" # Audio bitrate in kpbs AudioBitrate = "64" # Audio frequency ("16000", "22050", "24000", "32000", "44100" or "48000") AudioFreq = "16000" # Audio channel: "1" = mono ; "2" = stereo AudioChannel = "2" END BEGIN "Channels" channel1 = "network" END BEGIN "channel1" # Unicast or multicast IP address DstHost = "192.168.0.42" # Destination port DstPort = "1234" # If it's a multicast IP address, uncomment the line below #Type = "multicast" # If it's a multicast IP address, set the "Time To Live" below #TTL = "12" END BEGIN "LaunchOnStartUp" command1 = "start video channel1 webcam" END </PRE ></FONT ></TD ></TR ></TABLE ><P > Once you have adapted the configuration file above, run VLS :</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <TT CLASS="prompt" >% </TT ><TT CLASS="userinput" ><B >vls -vv -f vls.cfg</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="x988.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="usesout.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Stream with VLC</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="softencoding.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Advanced use of VLC's stream output (transcoding, multiple streaming, etc...)</TD ></TR ></TABLE ></DIV ></BODY ></HTML >