<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MrGreg</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MrGreg"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/MrGreg/"/>
	<updated>2026-11-04T17:30:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=18967</id>
		<title>VLC HowTo/Stream to a website (simple version)</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=18967"/>
		<updated>2011-04-22T00:30:55Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following “How To” describes an easy method of using VLC as a simple video streamer to enable a live video stream (Eg web-cam) via VLC to be streamed from a web server across a local LAN or the Internet. This method does also work for streaming files and other media, CD, DVD Etc&lt;br /&gt;
Using this method of streaming from VLC allows the stream to be viewed from many media player clients other than VLC, which is often the case &lt;br /&gt;
The content and description is aimed at those who only have an elementary knowledge of VLC, Networking, and Web authoring / HTML.&lt;br /&gt;
This method is not the most sophisticated way to utilise VLC, but it does work well and has been tested on both LAN and WAN using VLC versions 0.9.8a, 0.9.9, 1.0.x. and 1.1.x&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== First checks ==&lt;br /&gt;
&lt;br /&gt;
First, I have to make some assumptions and you will have to do some checks.&lt;br /&gt;
&lt;br /&gt;
* You have a web site? If not see [[#Appendix]] at the bottom of this “HowTo”.&lt;br /&gt;
* Your website works OK and is on your own web server on the same machine as VLC?&lt;br /&gt;
* If your website is for external viewing (internet), you have a static IP and are not behind a proxy server?&lt;br /&gt;
* Your ISP is not blocking any ports&lt;br /&gt;
* Your firewall is not blocking any ports that you want to stream through. (Port 1234 for the example below)&lt;br /&gt;
&lt;br /&gt;
I also assume you are using a NAT router with port forwarding for both the website and port to be used by the video stream.&lt;br /&gt;
You have sufficient upstream bandwidth to support the size of video stream (See [[#Note 1]])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
&lt;br /&gt;
This HowTo was written with previous versions in mind, so the descriptions of the VLC User Interface may differ slightly.&lt;br /&gt;
&lt;br /&gt;
The following technique only works (tested so far) using the Windows encapsulation method asf/wmv (and asf/div3 VLC 1.0.0) selected from the Custom menu in the VLC Streaming Settings window.&lt;br /&gt;
(other methods may work, I have not tested them all)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The method ==&lt;br /&gt;
&lt;br /&gt;
The following method/technique uses a “metafile” or redirector. You might want to check out the terms ”metafile”, “redirector” and “.asx” for further information&lt;br /&gt;
&lt;br /&gt;
Firstly create a text file (Eg in Notepad) and copy and paste the following&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;TITLE&amp;gt;Stream1234&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;lt;nowiki&amp;gt;&amp;quot;http://192.168.0.42:1234&amp;quot;&amp;lt;/nowiki&amp;gt; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where the HREF value is your local LAN IP for a LAN ONLY website.&lt;br /&gt;
Or&lt;br /&gt;
The HREF value is your external (Internet) IP for a WAN ONLY website&lt;br /&gt;
The port number (Eg :1234) is the port you will allocate in VLC Streaming settings window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The text file should then be saved as a .asx file. I suggest you create two such files. One for LAN and one for WAN (See [[#Note 3]])&amp;amp; (See [[#Note 5]])&lt;br /&gt;
* Eg localstream1234.asx for the LAN version using your internal LAN IP&lt;br /&gt;
* Eg extstream1234.asx for the WAN version using your external WAN IP&lt;br /&gt;
&lt;br /&gt;
Place these .asx files in your web server dir.&lt;br /&gt;
&lt;br /&gt;
Create a links in a web page that point to the above .asx files. When the link is activated, a pop out player will stream.&lt;br /&gt;
Or Eg&lt;br /&gt;
Embed the stream on a page by the following in html&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;embed src=&amp;quot;localstream1234.asx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or Eg&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;embed src=&amp;quot;localstream1234.asx” height=”370” width=”400&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To resize the video on the web page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Now for VLC ===&lt;br /&gt;
&lt;br /&gt;
First check your video source (TV card, Video capture device, webcam etc) is working OK and playing through VLC OK using the Play option&lt;br /&gt;
Select Streaming.&lt;br /&gt;
Select Source, Capture device for this example (and any necessary additional settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check play locally box&lt;br /&gt;
Check or select/add http box LEAVE the ADDRESS FIELD BLANK!! Change the port number to 1234 (for this example)&lt;br /&gt;
Select “Windows asf/wmv” in the Custom dropdown selection box&lt;br /&gt;
You may need to alter the TTL value to allow more buffering, a value of 0 or 1 should be OK (no more than 12 should be necessary) as this increases delay from live&lt;br /&gt;
Then select Next and/or Stream&lt;br /&gt;
VLC should open with a local display stream, which should display the stream and an overlay text displaying “streaming” for a few seconds.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If this does not work… Obviously… Something is wrong! First check the, Main Menu selection, Tools dropdown item “Messages” for suggestions as to the cause of error and also re check all the above instructions/settings.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If all is well, then.&lt;br /&gt;
Now check out your LAN website from another machine on your LAN linking to (localstream1234.asx) The stream may take up to 30 secs to display.&lt;br /&gt;
OK? If not then go back and check it all out again.&lt;br /&gt;
Now get a friend/other to test out the WAN links from another external location.&lt;br /&gt;
(See [[#Note 4]])&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
I have found this method to work well on LAN and WAN&lt;br /&gt;
It does not need VLC to be at the client end. It also does not need or employ any Java on the client or server machine. All it requires is the ability of a browser and its associated media player to be able to display the now universal ”.asf” stream which most can.&lt;br /&gt;
&lt;br /&gt;
LAN tested with browsers:&lt;br /&gt;
* MS IE via MS Media Player&lt;br /&gt;
* Realplayer pointing at URL/xxxxxx.asx&lt;br /&gt;
* Firefox via MPlayer and MS Media Player&lt;br /&gt;
* Konquorer via Kaffeine&lt;br /&gt;
* Kaffeine pointing at URL/xxxxxxx.asx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
WAN Tested with browsers:&lt;br /&gt;
* MS IE via MS Media Player&lt;br /&gt;
* Mozilla Firefox via MS Media Player and Real Player&lt;br /&gt;
&lt;br /&gt;
And. Of course VLC Player in all cases.&lt;br /&gt;
&lt;br /&gt;
I have successfully used this method of serving from MS Windows XPpro IIS 5.1 and Apache 2.2 and also Linux Ubuntu 8.04 LTS Apache 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Note 1 ===&lt;br /&gt;
How much &#039;&#039;&#039;bandwidth&#039;&#039;&#039; do I need for a given size of video stream?&lt;br /&gt;
&lt;br /&gt;
A very good question with no straight answer. It depends on how good the encoding/compression is and other factors like the amount of dynamic activity there is going on. It can vary quite a bit during the video sequence. “Pixel noise” generated by the camera and capture hardware can have an effect as well.&lt;br /&gt;
An empirical method to determine this would be to run a test video across a LAN using the hardware and software and employing a network analyser to measure the bandwidth used.&lt;br /&gt;
&lt;br /&gt;
=== Note 2 ===&lt;br /&gt;
Following on from Note 1, The overall &#039;&#039;&#039;system capability&#039;&#039;&#039; will also determine how effectively the video stream can be encoded, compressed and streamed.&lt;br /&gt;
 &lt;br /&gt;
The more system CPU power available the better! As a minimum The method above will just about work with a video size of 384x288 streamed from VLC using a totally dedicated server at 800MHz cpu + 512 MB RAM with good hardware in good light. Employing wmv/asf encoding and an uplink bandwidth sync of 832 (circa real700K) It is more than likely that you will have to adjust the picture size to the bandwidth you have available. Also note that USB video capture devices tend to use a great deal of CPU/system resource, so do check out how much spare capacity you have when everything is running, including your server when it is “Serving” a stream?&lt;br /&gt;
&lt;br /&gt;
=== Note 3 ===&lt;br /&gt;
If you are using classical routing (No NAT) then the local and external IP will (probably) be the same unless you have an unusual configuration.&lt;br /&gt;
&lt;br /&gt;
=== Note 4 ===&lt;br /&gt;
It is &#039;&#039;not&#039;&#039; usually possible to view the streaming output of a LAN from the WAN side. Also it is not usually possible to view the streaming going out on the WAN from the LAN side.&lt;br /&gt;
&lt;br /&gt;
This makes testing more difficult! (The exception to this being note 3, that is the LAN and WAN having the same IP)&lt;br /&gt;
I suggest that this streaming method is first tested and proved on your LAN. Then test out the WAN stream by calling someone to test it from a remote location on the www.&lt;br /&gt;
&lt;br /&gt;
=== Note 5 ===&lt;br /&gt;
The choice of &#039;&#039;&#039;port you use&#039;&#039;&#039; is up to you. Port 1234 is as good as any for LAN (over 1024 is better), but a port at or above 8080 would be more appropriate for WAN (the Internet).&lt;br /&gt;
&lt;br /&gt;
Do check that your chosen port is not being used by another application. First place to look would be in your firewall and router settings when you open that port for your stream.&lt;br /&gt;
&lt;br /&gt;
Finally.  If you have got all this working and want to try a slightly more sophisticated stream to website, follow the White Rabbit (link below)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Stream_VLC_to_Website_with_asf_and_Flash]]&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
What!!!? Web servers and streaming from website&lt;br /&gt;
Not got a web site? Not got a web server? No clue where to start? Find the whole idea rather daunting? Well it is probably much easier than you thought. First you will need a web server. The following link is to “Apache httpd”. The Apache web server is as simple or as sophisticated as you want it to be. It is well documented on the web and many books are available. And it is free.&lt;br /&gt;
&lt;br /&gt;
http://httpd.apache.org/&lt;br /&gt;
&lt;br /&gt;
I would avoid use of MS IIS 5.1 as supplied with XP Pro on anything other than a LAN as it poses many security issues on the www for a novice.&lt;br /&gt;
&lt;br /&gt;
Next you will need a web page creator/editor and some guidance on how to use it. Take a look here: [http://www.thesitewizard.com/gettingstarted/kompozer-tutorial-1.shtml Kompozer Tutorial].&lt;br /&gt;
&lt;br /&gt;
Again Kompozer is free and very simple to use. The only html that will need to be added to make this work is the examples given previously.&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=18966</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=18966"/>
		<updated>2011-04-22T00:20:37Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Method 1 wmv/div3 - asf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
Example tweaks. Look these up in the command line help link.&lt;br /&gt;
&lt;br /&gt;
--sout-keep    Keeps your stream open and listening.&lt;br /&gt;
&lt;br /&gt;
--audio-desync=&amp;lt;integer&amp;gt;    To preset and synchronise your audio to video, you can +/- the integer.&lt;br /&gt;
&lt;br /&gt;
audio-sync    To maintain audio/video synchronisation on the fly. This command will sit inside your sout=#transcode string, Eg after samplerate=xxxxx.&lt;br /&gt;
&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP (and ffmpeg-x264 enabled Linux) users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for (stripped ffmpeg) Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
As of Ubuntu 10.04 – VLC 1.0.6 there is a more complete and up to date version of ffmpeg and x264 support in the standard repos&#039;. Eg libavdevice-extra52 &amp;amp; x264. Note VideoLan currently recommends VLC versions 1.1.x . See VideoLan Ubuntu Downloads page for further information&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dst=0.0.0.0 but some linux versions require the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
#6      The quality of the video input is also very important. Low quality webcams, camera and capture devices, noisy TV input devices will give even more disappointing results when transcoded.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the double quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax in Windows , for Linux use the single quotation marks &#039;&amp;lt;xxx&amp;gt;&#039;) you would enter this at the command prompt path at C:/program files/videolan/vlc .  You will also have to add quotation marks around any devices in MS Windows (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line. Note, avoid using &amp;quot;word wrap&amp;quot; in the text editor, it can sometimes introduce unwanted characters in the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=18965</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=18965"/>
		<updated>2011-04-22T00:06:59Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
Example tweaks. Look these up in the command line help link.&lt;br /&gt;
&lt;br /&gt;
--sout-keep    Keeps your stream open and listening.&lt;br /&gt;
&lt;br /&gt;
--audio-desync=&amp;lt;integer&amp;gt;    To preset and synchronise your audio to video, you can +/- the integer.&lt;br /&gt;
&lt;br /&gt;
audio-sync    To maintain audio/video synchronisation on the fly. This command will sit inside your sout=#transcode string, Eg after samplerate=xxxxx.&lt;br /&gt;
&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP (and ffmpeg-x264 enabled Linux) users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for (stripped ffmpeg) Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
As of Ubuntu 10.04 – VLC 1.0.6 there is a more complete and up to date version of ffmpeg and x264 support in the standard repos&#039;. Eg libavdevice-extra52 &amp;amp; x264. Note VideoLan currently recommends VLC versions 1.1.x . See VideoLan Ubuntu Downloads page for further information&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dst=0.0.0.0 but some linux versions require the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
#6      The quality of the video input is also very important. Low quality webcams, camera and capture devices, noisy TV input devices will give even more disappointing results when transcoded.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the double quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax in Windows , for Linux use the single quotation marks &#039;&amp;lt;xxx&amp;gt;&#039;) you would enter this at the command prompt path at C:/program files/videolan/vlc .  You will also have to add quotation marks around any devices in MS Windows (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line. Note, avoid using &amp;quot;word wrap&amp;quot; in the text editor, it can sometimes introduce unwanted characters in the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=18709</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=18709"/>
		<updated>2011-02-16T01:26:59Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: minor syntax edit to Appendix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
Example tweaks. Look these up in the command line help link.&lt;br /&gt;
&lt;br /&gt;
--sout-keep    Keeps your stream open and listening.&lt;br /&gt;
&lt;br /&gt;
--audio-desync=&amp;lt;integer&amp;gt;    To preset and synchronise your audio to video, you can +/- the integer.&lt;br /&gt;
&lt;br /&gt;
audio-sync    To maintain audio/video synchronisation on the fly. This command will sit inside your sout=#transcode string, Eg after samplerate=xxxxx.&lt;br /&gt;
&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP (and ffmpeg-x264 enabled Linux) users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for (stripped ffmpeg) Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
As of Ubuntu 10.04 – VLC 1.0.6 there is a more complete and up to date version of ffmpeg and x264 support in the standard repos&#039;. Eg libavdevice-extra52 &amp;amp; x264. Note VideoLan currently recommends VLC versions 1.1.x . See VideoLan Ubuntu Downloads page for further information&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the double quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax in Windows , for Linux use the single quotation marks &#039;&amp;lt;xxx&amp;gt;&#039;) you would enter this at the command prompt path at C:/program files/videolan/vlc .  You will also have to add quotation marks around any devices in MS Windows (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line. Note, avoid using &amp;quot;word wrap&amp;quot; in the text editor, it can sometimes introduce unwanted characters in the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17962</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17962"/>
		<updated>2010-11-25T22:44:48Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Appendix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
Example tweaks. Look these up in the command line help link.&lt;br /&gt;
&lt;br /&gt;
--sout-keep    Keeps your stream open and listening.&lt;br /&gt;
&lt;br /&gt;
--audio-desync=&amp;lt;integer&amp;gt;    To preset and synchronise your audio to video, you can +/- the integer.&lt;br /&gt;
&lt;br /&gt;
audio-sync    To maintain audio/video synchronisation on the fly. This command will sit inside your sout=#transcode string, Eg after samplerate=xxxxx.&lt;br /&gt;
&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP (and ffmpeg-x264 enabled Linux) users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for (stripped ffmpeg) Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
As of Ubuntu 10.04 – VLC 1.0.6 there is a more complete and up to date version of ffmpeg and x264 support in the standard repos&#039;. Eg libavdevice-extra52 &amp;amp; x264. Note VideoLan currently recommends VLC versions 1.1.x . See VideoLan Ubuntu Downloads page for further information&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the double quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax in Windows , for Linux use the single quotation marks &#039;&amp;lt;xxx&amp;gt;&#039;) you would enter this at the command prompt path at C:/program files/videolan/vlc .  You will also have to add quotation marks around any devices (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line. Note, avoid using &amp;quot;word wrap&amp;quot; in the text editor, it can sometimes introduce unwanted characters in the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17961</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17961"/>
		<updated>2010-11-25T22:26:34Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Method 2 H264 and Flash  .flv */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
Example tweaks. Look these up in the command line help link.&lt;br /&gt;
&lt;br /&gt;
--sout-keep    Keeps your stream open and listening.&lt;br /&gt;
&lt;br /&gt;
--audio-desync=&amp;lt;integer&amp;gt;    To preset and synchronise your audio to video, you can +/- the integer.&lt;br /&gt;
&lt;br /&gt;
audio-sync    To maintain audio/video synchronisation on the fly. This command will sit inside your sout=#transcode string, Eg after samplerate=xxxxx.&lt;br /&gt;
&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP (and ffmpeg-x264 enabled Linux) users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for (stripped ffmpeg) Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
As of Ubuntu 10.04 – VLC 1.0.6 there is a more complete and up to date version of ffmpeg and x264 support in the standard repos&#039;. Eg libavdevice-extra52 &amp;amp; x264. Note VideoLan currently recommends VLC versions 1.1.x . See VideoLan Ubuntu Downloads page for further information&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc.exe.  You will also have to add quotation marks around any spaces (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17960</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17960"/>
		<updated>2010-11-25T22:14:06Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Tweaking */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
Example tweaks. Look these up in the command line help link.&lt;br /&gt;
&lt;br /&gt;
--sout-keep    Keeps your stream open and listening.&lt;br /&gt;
&lt;br /&gt;
--audio-desync=&amp;lt;integer&amp;gt;    To preset and synchronise your audio to video, you can +/- the integer.&lt;br /&gt;
&lt;br /&gt;
audio-sync    To maintain audio/video synchronisation on the fly. This command will sit inside your sout=#transcode string, Eg after samplerate=xxxxx.&lt;br /&gt;
&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc.exe.  You will also have to add quotation marks around any spaces (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17959</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17959"/>
		<updated>2010-11-25T21:58:26Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Limitations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.0.1 to 1.1.4 for Win XP.and VLC 0.9.9a to 1.0.6 for Ubuntu Linux. (8.04 &amp;amp; 10.04) Earlier versions may work but have not been tested.&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04 &amp;amp; 10.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc.exe.  You will also have to add quotation marks around any spaces (see example below).&lt;br /&gt;
Also note, in this example, video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the (generated) input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15617</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15617"/>
		<updated>2010-03-03T23:35:11Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Method 1 wmv/div3 - asf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15616</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15616"/>
		<updated>2010-03-03T23:30:12Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Method 2 H264 and Flash  .flv */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#  vb=600&lt;br /&gt;
#  fps=25&lt;br /&gt;
# Remove scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
 :sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15614</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15614"/>
		<updated>2010-03-03T23:17:09Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Method 1 wmv/div3 - asf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
# vb changed to vb=400&lt;br /&gt;
# Added fps=15&lt;br /&gt;
# Removed scale=1&lt;br /&gt;
# Added width=256&lt;br /&gt;
# Added height=192&lt;br /&gt;
# I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
# ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
1.  vb reduced again to 200&lt;br /&gt;
&lt;br /&gt;
2.  Added fps=15&lt;br /&gt;
&lt;br /&gt;
3.  ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#1  vb=600&lt;br /&gt;
#2  fps=25&lt;br /&gt;
#3 Remove scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15613</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15613"/>
		<updated>2010-03-03T22:59:52Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Description of command parameters used in the methods following */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&amp;lt;!-- this is not needed, this is the title: &#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This HowTo is intended to be a follow on from [[Simple_Stream_VLC_to_Website]] wiki page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction &amp;amp; Scope ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Simple Stream VLC to Website&amp;quot; wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
== Checks and prerequisites == &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction to the VLC Command line ==&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output]]&lt;br /&gt;
* [[Documentation:Streaming_HowTo/Command_Line_Examples]]&lt;br /&gt;
* [[VLC_command-line_help]]&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
== Description of command parameters used in the methods following ==&lt;br /&gt;
&lt;br /&gt;
vb=xx    Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
&lt;br /&gt;
ab=xx    Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
&lt;br /&gt;
fps=xx    Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
&lt;br /&gt;
width=xx &amp;amp; height=xx    Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
&lt;br /&gt;
deinterlace=&amp;lt;option or none=default&amp;gt;    This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
&lt;br /&gt;
scale=xx    determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
== Transcode Strategies == &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tweaking ==&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 1 wmv/div3 - asf ===&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
#1 vb changed to vb=400&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 Removed scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
#1 vb reduced again to 200&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
  &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
    &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
&amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Method 2 H264 and Flash  .flv ===&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#1  vb=600&lt;br /&gt;
#2  fps=25&lt;br /&gt;
#3 Remove scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=15543</id>
		<title>VLC HowTo/Stream to a website (simple version)</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=15543"/>
		<updated>2010-02-18T21:50:34Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Note 5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following “How To” describes an easy method of using VLC as a simple video streamer to enable a live video stream (Eg web-cam) via VLC to be streamed from a web server across a local LAN or the Internet. This method does also work for streaming files and other media, CD, DVD Etc&lt;br /&gt;
Using this method of streaming from VLC allows the stream to be viewed from many media player clients other than VLC, which is often the case &lt;br /&gt;
The content and description is aimed at those who only have an elementary knowledge of VLC, Networking, and Web authoring / HTML.&lt;br /&gt;
This method is not the most sophisticated way to utilise VLC, but it does work well and has been tested on both LAN and WAN using VLC 0.9.8a, 9.9 and 1.0.0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== First checks ==&lt;br /&gt;
&lt;br /&gt;
First, I have to make some assumptions and you will have to do some checks.&lt;br /&gt;
&lt;br /&gt;
* You have a web site? If not see [[#Appendix]] at the bottom of this “HowTo”.&lt;br /&gt;
* Your website works OK and is on your own web server on the same machine as VLC?&lt;br /&gt;
* If your website is for external viewing (internet), you have a static IP and are not behind a proxy server?&lt;br /&gt;
* Your ISP is not blocking any ports&lt;br /&gt;
* Your firewall is not blocking any ports that you want to stream through. (Port 1234 for the example below)&lt;br /&gt;
&lt;br /&gt;
I also assume you are using a NAT router with port forwarding for both the website and port to be used by the video stream.&lt;br /&gt;
You have sufficient upstream bandwidth to support the size of video stream (See [[#Note 1]])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
&lt;br /&gt;
This HowTo was written with previous versions in mind, so the descriptions of the VLC User Interface may differ slightly.&lt;br /&gt;
&lt;br /&gt;
The following technique only works (tested so far) using the Windows encapsulation method asf/wmv (and asf/div3 VLC 1.0.0) selected from the Custom menu in the VLC Streaming Settings window.&lt;br /&gt;
(other methods may work, I have not tested them all)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The method ==&lt;br /&gt;
&lt;br /&gt;
The following method/technique uses a “metafile” or redirector. You might want to check out the terms ”metafile”, “redirector” and “.asx” for further information&lt;br /&gt;
&lt;br /&gt;
Firstly create a text file (Eg in Notepad) and copy and paste the following&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;TITLE&amp;gt;Stream1234&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;lt;nowiki&amp;gt;&amp;quot;http://192.168.0.42:1234&amp;quot;&amp;lt;/nowiki&amp;gt; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where the HREF value is your local LAN IP for a LAN ONLY website.&lt;br /&gt;
Or&lt;br /&gt;
The HREF value is your external (Internet) IP for a WAN ONLY website&lt;br /&gt;
The port number (Eg :1234) is the port you will allocate in VLC Streaming settings window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The text file should then be saved as a .asx file. I suggest you create two such files. One for LAN and one for WAN (See [[#Note 3]])&amp;amp; (See [[#Note 5]])&lt;br /&gt;
* Eg localstream1234.asx for the LAN version using your internal LAN IP&lt;br /&gt;
* Eg extstream1234.asx for the WAN version using your external WAN IP&lt;br /&gt;
&lt;br /&gt;
Place these .asx files in your web server dir.&lt;br /&gt;
&lt;br /&gt;
Create a links in a web page that point to the above .asx files. When the link is activated, a pop out player will stream.&lt;br /&gt;
Or Eg&lt;br /&gt;
Embed the stream on a page by the following in html&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;embed src=&amp;quot;localstream1234.asx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or Eg&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;embed src=&amp;quot;localstream1234.asx” height=”370” width=”400&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To resize the video on the web page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Now for VLC ===&lt;br /&gt;
&lt;br /&gt;
First check your video source (TV card, Video capture device, webcam etc) is working OK and playing through VLC OK using the Play option&lt;br /&gt;
Select Streaming.&lt;br /&gt;
Select Source, Capture device for this example (and any necessary additional settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check play locally box&lt;br /&gt;
Check or select/add http box LEAVE the ADDRESS FIELD BLANK!! Change the port number to 1234 (for this example)&lt;br /&gt;
Select “Windows asf/wmv” in the Custom dropdown selection box&lt;br /&gt;
You may need to alter the TTL value to allow more buffering, a value of 0 or 1 should be OK (no more than 12 should be necessary) as this increases delay from live&lt;br /&gt;
Then select Next and/or Stream&lt;br /&gt;
VLC should open with a local display stream, which should display the stream and an overlay text displaying “streaming” for a few seconds.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If this does not work… Obviously… Something is wrong! First check the, Main Menu selection, Tools dropdown item “Messages” for suggestions as to the cause of error and also re check all the above instructions/settings.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If all is well, then.&lt;br /&gt;
Now check out your LAN website from another machine on your LAN linking to (localstream1234.asx) The stream may take up to 30 secs to display.&lt;br /&gt;
OK? If not then go back and check it all out again.&lt;br /&gt;
Now get a friend/other to test out the WAN links from another external location.&lt;br /&gt;
(See [[#Note 4]])&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
I have found this method to work well on LAN and WAN&lt;br /&gt;
It does not need VLC to be at the client end. It also does not need or employ any Java on the client or server machine. All it requires is the ability of a browser and its associated media player to be able to display the now universal ”.asf” stream which most can.&lt;br /&gt;
&lt;br /&gt;
LAN tested with browsers:&lt;br /&gt;
* MS IE via MS Media Player&lt;br /&gt;
* Realplayer pointing at URL/xxxxxx.asx&lt;br /&gt;
* Firefox via MPlayer and MS Media Player&lt;br /&gt;
* Konquorer via Kaffeine&lt;br /&gt;
* Kaffeine pointing at URL/xxxxxxx.asx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
WAN Tested with browsers:&lt;br /&gt;
* MS IE via MS Media Player&lt;br /&gt;
* Mozilla Firefox via MS Media Player and Real Player&lt;br /&gt;
&lt;br /&gt;
And. Of course VLC Player in all cases.&lt;br /&gt;
&lt;br /&gt;
I have successfully used this method of serving from MS Windows XPpro IIS 5.1 and Apache 2.2 and also Linux Ubuntu 8.04 LTS Apache 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Note 1 ===&lt;br /&gt;
How much &#039;&#039;&#039;bandwidth&#039;&#039;&#039; do I need for a given size of video stream?&lt;br /&gt;
&lt;br /&gt;
A very good question with no straight answer. It depends on how good the encoding/compression is and other factors like the amount of dynamic activity there is going on. It can vary quite a bit during the video sequence. “Pixel noise” generated by the camera and capture hardware can have an effect as well.&lt;br /&gt;
An empirical method to determine this would be to run a test video across a LAN using the hardware and software and employing a network analyser to measure the bandwidth used.&lt;br /&gt;
&lt;br /&gt;
=== Note 2 ===&lt;br /&gt;
Following on from Note 1, The overall &#039;&#039;&#039;system capability&#039;&#039;&#039; will also determine how effectively the video stream can be encoded, compressed and streamed.&lt;br /&gt;
 &lt;br /&gt;
The more system CPU power available the better! As a minimum The method above will just about work with a video size of 384x288 streamed from VLC using a totally dedicated server at 800MHz cpu + 512 MB RAM with good hardware in good light. Employing wmv/asf encoding and an uplink bandwidth sync of 832 (circa real700K) It is more than likely that you will have to adjust the picture size to the bandwidth you have available. Also note that USB video capture devices tend to use a great deal of CPU/system resource, so do check out how much spare capacity you have when everything is running, including your server when it is “Serving” a stream?&lt;br /&gt;
&lt;br /&gt;
=== Note 3 ===&lt;br /&gt;
If you are using classical routing (No NAT) then the local and external IP will (probably) be the same unless you have an unusual configuration.&lt;br /&gt;
&lt;br /&gt;
=== Note 4 ===&lt;br /&gt;
It is &#039;&#039;not&#039;&#039; usually possible to view the streaming output of a LAN from the WAN side. Also it is not usually possible to view the streaming going out on the WAN from the LAN side.&lt;br /&gt;
&lt;br /&gt;
This makes testing more difficult! (The exception to this being note 3, that is the LAN and WAN having the same IP)&lt;br /&gt;
I suggest that this streaming method is first tested and proved on your LAN. Then test out the WAN stream by calling someone to test it from a remote location on the www.&lt;br /&gt;
&lt;br /&gt;
=== Note 5 ===&lt;br /&gt;
The choice of &#039;&#039;&#039;port you use&#039;&#039;&#039; is up to you. Port 1234 is as good as any for LAN (over 1024 is better), but a port at or above 8080 would be more appropriate for WAN (the Internet).&lt;br /&gt;
&lt;br /&gt;
Do check that your chosen port is not being used by another application. First place to look would be in your firewall and router settings when you open that port for your stream.&lt;br /&gt;
&lt;br /&gt;
Finally.  If you have got all this working and want to try a slightly more sophisticated stream to website, follow the White Rabbit (link below)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[http://wiki.videolan.org/Stream_VLC_to_Website_with_asf_and_Flash]]&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
What!!!? Web servers and streaming from website&lt;br /&gt;
Not got a web site? Not got a web server? No clue where to start? Find the whole idea rather daunting? Well it is probably much easier than you thought. First you will need a web server. The following link is to “Apache httpd”. The Apache web server is as simple or as sophisticated as you want it to be. It is well documented on the web and many books are available. And it is free.&lt;br /&gt;
&lt;br /&gt;
http://httpd.apache.org/&lt;br /&gt;
&lt;br /&gt;
I would avoid use of MS IIS 5.1 as supplied with XP Pro on anything other than a LAN as it poses many security issues on the www for a novice.&lt;br /&gt;
&lt;br /&gt;
Next you will need a web page creator/editor and some guidance on how to use it. Take a look here&lt;br /&gt;
&lt;br /&gt;
http://www.thesitewizard.com/gettingsta ... al-1.shtml&lt;br /&gt;
&lt;br /&gt;
Again Kompozer is free and very simple to use. The only html that will need to be added to make this work is the examples given previously.&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=15542</id>
		<title>VLC HowTo/Stream to a website (simple version)</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=15542"/>
		<updated>2010-02-18T20:39:39Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: /* Note 5 */  minor edit and added link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following “How To” describes an easy method of using VLC as a simple video streamer to enable a live video stream (Eg web-cam) via VLC to be streamed from a web server across a local LAN or the Internet. This method does also work for streaming files and other media, CD, DVD Etc&lt;br /&gt;
Using this method of streaming from VLC allows the stream to be viewed from many media player clients other than VLC, which is often the case &lt;br /&gt;
The content and description is aimed at those who only have an elementary knowledge of VLC, Networking, and Web authoring / HTML.&lt;br /&gt;
This method is not the most sophisticated way to utilise VLC, but it does work well and has been tested on both LAN and WAN using VLC 0.9.8a, 9.9 and 1.0.0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== First checks ==&lt;br /&gt;
&lt;br /&gt;
First, I have to make some assumptions and you will have to do some checks.&lt;br /&gt;
&lt;br /&gt;
* You have a web site? If not see [[#Appendix]] at the bottom of this “HowTo”.&lt;br /&gt;
* Your website works OK and is on your own web server on the same machine as VLC?&lt;br /&gt;
* If your website is for external viewing (internet), you have a static IP and are not behind a proxy server?&lt;br /&gt;
* Your ISP is not blocking any ports&lt;br /&gt;
* Your firewall is not blocking any ports that you want to stream through. (Port 1234 for the example below)&lt;br /&gt;
&lt;br /&gt;
I also assume you are using a NAT router with port forwarding for both the website and port to be used by the video stream.&lt;br /&gt;
You have sufficient upstream bandwidth to support the size of video stream (See [[#Note 1]])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
&lt;br /&gt;
This HowTo was written with previous versions in mind, so the descriptions of the VLC User Interface may differ slightly.&lt;br /&gt;
&lt;br /&gt;
The following technique only works (tested so far) using the Windows encapsulation method asf/wmv (and asf/div3 VLC 1.0.0) selected from the Custom menu in the VLC Streaming Settings window.&lt;br /&gt;
(other methods may work, I have not tested them all)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The method ==&lt;br /&gt;
&lt;br /&gt;
The following method/technique uses a “metafile” or redirector. You might want to check out the terms ”metafile”, “redirector” and “.asx” for further information&lt;br /&gt;
&lt;br /&gt;
Firstly create a text file (Eg in Notepad) and copy and paste the following&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;TITLE&amp;gt;Stream1234&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
   &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
     &amp;lt;REF HREF=&amp;lt;nowiki&amp;gt;&amp;quot;http://192.168.0.42:1234&amp;quot;&amp;lt;/nowiki&amp;gt; /&amp;gt;&lt;br /&gt;
   &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
 &amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where the HREF value is your local LAN IP for a LAN ONLY website.&lt;br /&gt;
Or&lt;br /&gt;
The HREF value is your external (Internet) IP for a WAN ONLY website&lt;br /&gt;
The port number (Eg :1234) is the port you will allocate in VLC Streaming settings window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The text file should then be saved as a .asx file. I suggest you create two such files. One for LAN and one for WAN (See [[#Note 3]])&amp;amp; (See [[#Note 5]])&lt;br /&gt;
* Eg localstream1234.asx for the LAN version using your internal LAN IP&lt;br /&gt;
* Eg extstream1234.asx for the WAN version using your external WAN IP&lt;br /&gt;
&lt;br /&gt;
Place these .asx files in your web server dir.&lt;br /&gt;
&lt;br /&gt;
Create a links in a web page that point to the above .asx files. When the link is activated, a pop out player will stream.&lt;br /&gt;
Or Eg&lt;br /&gt;
Embed the stream on a page by the following in html&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;embed src=&amp;quot;localstream1234.asx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or Eg&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;embed src=&amp;quot;localstream1234.asx” height=”370” width=”400&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To resize the video on the web page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Now for VLC ===&lt;br /&gt;
&lt;br /&gt;
First check your video source (TV card, Video capture device, webcam etc) is working OK and playing through VLC OK using the Play option&lt;br /&gt;
Select Streaming.&lt;br /&gt;
Select Source, Capture device for this example (and any necessary additional settings)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check play locally box&lt;br /&gt;
Check or select/add http box LEAVE the ADDRESS FIELD BLANK!! Change the port number to 1234 (for this example)&lt;br /&gt;
Select “Windows asf/wmv” in the Custom dropdown selection box&lt;br /&gt;
You may need to alter the TTL value to allow more buffering, a value of 0 or 1 should be OK (no more than 12 should be necessary) as this increases delay from live&lt;br /&gt;
Then select Next and/or Stream&lt;br /&gt;
VLC should open with a local display stream, which should display the stream and an overlay text displaying “streaming” for a few seconds.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If this does not work… Obviously… Something is wrong! First check the, Main Menu selection, Tools dropdown item “Messages” for suggestions as to the cause of error and also re check all the above instructions/settings.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If all is well, then.&lt;br /&gt;
Now check out your LAN website from another machine on your LAN linking to (localstream1234.asx) The stream may take up to 30 secs to display.&lt;br /&gt;
OK? If not then go back and check it all out again.&lt;br /&gt;
Now get a friend/other to test out the WAN links from another external location.&lt;br /&gt;
(See [[#Note 4]])&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
I have found this method to work well on LAN and WAN&lt;br /&gt;
It does not need VLC to be at the client end. It also does not need or employ any Java on the client or server machine. All it requires is the ability of a browser and its associated media player to be able to display the now universal ”.asf” stream which most can.&lt;br /&gt;
&lt;br /&gt;
LAN tested with browsers:&lt;br /&gt;
* MS IE via MS Media Player&lt;br /&gt;
* Realplayer pointing at URL/xxxxxx.asx&lt;br /&gt;
* Firefox via MPlayer and MS Media Player&lt;br /&gt;
* Konquorer via Kaffeine&lt;br /&gt;
* Kaffeine pointing at URL/xxxxxxx.asx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
WAN Tested with browsers:&lt;br /&gt;
* MS IE via MS Media Player&lt;br /&gt;
* Mozilla Firefox via MS Media Player and Real Player&lt;br /&gt;
&lt;br /&gt;
And. Of course VLC Player in all cases.&lt;br /&gt;
&lt;br /&gt;
I have successfully used this method of serving from MS Windows XPpro IIS 5.1 and Apache 2.2 and also Linux Ubuntu 8.04 LTS Apache 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Note 1 ===&lt;br /&gt;
How much &#039;&#039;&#039;bandwidth&#039;&#039;&#039; do I need for a given size of video stream?&lt;br /&gt;
&lt;br /&gt;
A very good question with no straight answer. It depends on how good the encoding/compression is and other factors like the amount of dynamic activity there is going on. It can vary quite a bit during the video sequence. “Pixel noise” generated by the camera and capture hardware can have an effect as well.&lt;br /&gt;
An empirical method to determine this would be to run a test video across a LAN using the hardware and software and employing a network analyser to measure the bandwidth used.&lt;br /&gt;
&lt;br /&gt;
=== Note 2 ===&lt;br /&gt;
Following on from Note 1, The overall &#039;&#039;&#039;system capability&#039;&#039;&#039; will also determine how effectively the video stream can be encoded, compressed and streamed.&lt;br /&gt;
 &lt;br /&gt;
The more system CPU power available the better! As a minimum The method above will just about work with a video size of 384x288 streamed from VLC using a totally dedicated server at 800MHz cpu + 512 MB RAM with good hardware in good light. Employing wmv/asf encoding and an uplink bandwidth sync of 832 (circa real700K) It is more than likely that you will have to adjust the picture size to the bandwidth you have available. Also note that USB video capture devices tend to use a great deal of CPU/system resource, so do check out how much spare capacity you have when everything is running, including your server when it is “Serving” a stream?&lt;br /&gt;
&lt;br /&gt;
=== Note 3 ===&lt;br /&gt;
If you are using classical routing (No NAT) then the local and external IP will (probably) be the same unless you have an unusual configuration.&lt;br /&gt;
&lt;br /&gt;
=== Note 4 ===&lt;br /&gt;
It is &#039;&#039;not&#039;&#039; usually possible to view the streaming output of a LAN from the WAN side. Also it is not usually possible to view the streaming going out on the WAN from the LAN side.&lt;br /&gt;
&lt;br /&gt;
This makes testing more difficult! (The exception to this being note 3, that is the LAN and WAN having the same IP)&lt;br /&gt;
I suggest that this streaming method is first tested and proved on your LAN. Then test out the WAN stream by calling someone to test it from a remote location on the www.&lt;br /&gt;
&lt;br /&gt;
=== Note 5 ===&lt;br /&gt;
The choice of &#039;&#039;&#039;port you use&#039;&#039;&#039; is up to you. Port 1234 is as good as any for LAN (over 1024 is better), but a port at or above 8080 would be more appropriate for WAN (the Internet).&lt;br /&gt;
&lt;br /&gt;
Do check that your chosen port is not being used by another application. First place to look would be in your firewall and router settings when you open that port for your stream.&lt;br /&gt;
&lt;br /&gt;
Finally.  If you have got all this working and want to try a slightly more sophisticated stream to website, follow the White Rabbit (link)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[http://wiki.videolan.org/Stream_VLC_to_Website_with_asf_and_Flash]]&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
What!!!? Web servers and streaming from website&lt;br /&gt;
Not got a web site? Not got a web server? No clue where to start? Find the whole idea rather daunting? Well it is probably much easier than you thought. First you will need a web server. The following link is to “Apache httpd”. The Apache web server is as simple or as sophisticated as you want it to be. It is well documented on the web and many books are available. And it is free.&lt;br /&gt;
&lt;br /&gt;
http://httpd.apache.org/&lt;br /&gt;
&lt;br /&gt;
I would avoid use of MS IIS 5.1 as supplied with XP Pro on anything other than a LAN as it poses many security issues on the www for a novice.&lt;br /&gt;
&lt;br /&gt;
Next you will need a web page creator/editor and some guidance on how to use it. Take a look here&lt;br /&gt;
&lt;br /&gt;
http://www.thesitewizard.com/gettingsta ... al-1.shtml&lt;br /&gt;
&lt;br /&gt;
Again Kompozer is free and very simple to use. The only html that will need to be added to make this work is the examples given previously.&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15537</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15537"/>
		<updated>2010-02-17T15:28:07Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Introduction &amp;amp; Scope&#039;&#039;&#039;&lt;br /&gt;
This HowTo is intended to be a follow on from&lt;br /&gt;
&lt;br /&gt;
 http://wiki.videolan.org/Simple_Stream_VLC_to_Website&lt;br /&gt;
&lt;br /&gt;
The “Simple Stream VLC to Website” wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Checks and prerequisites&#039;&#039;&#039; &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Limitations&#039;&#039;&#039;&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Introduction to the VLC Command line&#039;&#039;&#039;&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/VLC_command-line_help&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Description of command parameters used in the methods following&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
vb	Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
ab	Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
fps	Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
width &amp;amp; height	Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
deinterlace	This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
scale	determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Transcode Strategies&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Tweaking&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Method 1 wmv/div3 - asf&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
#1 vb changed to vb=400&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 Removed scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
#1 vb reduced again to 200&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
  &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
    &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
&amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Method 2 H264 and Flash  .flv&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#1  vb=600&lt;br /&gt;
#2  fps=25&lt;br /&gt;
#3 Remove scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Troubleshooting&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Notes&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Appendix&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15536</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15536"/>
		<updated>2010-02-17T15:12:10Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	&#039;&#039;&#039;Stream VLC to Website  with .asf and Flash&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Introduction &amp;amp; Scope&#039;&#039;&#039;&lt;br /&gt;
This HowTo is intended to be a follow on from&lt;br /&gt;
&lt;br /&gt;
 http://wiki.videolan.org/Simple_Stream_VLC_to_Website&lt;br /&gt;
&lt;br /&gt;
The “Simple Stream VLC to Website” wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Checks and prerequisites&#039;&#039;&#039; &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Limitations&#039;&#039;&#039;&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Introduction to the VLC Command line&#039;&#039;&#039;&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/VLC_command-line_help&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Description of command parameters used in the methods following&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
vb	Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
ab	Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
fps	Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
width &amp;amp; height	Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
deinterlace	This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
scale	determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Transcode Strategies&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Tweaking&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Method 1 wmv/div3 - asf&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
#1 vb changed to vb=400&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 Removed scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
#1 vb reduced again to 200&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
  &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
    &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
&amp;lt;/ASX&amp;gt;&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Method 2 H264 and Flash  .flv&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#1  vb=600&lt;br /&gt;
#2  fps=25&lt;br /&gt;
#3 Remove scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Troubleshooting&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Notes&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	&#039;&#039;&#039;Appendix&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15535</id>
		<title>VLC HowTo/Stream to a website</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=15535"/>
		<updated>2010-02-17T14:38:58Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: Created page with &amp;#039;	Stream VLC to Website  with .asf and Flash   	Introduction &amp;amp; Scope This HowTo is intended to be a follow on from   http://wiki.videolan.org/Simple_Stream_VLC_to_Website  The “...&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;	Stream VLC to Website  with .asf and Flash&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Introduction &amp;amp; Scope&lt;br /&gt;
This HowTo is intended to be a follow on from&lt;br /&gt;
&lt;br /&gt;
 http://wiki.videolan.org/Simple_Stream_VLC_to_Website&lt;br /&gt;
&lt;br /&gt;
The “Simple Stream VLC to Website” wiki employed an Out of the Box solution with no modifications to the VLC command string. You may wish to read through the previous Wiki first, as it covers fundamentals which are assumed, if you have not done so already.&lt;br /&gt;
This HowTo is aimed at VLC users who are intending to “Live Stream” from a capture device, eg Webcam, TV camera, live audio source etc and are looking to get a little more out of the features available in VLC and wish to start to understand the command line string and explore techniques to transcode, compress and output a stream to a web site more efficiently and effectively. The following examples are aimed at reducing bandwidth, with a view to streaming on the internet with available upstream bandwidth being the major consideration. The methods described below are targeting a bandwidth of around 235k.&lt;br /&gt;
&lt;br /&gt;
	Checks and prerequisites &lt;br /&gt;
To start with, Video transcoding, compression and streaming is CPU intensive. So you are going to need something like Intel P4 at 2.4Gb or equivalent as a minimum dedicated box to use the example method 2 in this HowTo. Method 1 is achievable with a pair of 1Gb cpu or more machines. You will have an appreciation of the bandwidth requirements of what you are trying to achieve.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Limitations&lt;br /&gt;
This HowTo was written and tested using VLC version series 1.01 to 1.05 for Win XP.and VLC 0.9.9a  for Ubuntu Linux. (8.04) Earlier versions may work but have not been tested&lt;br /&gt;
This HowTo, the methods and examples have been tested on Operating Systems:&lt;br /&gt;
Method 1:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
Method 2:-WinXP and Ubuntu Linux (8.04)&lt;br /&gt;
&lt;br /&gt;
There are subtle and significant differences in capability and performance of VLC versions and their respective OS platforms. See Notes and Troubleshooting for more information.  Hardware capability also plays an important role in this respect.&lt;br /&gt;
&lt;br /&gt;
Web server Apache 2.2 was used in all cases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Introduction to the VLC Command line&lt;br /&gt;
First a couple of reference links for further reading&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line#Structure_of_stream_output&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/VLC_command-line_help&lt;br /&gt;
&lt;br /&gt;
The above links will give an overview of the commands available to use to manipulate and optimise the Command output string. The following methods and examples modify the generated stream output string. I have included an example of a complete true command line with the same parameters as the Win XP example in Method 2. See Appendix. This should help to give an insight into how to construct a complete command line and enter the appropriate parameters.&lt;br /&gt;
The following methods and examples deal directly with the output string found in the GUI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Description of command parameters used in the methods following&lt;br /&gt;
&lt;br /&gt;
vb	Video Bandwidth. This parameter in effect sets the target bandwidth of the output video stream and hence the compression required. The more compression the lower the video quality.&lt;br /&gt;
ab	Audio Bandwidth. As above, but relates to audio.&lt;br /&gt;
fps	Frames Per Second. The more fps, then the smoother the moving image, however, this uses more bandwidth and compression. So lower fps will give better quality for given bandwidth.&lt;br /&gt;
width &amp;amp; height	Determines the aspect ratio and the size of the image in pixels. The larger the image, the better the definition, but will require more cpu power and bandwidth. The smaller the image the less compression and bandwidth needed to stream.&lt;br /&gt;
deinterlace	This command useful if you are using an interlaced source. Eg. An NTSC or PAL source&lt;br /&gt;
scale	determines the output size relative to source size applied to width/height ratio. So scale=0.5 will half original width/height in pixels. Or in this case 25% of the original pixel area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Transcode Strategies &lt;br /&gt;
&lt;br /&gt;
Single vs Two stage transcode? A single stage transcode may work well for many situations. A two stage transcode may offer advantages in quality at the cost of time and hardware to effect it. A two stage transcode on two different boxes will be less susceptible to quality problems related to mutual or random cpu activity spikes caused by other applications. Method 1 works well with two stage giving an improved picture quality with modest cpu usage given that the wmv codec is less than best compared with what is available.&lt;br /&gt;
Method 2 can work well in single stage and usually better in two stage, but requires more cpu power.I leave it to you, the user, to experiment with what works best for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Tweaking&lt;br /&gt;
&lt;br /&gt;
There are any number of “tweaks” and “mods” that can be applied to the output string or command line. I recommend that you try the example methods as they are before changing everything to suit your anticipated needs.&lt;br /&gt;
The links referred to above should give a more expansive description of what can be done. Again, do experiment when you have got a working solution. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Method 1 wmv/div3 - asf&lt;br /&gt;
&lt;br /&gt;
For this first method we will keep things very simple. The method is similar to and follows on from “Simple Stream VLC to Website” .There will be a couple of  small changes and additions to the default command strings. This method works well with a minimum of effort and hardware. This method is described using wmv and will also work with div3.&lt;br /&gt;
This method will employ a two stage transcode using two computers. A common configuration. The first stage will be the Primary source/capture/compression  (Box1) .&lt;br /&gt;
The secondary output from (Box2) for final compression and will be your web server.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up:&lt;br /&gt;
Select “Streaming” set up your capture devices and set the video size to 256x192&lt;br /&gt;
Simply using the default values in the GUI, select “Stream”, then “Next” at source, at “Destinations” check the box “display locally” &amp;lt;optional&amp;gt; , select HTTP from the dropdown box, and click the “Add” button, leave the address field as 0.0.0.0  and change the port number to 8082. Activate transcoding box is checked, select the  Windows WMV/asf  Transcoding profile and click “next” again. You should now see the “Generated stream output string”. This is where we will make the changes and additions.&lt;br /&gt;
So. Look at what is in this field and compare with the example below. Then modify the output string with the changes listed below. Or clear the output field and copy and paste.&lt;br /&gt;
&lt;br /&gt;
First output string (box 1)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=400,fps=15,width=256,height=192,deinterlace,acodec=wma2,ab=64,channels=2,samplerate=44100}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:8081},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made here:&lt;br /&gt;
#1 vb changed to vb=400&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 Removed scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional if using an analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Pickup the stream from Box 1 with “Open Network Stream” and check that it is streaming OK. Repeat the setup procedure as for Box 1, but use the following output string.&lt;br /&gt;
Second output string (box 2)&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=WMV2,vb=200,fps=15,scale=1,acodec=wma2,ab=32,channels=2}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=0.0.0.0:8082}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The changes/additions we have made to second output string&lt;br /&gt;
&lt;br /&gt;
#1 vb reduced again to 200&lt;br /&gt;
#2 Added fps=15&lt;br /&gt;
#3 ab reduced again to 32&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample metafile for HTML below&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;TITLE&amp;gt;extstream8082&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
  &amp;lt;ENTRY&amp;gt;&lt;br /&gt;
    &amp;lt;REF HREF=&amp;quot;http://youripaddress:8082&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
&amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(saved as &amp;lt;extstream8082.asx&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Sample HTML for embedded  web page&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&amp;lt;title&amp;gt;External Stream 8082 embedded&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;big&amp;gt;Box 2 streaming&lt;br /&gt;
on port 8082&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;embed src=&amp;quot;extstream8082.asx&amp;quot; height=&amp;quot;450&amp;quot; width=&amp;quot;512&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could embed  with MS MP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Method 2 H264 and Flash  .flv&lt;br /&gt;
&lt;br /&gt;
Method 2 is somewhat more sophisticated, but should give a good result with minimal bandwidth. It can be successfully effected in a single stage transcode, but a two stage transcode may improve the quality depending on the quality of the hardware available. This method employs an optional first stage pre compression in asf followed by an H264 and a final output in .flv (Flash) and includes a subsection on Flash players “JWPlayer” and “Flowplayer”&lt;br /&gt;
There is some additional information in Notes further down this HowTo.&lt;br /&gt;
&lt;br /&gt;
Box 1 Set up: (optional)&lt;br /&gt;
Primary source/capture/compression in asf&lt;br /&gt;
Select the dropdown box output stream to DIV3/mp3 asf. Follow the similar modifications to the output string as per Method 1, Box 1&lt;br /&gt;
&lt;br /&gt;
The changes/additions we will make here:&lt;br /&gt;
#1  vb=600&lt;br /&gt;
#2  fps=25&lt;br /&gt;
#3 Remove scale=1&lt;br /&gt;
#4 Added width=256&lt;br /&gt;
#5 Added height=192&lt;br /&gt;
#6 I have added “deinterlace” Optional, if using analogue interlaced TV camera&lt;br /&gt;
#7 ab changed to ab=64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Box 2 Set up:&lt;br /&gt;
Secondary output in .flv&lt;br /&gt;
Select your input, Eg the network stream from Box 1, or your source/capture device.&lt;br /&gt;
Select Streaming and tab &amp;lt;next&amp;gt; through to the “Options” screen without choosing anything in the previous “Destinations” tab. The “Generated stream output string” field should be blank.&lt;br /&gt;
The following output strings can be copied and pasted into the empty field. Do make sure that there are no spaces in the string when you copy/paste.&lt;br /&gt;
&lt;br /&gt;
First example string for Win XP users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Second example string for Linux users&lt;br /&gt;
&lt;br /&gt;
:sout=#transcode{vcodec=FLV1,acodec=mp3,vb=200,deinterlace,fps=25,samplerate=44100,ab=32}:duplicate{dst=std{access=http,mux=ffmpeg{mux=flv},dst=192.168.0.42:8081/stream.flv},dst=display}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above examples should work OK when adapted to your destination IP and port. That said, they are examples of two different approaches. The Windows approach utilises the H264 codec. &lt;br /&gt;
The Ubuntu Linux approach example provides for a working solution in FLV1 which should work OK with the “Stripped” standard version of ffmpeg in a standard installation. This method would benefit from a two stage transcode to improve quality.&lt;br /&gt;
&lt;br /&gt;
You will probably want to check that everything is working at this stage. So point a VLC client at the stream to check it out.&lt;br /&gt;
Do note the dst=xx.xx.xx.xx:port/path/stream.flv and check out the “Troubleshooting” section&lt;br /&gt;
.&lt;br /&gt;
Next we will need a player to embed the stream into a web page. JWPlayer and Flowplayer are suitable for this purpose. Both of these players need a path to their java files.Eg. The Win XP example had /mediaplayer/ in the path This was the default folder for JWPlayer in that example. The Linux example assumed that the necessary java files placed in the root dir of the webserver and needed no path. These players are described in detail in the documentation on their websites. If you have not used these players before, take time to become familiar with them before using them in this context.&lt;br /&gt;
&lt;br /&gt;
http://flowplayer.org/&lt;br /&gt;
&lt;br /&gt;
http://www.longtailvideo.com/support/tutorials/Embedding-Flash&lt;br /&gt;
&lt;br /&gt;
Example html for a “Flowplayer” embedded page relating to the example VLC Linux output string above. Do note that the Windows example had /mediaplayer/ in the path! This example does not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;title&amp;gt;This Flash Streaming from VLC video&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script src=&amp;quot;flowplayer-3.1.4.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;meta content=&amp;quot;text/html; charset=ISO-8859-1&amp;quot; http-equiv=&amp;quot;content-type&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;big style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Flowplayer test file local&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt; See Flowplayer documentation and note below for this line&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt; flowplayer(&amp;quot;player&amp;quot;, &amp;quot;flowplayer-3.1.4.swf&amp;quot;); &amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note&lt;br /&gt;
The href= value in this line would contain &lt;br /&gt;
&amp;quot;http://&amp;lt;yourIP&amp;gt;:8081/stream.flv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Troubleshooting&lt;br /&gt;
&lt;br /&gt;
OK so it all went wrong? And did not work. At the risk of stating the obvious? Backtrack. Check each stage step by step and prove that each bit is working before moving to the next. Common faults and checks are listed as follows:&lt;br /&gt;
#1.	The destination address dst=xx.xx.xx.xx  can give rise to problems. I have found that Win XP works with dts=0.0.0.0 but Ubuntu linux requires the specific IP of the server Eg 192.168.0.42 or a qualified domain name Eg mywebsite.com.&lt;br /&gt;
&lt;br /&gt;
#2.	Many Linux distros may not include by default the full version of ffmpeg and h/x264 and associated libs for encoding. You may need to go research and install all necessary components to get it all working.&lt;br /&gt;
&lt;br /&gt;
#3.	The quality of both video and sound can vary due to many factors, which may include the version of VLC, the OS platform, the version of players, plugins Etc. Problems such as stuttering, pixelation, excessive buffering delays are not uncommon. In general terms, keeping up to date with the latest versions of everything is good practice, however in some cases, a newer version may not work as well (if at all) as it’s predecessor. &lt;br /&gt;
&lt;br /&gt;
#4.	Realtime streaming is cpu intensive and also sensitive to being interrupted in realtime. Other applications can and will interrupt.  Shut down all unnecessary  applications ( and the ones in background) Spikes of intensive cpu activity which will not always show up in Task Manager/System Monitor can and will cause problems with the quality of your stream output. You may wish to raise the priority of VLC to reduce the effect of interrupts.&lt;br /&gt;
&lt;br /&gt;
#5	Clients need to be equipped with the necessary means to display your stream! Sounds an obvious statement? Probably not a problem if you have an up to date box, with MS Windows and a recent Flash plugin. I have encountered any number of problems with old hardware, other Operating Systems, browsers and Flash plugins. Don’t be surprised or disappointed at the apparent failure or erratic performance of your stream if you are testing it with a client that is not suitably equipped and able. Using Localhost to check out your stream may also give unexpected and misleading results.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Notes&lt;br /&gt;
&lt;br /&gt;
There are many ways to compress/transcode your stream. The example methods were intended to be a fairly universal and tested starting point. Some combinations work some don’t. Some combinations work in one scenario but will not work in another. If the example methods do not work for you, the Videolan forums are the best place to start looking for a solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Appendix&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is an example of a full command line with the same settings as Method 2 Win XP. The first part, up to ”sout” is the input string. The vdev= and adev= are the (your) input devices and can be viewed and extracted from the first “streaming” window or tab in the GUI, with the “show more options” box checked. You will need to apply the correct syntax for your OS.  In Windows ( note the quotation marks,Eg ”&amp;lt;xxx&amp;gt;” syntax) you would enter this at the command prompt at C:/program files/videolan/vlc&lt;br /&gt;
Also note in this example video size has been defined twice, both in the input and output sections. If you did not include a setting for Video Size in the GUI screen it would not be present in the input string. Try adding and changing options to see how the VLC GUI builds the input string for you. It is not necessary for video size to be defined here, but should work OK with or without this parameter in the input section. I have included it to show how the string is generated in the GUI.. The complete input and output sections can be simply copied and pasted from the GUI into a text editor and built into a complete string to create full working command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vlc dshow:// :dshow-vdev=&amp;quot;Conexant&#039;s BtPCI Capture&amp;quot; :dshow-adev=&amp;quot;Aureon 5.1 Fun Wave&amp;quot; :dshow-size=&amp;quot;256x192&amp;quot; --sout=&amp;quot;#transcode{vcodec=h264,vb=200,deinterlace,fps=25,width=256,height=192,ab=32,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}&amp;quot;&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Create_how_to&amp;diff=14551</id>
		<title>Create how to</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Create_how_to&amp;diff=14551"/>
		<updated>2009-07-29T00:03:36Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: moved Create how to to Simple Stream VLC to Website:&amp;amp;#32;Title error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Simple Stream VLC to Website]]&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=14550</id>
		<title>VLC HowTo/Stream to a website (simple version)</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=14550"/>
		<updated>2009-07-29T00:03:36Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: moved Create how to to Simple Stream VLC to Website:&amp;amp;#32;Title error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following “How To” describes an easy method of using VLC as a simple video streamer to enable a live video stream (Eg web-cam) via VLC to be streamed from a web server across a local LAN or the Internet. This method does also work for streaming files and other media, CD, DVD Etc&lt;br /&gt;
Using this method of streaming from VLC allows the stream to be viewed from many media player clients other than VLC, which is often the case &lt;br /&gt;
The content and description is aimed at those who only have an elementary knowledge of VLC, Networking, and Web authoring / HTML&lt;br /&gt;
This method is not the most sophisticated way to utilise VLC, but it does work well and has been tested on both LAN and WAN using VLC 0.9.8a, 9.9 and 1.0.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, I have to make some assumptions and you will have to do some checks&lt;br /&gt;
&lt;br /&gt;
You have a web site? If not see appendix at the bottom of this “HowTo”.&lt;br /&gt;
Your website works OK and is on your own web server on the same machine as VLC?&lt;br /&gt;
If your website is for external viewing (internet), you have a static IP and are not behind a proxy server?&lt;br /&gt;
Your ISP is not blocking any ports&lt;br /&gt;
Your firewall is not blocking any ports that you want to stream through. (Port 1234 for the example below)&lt;br /&gt;
I also assume you are using a NAT router with port forwarding for both the website and port to be used by the video stream.&lt;br /&gt;
You have sufficient upstream bandwidth to support the size of video stream (See Notes 1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitations&lt;br /&gt;
This HowTo was written with previous versions in mind, so the descriptions of the VLC User Interface may differ slightly.&lt;br /&gt;
&lt;br /&gt;
The following technique only works (tested so far) using the Windows encapsulation method asf/wmv (and asf/div3 VLC 1.0.0) selected from the Custom menu in the VLC Streaming Settings window.&lt;br /&gt;
(other methods may work, I have not tested them all)&lt;br /&gt;
&lt;br /&gt;
The method&lt;br /&gt;
The following method/technique uses a “metafile” or redirector. You might want to check out the terms ”metafile”, “redirector” and “.asx” for further information&lt;br /&gt;
&lt;br /&gt;
Firstly create a text file (Eg in Notepad) and copy and paste the following&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Stream1234&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ENTRY&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;REF HREF =&amp;quot;http://192.168.0.42:1234&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where the HREF value is your local LAN IP for a LAN ONLY website.&lt;br /&gt;
Or&lt;br /&gt;
The HREF value is your external (Internet) IP for a WAN ONLY website&lt;br /&gt;
The port number (Eg :1234) is the port you will allocate in VLC Streaming settings window.&lt;br /&gt;
&lt;br /&gt;
The text file should then be saved. as a .asx file. I suggest you create two such files. One for LAN and one for WAN (See note 3)&amp;amp; (See note 5)&lt;br /&gt;
Eg localstream1234.asx for the LAN version using your internal LAN IP&lt;br /&gt;
Eg extstream1234.asx for the WAN version using your external WAN IP&lt;br /&gt;
&lt;br /&gt;
Place these .asx files in your web server dir.&lt;br /&gt;
&lt;br /&gt;
Create a links in a web page that point to the above .asx files. When the link is activated, a pop out player will stream.&lt;br /&gt;
Or Eg&lt;br /&gt;
Embed the stream on a page by the following in html&lt;br /&gt;
&lt;br /&gt;
&amp;lt;embed src =&amp;quot;localstream1234.asx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or Eg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;embed src =&amp;quot;localstream1234.asx” height=”370” width=”400&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To re size the video on the web page.&lt;br /&gt;
&lt;br /&gt;
Now for VLC.&lt;br /&gt;
First check your video source (TV card, Video capture device, webcam etc) is working OK and playing through VLC OK using the Play option&lt;br /&gt;
Select Streaming.&lt;br /&gt;
Select Source, Capture device for this example (and any necessary additional settings)&lt;br /&gt;
&lt;br /&gt;
Check play locally box&lt;br /&gt;
Check or select/add http box LEAVE the ADDRESS FIELD BLANK!! Change the port number to 1234 (for this example)&lt;br /&gt;
Select “Windows asf/wmv” in the Custom dropdown selection box&lt;br /&gt;
You may need to alter the TTL value to allow more buffering, a value of 0 or 1 should be OK (no more than 12 should be necessary) as this increases delay from live&lt;br /&gt;
Then select Next and/or Stream&lt;br /&gt;
VLC should open with a local display stream, which should display the stream and an overlay text displaying “streaming” for a few seconds.&lt;br /&gt;
&lt;br /&gt;
If this does not work… Obviously… Something is wrong! First check the, Main Menu selection, Tools dropdown item “Messages” for suggestions as to the cause of error and also re check all the above instructions/settings.&lt;br /&gt;
&lt;br /&gt;
If all is well, then.&lt;br /&gt;
Now check out your LAN website from another machine on your LAN linking to (localstream1234.asx) The stream may take up to 30 secs to display.&lt;br /&gt;
OK? If not then go back and check it all out again.&lt;br /&gt;
Now get a friend/other to test out the WAN links from another external location.&lt;br /&gt;
(See Note 4)&lt;br /&gt;
&lt;br /&gt;
I have found this method to work well on LAN and WAN&lt;br /&gt;
It does not need VLC to be at the client end. It also does not need or employ any Java on the client or server machine. All it requires is the ability of a browser and its associated media player to be able to display the now universal ”.asf” stream which most can.&lt;br /&gt;
LAN tested with browsers…&lt;br /&gt;
MS IE via MS Media Player&lt;br /&gt;
Realplayer pointing at URL/xxxxxx.asx&lt;br /&gt;
Firefox via MPlayer and MS Media Player&lt;br /&gt;
Konquorer via Kaffeine&lt;br /&gt;
Kaffeine pointing at URL/xxxxxxx.asx&lt;br /&gt;
&lt;br /&gt;
WAN Tested with browsers…&lt;br /&gt;
MS IE via MS Media Player&lt;br /&gt;
Mozilla Firefox via MS Media Player and Real Player&lt;br /&gt;
&lt;br /&gt;
And. Of course VLC Player in all cases.&lt;br /&gt;
&lt;br /&gt;
I have successfully used this method of serving from MS Windows XPpro IIS 5.1 and Apache 2.2 and also Linux Ubuntu 8.04 LTS Apache 2.2&lt;br /&gt;
&lt;br /&gt;
Notes&lt;br /&gt;
&lt;br /&gt;
Note 1 How much bandwidth do I need for a given size of video stream? A very good question with no straight answer. It depends on how good the encoding/compression is and other factors like the amount of dynamic activity there is going on. It can vary quite a bit during the video sequence. “Pixel noise” generated by the camera and capture hardware can have an effect as well.&lt;br /&gt;
An empirical method to determine this would be to run a test video across a LAN using the hardware and software and employing a network analyser to measure the bandwidth used.&lt;br /&gt;
&lt;br /&gt;
Note 2 Following on from Note 1, The overall system capability will also determine how effectively the video stream can be encoded, compressed and streamed. The more system CPU power available the better! As a minimum The method above will just about work with a video size of 384x288 streamed from VLC using a totally dedicated server at 800MHz cpu + 512 MB RAM with good hardware in good light. Employing wmv/asf encoding and an uplink bandwidth sync of 832 (circa real700K) It is more than likely that you will have to adjust the picture size to the bandwidth you have available. Also note that USB video capture devices tend to use a great deal of CPU/system resource, so do check out how much spare capacity you have when everything is running, including your server when it is “Serving” a stream?&lt;br /&gt;
&lt;br /&gt;
Note 3 If you are using classical routing (No NAT) then the local and external IP will (probably) be the same unless you have an unusual configuration.&lt;br /&gt;
&lt;br /&gt;
Note 4 It is not usually possible to view the streaming output of a LAN from the WAN side. Also it is not usually possible to view the streaming going out on the WAN from the LAN side. This makes testing more difficult! (The exception to this being note 3, that is the LAN and WAN having the same IP)&lt;br /&gt;
I suggest that this streaming method is first tested and proved on your LAN. Then test out the WAN stream by calling someone to test it from a remote location on the www.&lt;br /&gt;
&lt;br /&gt;
Note 5 The choice of port you use is up to you? Port 1234 is as good as any for LAN, but a port at or above 8080 would be more appropriate for WAN (the Internet). Do check that your chosen not being used by another application. First place to look would be in your firewall and router settings when you open that port for your stream.&lt;br /&gt;
&lt;br /&gt;
Appendix&lt;br /&gt;
&lt;br /&gt;
What!!!? Web servers and streaming from website&lt;br /&gt;
Not got a web site? Not got a web server? No clue where to start? Find the whole idea rather daunting? Well it is probably much easier than you thought. First you will need a web server. The following link is to “Apache httpd”. The Apache web server is as simple or as sophisticated as you want it to be. It is well documented on the web and many books are available. And it is free.&lt;br /&gt;
&lt;br /&gt;
http://httpd.apache.org/&lt;br /&gt;
&lt;br /&gt;
I would avoid use of MS IIS 5.1 as supplied with XP Pro on anything other than a LAN as it poses many security issues on the www for a novice.&lt;br /&gt;
&lt;br /&gt;
Next you will need a web page creator/editor and some guidance on how to use it. Take a look here&lt;br /&gt;
&lt;br /&gt;
http://www.thesitewizard.com/gettingsta ... al-1.shtml&lt;br /&gt;
&lt;br /&gt;
Again Kompozer is free and very simple to use. The only html that will need to be added to make this work is the examples given previously.&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=14549</id>
		<title>VLC HowTo/Stream to a website (simple version)</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website_(simple_version)&amp;diff=14549"/>
		<updated>2009-07-28T23:54:55Z</updated>

		<summary type="html">&lt;p&gt;MrGreg: VLC Simple streaming to website, A HowTo.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following “How To” describes an easy method of using VLC as a simple video streamer to enable a live video stream (Eg web-cam) via VLC to be streamed from a web server across a local LAN or the Internet. This method does also work for streaming files and other media, CD, DVD Etc&lt;br /&gt;
Using this method of streaming from VLC allows the stream to be viewed from many media player clients other than VLC, which is often the case &lt;br /&gt;
The content and description is aimed at those who only have an elementary knowledge of VLC, Networking, and Web authoring / HTML&lt;br /&gt;
This method is not the most sophisticated way to utilise VLC, but it does work well and has been tested on both LAN and WAN using VLC 0.9.8a, 9.9 and 1.0.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, I have to make some assumptions and you will have to do some checks&lt;br /&gt;
&lt;br /&gt;
You have a web site? If not see appendix at the bottom of this “HowTo”.&lt;br /&gt;
Your website works OK and is on your own web server on the same machine as VLC?&lt;br /&gt;
If your website is for external viewing (internet), you have a static IP and are not behind a proxy server?&lt;br /&gt;
Your ISP is not blocking any ports&lt;br /&gt;
Your firewall is not blocking any ports that you want to stream through. (Port 1234 for the example below)&lt;br /&gt;
I also assume you are using a NAT router with port forwarding for both the website and port to be used by the video stream.&lt;br /&gt;
You have sufficient upstream bandwidth to support the size of video stream (See Notes 1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitations&lt;br /&gt;
This HowTo was written with previous versions in mind, so the descriptions of the VLC User Interface may differ slightly.&lt;br /&gt;
&lt;br /&gt;
The following technique only works (tested so far) using the Windows encapsulation method asf/wmv (and asf/div3 VLC 1.0.0) selected from the Custom menu in the VLC Streaming Settings window.&lt;br /&gt;
(other methods may work, I have not tested them all)&lt;br /&gt;
&lt;br /&gt;
The method&lt;br /&gt;
The following method/technique uses a “metafile” or redirector. You might want to check out the terms ”metafile”, “redirector” and “.asx” for further information&lt;br /&gt;
&lt;br /&gt;
Firstly create a text file (Eg in Notepad) and copy and paste the following&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ASX version =&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Stream1234&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ENTRY&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;REF HREF =&amp;quot;http://192.168.0.42:1234&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ENTRY&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ASX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where the HREF value is your local LAN IP for a LAN ONLY website.&lt;br /&gt;
Or&lt;br /&gt;
The HREF value is your external (Internet) IP for a WAN ONLY website&lt;br /&gt;
The port number (Eg :1234) is the port you will allocate in VLC Streaming settings window.&lt;br /&gt;
&lt;br /&gt;
The text file should then be saved. as a .asx file. I suggest you create two such files. One for LAN and one for WAN (See note 3)&amp;amp; (See note 5)&lt;br /&gt;
Eg localstream1234.asx for the LAN version using your internal LAN IP&lt;br /&gt;
Eg extstream1234.asx for the WAN version using your external WAN IP&lt;br /&gt;
&lt;br /&gt;
Place these .asx files in your web server dir.&lt;br /&gt;
&lt;br /&gt;
Create a links in a web page that point to the above .asx files. When the link is activated, a pop out player will stream.&lt;br /&gt;
Or Eg&lt;br /&gt;
Embed the stream on a page by the following in html&lt;br /&gt;
&lt;br /&gt;
&amp;lt;embed src =&amp;quot;localstream1234.asx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or Eg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;embed src =&amp;quot;localstream1234.asx” height=”370” width=”400&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To re size the video on the web page.&lt;br /&gt;
&lt;br /&gt;
Now for VLC.&lt;br /&gt;
First check your video source (TV card, Video capture device, webcam etc) is working OK and playing through VLC OK using the Play option&lt;br /&gt;
Select Streaming.&lt;br /&gt;
Select Source, Capture device for this example (and any necessary additional settings)&lt;br /&gt;
&lt;br /&gt;
Check play locally box&lt;br /&gt;
Check or select/add http box LEAVE the ADDRESS FIELD BLANK!! Change the port number to 1234 (for this example)&lt;br /&gt;
Select “Windows asf/wmv” in the Custom dropdown selection box&lt;br /&gt;
You may need to alter the TTL value to allow more buffering, a value of 0 or 1 should be OK (no more than 12 should be necessary) as this increases delay from live&lt;br /&gt;
Then select Next and/or Stream&lt;br /&gt;
VLC should open with a local display stream, which should display the stream and an overlay text displaying “streaming” for a few seconds.&lt;br /&gt;
&lt;br /&gt;
If this does not work… Obviously… Something is wrong! First check the, Main Menu selection, Tools dropdown item “Messages” for suggestions as to the cause of error and also re check all the above instructions/settings.&lt;br /&gt;
&lt;br /&gt;
If all is well, then.&lt;br /&gt;
Now check out your LAN website from another machine on your LAN linking to (localstream1234.asx) The stream may take up to 30 secs to display.&lt;br /&gt;
OK? If not then go back and check it all out again.&lt;br /&gt;
Now get a friend/other to test out the WAN links from another external location.&lt;br /&gt;
(See Note 4)&lt;br /&gt;
&lt;br /&gt;
I have found this method to work well on LAN and WAN&lt;br /&gt;
It does not need VLC to be at the client end. It also does not need or employ any Java on the client or server machine. All it requires is the ability of a browser and its associated media player to be able to display the now universal ”.asf” stream which most can.&lt;br /&gt;
LAN tested with browsers…&lt;br /&gt;
MS IE via MS Media Player&lt;br /&gt;
Realplayer pointing at URL/xxxxxx.asx&lt;br /&gt;
Firefox via MPlayer and MS Media Player&lt;br /&gt;
Konquorer via Kaffeine&lt;br /&gt;
Kaffeine pointing at URL/xxxxxxx.asx&lt;br /&gt;
&lt;br /&gt;
WAN Tested with browsers…&lt;br /&gt;
MS IE via MS Media Player&lt;br /&gt;
Mozilla Firefox via MS Media Player and Real Player&lt;br /&gt;
&lt;br /&gt;
And. Of course VLC Player in all cases.&lt;br /&gt;
&lt;br /&gt;
I have successfully used this method of serving from MS Windows XPpro IIS 5.1 and Apache 2.2 and also Linux Ubuntu 8.04 LTS Apache 2.2&lt;br /&gt;
&lt;br /&gt;
Notes&lt;br /&gt;
&lt;br /&gt;
Note 1 How much bandwidth do I need for a given size of video stream? A very good question with no straight answer. It depends on how good the encoding/compression is and other factors like the amount of dynamic activity there is going on. It can vary quite a bit during the video sequence. “Pixel noise” generated by the camera and capture hardware can have an effect as well.&lt;br /&gt;
An empirical method to determine this would be to run a test video across a LAN using the hardware and software and employing a network analyser to measure the bandwidth used.&lt;br /&gt;
&lt;br /&gt;
Note 2 Following on from Note 1, The overall system capability will also determine how effectively the video stream can be encoded, compressed and streamed. The more system CPU power available the better! As a minimum The method above will just about work with a video size of 384x288 streamed from VLC using a totally dedicated server at 800MHz cpu + 512 MB RAM with good hardware in good light. Employing wmv/asf encoding and an uplink bandwidth sync of 832 (circa real700K) It is more than likely that you will have to adjust the picture size to the bandwidth you have available. Also note that USB video capture devices tend to use a great deal of CPU/system resource, so do check out how much spare capacity you have when everything is running, including your server when it is “Serving” a stream?&lt;br /&gt;
&lt;br /&gt;
Note 3 If you are using classical routing (No NAT) then the local and external IP will (probably) be the same unless you have an unusual configuration.&lt;br /&gt;
&lt;br /&gt;
Note 4 It is not usually possible to view the streaming output of a LAN from the WAN side. Also it is not usually possible to view the streaming going out on the WAN from the LAN side. This makes testing more difficult! (The exception to this being note 3, that is the LAN and WAN having the same IP)&lt;br /&gt;
I suggest that this streaming method is first tested and proved on your LAN. Then test out the WAN stream by calling someone to test it from a remote location on the www.&lt;br /&gt;
&lt;br /&gt;
Note 5 The choice of port you use is up to you? Port 1234 is as good as any for LAN, but a port at or above 8080 would be more appropriate for WAN (the Internet). Do check that your chosen not being used by another application. First place to look would be in your firewall and router settings when you open that port for your stream.&lt;br /&gt;
&lt;br /&gt;
Appendix&lt;br /&gt;
&lt;br /&gt;
What!!!? Web servers and streaming from website&lt;br /&gt;
Not got a web site? Not got a web server? No clue where to start? Find the whole idea rather daunting? Well it is probably much easier than you thought. First you will need a web server. The following link is to “Apache httpd”. The Apache web server is as simple or as sophisticated as you want it to be. It is well documented on the web and many books are available. And it is free.&lt;br /&gt;
&lt;br /&gt;
http://httpd.apache.org/&lt;br /&gt;
&lt;br /&gt;
I would avoid use of MS IIS 5.1 as supplied with XP Pro on anything other than a LAN as it poses many security issues on the www for a novice.&lt;br /&gt;
&lt;br /&gt;
Next you will need a web page creator/editor and some guidance on how to use it. Take a look here&lt;br /&gt;
&lt;br /&gt;
http://www.thesitewizard.com/gettingsta ... al-1.shtml&lt;br /&gt;
&lt;br /&gt;
Again Kompozer is free and very simple to use. The only html that will need to be added to make this work is the examples given previously.&lt;/div&gt;</summary>
		<author><name>MrGreg</name></author>
	</entry>
</feed>