<?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=Rawsted</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=Rawsted"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Rawsted/"/>
	<updated>2026-11-04T19:08:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_from_Encoding_Cards_and_Other_Capture_Devices&amp;diff=18817</id>
		<title>Documentation:Streaming HowTo/Stream from Encoding Cards and Other Capture Devices</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_from_Encoding_Cards_and_Other_Capture_Devices&amp;diff=18817"/>
		<updated>2011-03-14T15:20:52Z</updated>

		<summary type="html">&lt;p&gt;Rawsted: /* Stream to file(s) with VLC in command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Hardware encoding cards==&lt;br /&gt;
&lt;br /&gt;
Note: This is possible under GNU/Linux only.&lt;br /&gt;
&lt;br /&gt;
VideoLAN supports two kinds of MPEG-2 encoding cards:&lt;br /&gt;
* Hauppauge WinTV-PVR-250 and WinTV-PVR-350,&lt;br /&gt;
* Visiontech Kfir.&lt;br /&gt;
&lt;br /&gt;
The Hauppauge WinTV-PVR-250/350 gives much better results and is cheaper than the Visiontech Kfir.&lt;br /&gt;
&lt;br /&gt;
===Stream with the Hauppauge WinTV-PVR-250/350 card===&lt;br /&gt;
====Install the drivers====&lt;br /&gt;
&lt;br /&gt;
First, you will have to patch your kernel (version 2.4) to support the v4l2 API (Video 4 Linux version 2). The patch is available on the [http://bytesex.org/v4l/ Video4Linux HQ].&lt;br /&gt;
If you use a 2.6 kernel, you only need to build I2C support and the BT848 Video For Linux module.&lt;br /&gt;
&lt;br /&gt;
Once your kernel is ready, install the CK version (currently in development) of the Linux drivers for the Hauppauge WinTV-PVR-250/350. They are hosted on [http://67.18.1.101/~ckennedy/ivtv ivtv ck]. You will need to patch your kernel to use it with a 2.4. You can also use the CVS version available here: [http://ivtv.sourceforge.net/ ivtv.sourceforge.net] (this version is not developped anymore).&lt;br /&gt;
Then, you will have to create the device and load the modules; for this, please refer to the documentation shipped with the drivers.&lt;br /&gt;
&lt;br /&gt;
====Stream with VLC====&lt;br /&gt;
&lt;br /&gt;
Note: You must add &#039;&#039;&#039;--enable-pvr&#039;&#039;&#039; to &#039;&#039;&#039;./configure&#039;&#039;&#039; to use this feature.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color pvr:///dev/video0:norm=secam:size=720x576:frequency=576250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout &#039;#rtp{mux=ts,dst=192.168.0.42,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;/dev/video0&#039;&#039;&#039; is the device corresponding to the encoding card,&lt;br /&gt;
*&#039;&#039;&#039;norm=secam&#039;&#039;&#039; is name of the standard of the analogic signal (possible values are pal, secam, and ntsc),&lt;br /&gt;
*&#039;&#039;&#039;size=720x576&#039;&#039;&#039; is the size of the video you want to stream,&lt;br /&gt;
*&#039;&#039;&#039;frequency=567250&#039;&#039;&#039; is the frequency in kHz of the channel you want to stream,&lt;br /&gt;
*&#039;&#039;&#039;bitrate=3000000&#039;&#039;&#039; is the average bitrate of the stream,&lt;br /&gt;
*&#039;&#039;&#039;maxbitrate=4000000&#039;&#039;&#039; is the maximum bitrate of the stream,&lt;br /&gt;
*&#039;&#039;&#039;1000&#039;&#039;&#039; is a secret value to work around a bug of the card.&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either:&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
===Stream with the Visiontech Kfir card===&lt;br /&gt;
&lt;br /&gt;
====Install the drivers====&lt;br /&gt;
&lt;br /&gt;
If you want to be able to stream from a Visiontech Kfir card, you need to install its Linux drivers. Download the latest release of the drivers from the [http://www.linuxtv.org/download/mpeg2/ drivers download page] of the [http://www.linuxtv.org/ LinuxTV web&lt;br /&gt;
site].&lt;br /&gt;
&lt;br /&gt;
Uncompress the tarball and follow the instructions written in the &#039;&#039;INSTALL&#039;&#039; file to compile and install the drivers.&lt;br /&gt;
&lt;br /&gt;
Note: If you have a VIA chipset, you need to disable USB in the BIOS.&lt;br /&gt;
&lt;br /&gt;
====Stream====&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color kfir:///dev/video --sout &#039;#rtp{mux=ts,dst=192.168.0.42,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;/dev/video&#039;&#039;&#039; is the device corresponding to the Kfir card,&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either :&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
==Software encoding cards==&lt;br /&gt;
===Under GNU/Linux===&lt;br /&gt;
====Install the Video for Linux drivers====&lt;br /&gt;
&lt;br /&gt;
If you want to stream from an acquisition card or a webcam, a video4linux driver must be available for it. You can find more information about video4linux and supported devices [http://www.exploits.org/v4l here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile the right module for your device, and insert it into your kernel. Some video4linux modules are shipped with the 2.4.x and 2.6.x Linux kernels, the patch is available on the [http://bytesex.org/v4l Video4Linux HQ].&lt;br /&gt;
&lt;br /&gt;
You can test your device by using any of the listed programs in the &#039;&#039;Video: TV and PVR/DVR&#039;&#039; section of [http://www.exploits.org/v4l/ this page].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that v4l2 modules will also work with VLC.&lt;br /&gt;
&lt;br /&gt;
====Stream with VLC====&lt;br /&gt;
&lt;br /&gt;
Note: You must add &#039;&#039;&#039;--enable-v4l&#039;&#039;&#039; to &#039;&#039;&#039;./configure&#039;&#039;&#039; to use this feature.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color v4l:///dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0 --sout &#039;#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:rtp{mux=ts,dst=239.255.12.13,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: You can find all transcode options on this page : [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line|Advanced Streaming Using the Command Line]].&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;/dev/video&#039;&#039;&#039; is the device corresponding to your acquisition card or your webcam,&lt;br /&gt;
*&#039;&#039;&#039;norm=secam&#039;&#039;&#039; is name of the standard of the analogic signal (possible values are pal, secam, and ntsc),&lt;br /&gt;
*&#039;&#039;&#039;frequency=543250&#039;&#039;&#039; is the frequency of the channel in kHz (&#039;&#039;Warning:&#039;&#039; for VLC &amp;lt; 0.6.1, Frequency is channel frequency in MHz multiplied by 16),&lt;br /&gt;
*&#039;&#039;&#039;size=640x480&#039;&#039;&#039; is the size of the video you want (you can also put the standard size like &#039;&#039;subqcif&#039;&#039; (128x96), &#039;&#039;qsif&#039;&#039; (160x120), &#039;&#039;qcif&#039;&#039; (176x144), &#039;&#039;sif&#039;&#039; (320x240), &#039;&#039;cif&#039;&#039; (352x288) or &#039;&#039;vga&#039;&#039; (640x480)),&lt;br /&gt;
*&#039;&#039;&#039;channel=0&#039;&#039;&#039; is the number of the channel (usually 0 is for tuner, 1 for composite and 2 for svideo),&lt;br /&gt;
*&#039;&#039;&#039;adev=/dev/dsp&#039;&#039;&#039; is the audio device,&lt;br /&gt;
*&#039;&#039;&#039;audio=1&#039;&#039;&#039; is the number of the audio channel (usually 0 is for mono and 1 for stereo),&lt;br /&gt;
*&#039;&#039;&#039;vcodec=mp4v&#039;&#039;&#039; is the video format you want to encode in (&#039;&#039;mp4v&#039;&#039; is MPEG-4, &#039;&#039;mpgv&#039;&#039; is MPEG-1, and there is also &#039;&#039;h263&#039;&#039;, &#039;&#039;DIV1&#039;&#039;, &#039;&#039;DIV2&#039;&#039;, &#039;&#039;DIV3&#039;&#039;, &#039;&#039;I420&#039;&#039;, &#039;&#039;I422&#039;&#039;, &#039;&#039;I444&#039;&#039;, &#039;&#039;RV24&#039;&#039;, &#039;&#039;YUY2&#039;&#039;),&lt;br /&gt;
*&#039;&#039;&#039;acodec=mpga&#039;&#039;&#039; is the audio format you want to encode in (&#039;&#039;mpga&#039;&#039; is MPEG audio layer 2, &#039;&#039;a52&#039;&#039; is A52 i.e. AC3 sound),&lt;br /&gt;
*&#039;&#039;&#039;vb=3000&#039;&#039;&#039; is the video bitrate in Kbit/s&lt;br /&gt;
*&#039;&#039;&#039;ab=256&#039;&#039;&#039; is the audio bitrate in Kbit/s&lt;br /&gt;
*&#039;&#039;&#039;venc=ffmpeg&#039;&#039;&#039; allows to set the encoder to use, where:&lt;br /&gt;
**&#039;&#039;&#039;keyint=80&#039;&#039;&#039; is the maximal amount of frames between two key frames&lt;br /&gt;
**&#039;&#039;&#039;hurry-up&#039;&#039;&#039; allows the encoder to decrease the quality of the stream if the CPU can&#039;t keep up with the encoding rate&lt;br /&gt;
**&#039;&#039;&#039;vt=800000&#039;&#039;&#039; is the tolerance in kbit/s for the bitrate of the outputted video&lt;br /&gt;
*&#039;&#039;&#039;deinterlace&#039;&#039;&#039; tells VLC to deinterlace the video on the fly,&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either:&lt;br /&gt;
**&#039;&#039;&#039;the IP address of the machine you want to unicast to;&lt;br /&gt;
**&#039;&#039;&#039;or the DNS name the machine you want to unicast to;&lt;br /&gt;
**&#039;&#039;&#039;or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
==Stream with DirectShow (Windows)==&lt;br /&gt;
&lt;br /&gt;
===Install your peripheral drivers===&lt;br /&gt;
You need to install your peripherals under Windows with the appropriate drivers. Nothing else is necessary.&lt;br /&gt;
===Stream unicast/multicast with VLC in command line===&lt;br /&gt;
 % &#039;&#039;&#039;C:\Program Files\VideoLAN\VLC\vlc.exe -I rc --ttl 12 dshow:// vdev=&amp;quot;VGA USB Camera&amp;quot; adev=&amp;quot;USB Camera&amp;quot; size=&amp;quot;640x480&amp;quot; --sout=#rtp{mux=ts,dst=239.255.42.12,port=5004}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: You either need to provide the full path to the vlc.exe executable or add it&#039;s location to the Windows Path variable.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;-I rc&#039;&#039;&#039; is to activate the remote control interface (MS/DOS console)&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers),&lt;br /&gt;
*&#039;&#039;&#039;vdev=&amp;quot;VGA USB Camera&amp;quot;&#039;&#039;&#039; is the name of the video peripheral that DirectShow will use (this is only an exemple),&lt;br /&gt;
*&#039;&#039;&#039;adev=&amp;quot;USB Camera&amp;quot;&#039;&#039;&#039; is the name of the audio peripheral,&lt;br /&gt;
*&#039;&#039;&#039;size=&amp;quot;640x480&amp;quot;&#039;&#039;&#039; is the resolution (you can also put the standard size like &#039;&#039;subqcif&#039;&#039; (128x96), &#039;&#039;qsif&#039;&#039; (160x120), &#039;&#039;qcif&#039;&#039; &lt;br /&gt;
(176x144), &#039;&#039;sif&#039;&#039; (320x240), &#039;&#039;cif&#039;&#039; (352x288) or &#039;&#039;vga&#039;&#039; (640x480)).&lt;br /&gt;
*&#039;&#039;&#039;239.255.42.12&#039;&#039;&#039; is either:&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
&lt;br /&gt;
===Stream to file(s) with VLC in command line===&lt;br /&gt;
 % &#039;&#039;&#039;C:\Path\To\vlc.exe -I rc dshow:// :dshow-vdev=&amp;quot;Osprey-210 Video Device 1&amp;quot; :dshow-adev=&amp;quot;Unbalanced 1 (Osprey-2X0)&amp;quot;  :dshow-caching=200 --sout=&amp;quot;#duplicate{dst=&#039;transcode{vcodec=h264,vb=1260,fps=24,scale=1,width=640,height=480,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\\Path\\To\\File-1.mp4}&#039;,dst=&#039;transcode{vcodec=h264,vb=560,fps=24,scale=1,width=427,height=320,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\\Path\\To\\File-2.mp4}&#039;}&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;-I rc&#039;&#039;&#039; is to activate the remote control interface (MS/DOS console)&lt;br /&gt;
*&#039;&#039;&#039;dshow://...&#039;&#039;&#039; configures your input capture card / settings&lt;br /&gt;
*&#039;&#039;&#039;#duplicate{}&#039;&#039;&#039; multiple output configurations&lt;br /&gt;
*&#039;&#039;&#039;transcode{}&#039;&#039;&#039; video/audio codec settings&lt;br /&gt;
*&#039;&#039;&#039;std{}&#039;&#039;&#039; output/muxer settings&lt;br /&gt;
&lt;br /&gt;
== Mac OSX ==&lt;br /&gt;
&lt;br /&gt;
Note that VLC does not support streaming from live video or audio sources on Mac OSX.&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>Rawsted</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Codec&amp;diff=18816</id>
		<title>Codec</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Codec&amp;diff=18816"/>
		<updated>2011-03-14T15:07:08Z</updated>

		<summary type="html">&lt;p&gt;Rawsted: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;See Also the [http://www.videolan.org/doc/vlc-user-guide/en/ch02.html#id291422 Official documentation: list of modules]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{wikipedia|List of codecs}}&lt;br /&gt;
{{mmwiki|Video codecs|Category:Video_Codecs}}&lt;br /&gt;
{{mmwiki|Audio codecs|Category:Audio_Codecs}}&lt;br /&gt;
{{mmwiki|Containers|Category:Container_Formats}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Codec&#039;&#039;&#039; is short for coder/decoder.&lt;br /&gt;
&lt;br /&gt;
To know what codecs are readable with {{VLC}}, &#039;&#039;see [[VLC Features Formats]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
For [http://discerning.com/topics/audiovideo/video_encoding.html portability to almost all decoders], we recommend&lt;br /&gt;
using the [[MPEG-1]] standard of &amp;lt;code&amp;gt;&#039;&#039;&#039;vcodec&#039;&#039;&#039;=&#039;&#039;&#039;mp1v&#039;&#039;&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;&#039;&#039;acodec&#039;&#039;&#039;=&#039;&#039;&#039;mpga&#039;&#039;&#039;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&#039;&#039;&#039;mux&#039;&#039;&#039;=&#039;&#039;&#039;mpeg1&#039;&#039;&#039;&amp;lt;/code&amp;gt;.  See the [[MPEG]] Wiki page for more details on the other MPEG standards.&lt;br /&gt;
&lt;br /&gt;
To save a file in a different codec, you can use the transcoding [[wizard]] or [[transcode]] from the [[command prompt]] with a command like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vlc file --sout=&#039;#transcode{&#039;&#039;&#039;vcodec&#039;&#039;&#039;=&#039;&#039;&#039;&#039;&#039;mp1v&#039;&#039;&#039;&#039;&#039;, &#039;&#039;&#039;vb&#039;&#039;&#039;=&#039;&#039;&#039;&#039;&#039;1024&#039;&#039;&#039;&#039;&#039;, &#039;&#039;&#039;acodec&#039;&#039;&#039;=&#039;&#039;&#039;&#039;&#039;mpga&#039;&#039;&#039;&#039;&#039;, &#039;&#039;&#039;ab&#039;&#039;&#039;=&#039;&#039;&#039;&#039;&#039;128&#039;&#039;&#039;&#039;&#039;}:std{access=file, &#039;&#039;&#039;mux&#039;&#039;&#039;=&#039;&#039;&#039;&#039;&#039;mpeg1&#039;&#039;&#039;&#039;&#039;, &#039;&#039;&#039;dst&#039;&#039;&#039;=&#039;&#039;&#039;&#039;&#039;C:\file_name.mpg&#039;&#039;&#039;&#039;&#039;}&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Video Codecs==&lt;br /&gt;
Use the &amp;quot;name&amp;quot; part in your &amp;lt;code&amp;gt;vcodec=...&amp;lt;/code&amp;gt; commands&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;name&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;description&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mp1v&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-1]] Video - recommended for portability&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mp2v&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-2]] Video - used in DVDs&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mp4v&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-4]] Video&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SVQ1&#039;&#039;&#039;&lt;br /&gt;
| [[Sorenson Video]] v1&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SVQ3&#039;&#039;&#039;&lt;br /&gt;
| Sorenson Video v3&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DVDv&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-2|VOB]] Video - used in DVDs&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;WMV1&#039;&#039;&#039;&lt;br /&gt;
| [[Windows Media Video]] v1&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;WMV2&#039;&#039;&#039;&lt;br /&gt;
| Windows Media Video v2&lt;br /&gt;
|-&lt;br /&gt;
| WMV3&lt;br /&gt;
| Windows Media Video v3, also called Windows Media 9 ([[Common_Problems#WMV_files|unsupported]])&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DVSD&#039;&#039;&#039;&lt;br /&gt;
| [[Digital Video]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;MJPG&#039;&#039;&#039;&lt;br /&gt;
| [[MJPEG]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;H263&#039;&#039;&#039;&lt;br /&gt;
| [[H263]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;h264&#039;&#039;&#039;&lt;br /&gt;
| [[H264]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;theo&#039;&#039;&#039;&lt;br /&gt;
| [[Theora]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;IV20&#039;&#039;&#039;&lt;br /&gt;
| [[Indeo Video]]&lt;br /&gt;
|-&lt;br /&gt;
| IV40&lt;br /&gt;
| Indeo Video version 4 or later ([[Common_Problems#Problems_playing_types_of_files|unsupported]])&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;RV10&#039;&#039;&#039;&lt;br /&gt;
| [[Real Media Video]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;cvid&#039;&#039;&#039;&lt;br /&gt;
| [[Cinepak]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;VP31&#039;&#039;&#039;&lt;br /&gt;
| [[On2 VP]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FLV1&#039;&#039;&#039;&lt;br /&gt;
| [[Flash Video]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CYUV&#039;&#039;&#039;&lt;br /&gt;
| [[Creative YUV]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;HFYU&#039;&#039;&#039;&lt;br /&gt;
| [[Huffman YUV]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;MSVC&#039;&#039;&#039;&lt;br /&gt;
| [[Microsoft]] Video v1&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;MRLE&#039;&#039;&#039;&lt;br /&gt;
| Microsoft [[RLE]] Video&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AASC&#039;&#039;&#039;&lt;br /&gt;
| [[Autodesc]] RLE Video&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FLIC&#039;&#039;&#039;&lt;br /&gt;
| [[FLIC]] video&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;QPEG&#039;&#039;&#039;&lt;br /&gt;
| [[QPEG]] Video&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;VP8&#039;&#039;&#039;&lt;br /&gt;
| [[VP8]] Video&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Audio Codecs==&lt;br /&gt;
Use the &amp;quot;name&amp;quot; part in your &amp;lt;code&amp;gt;acodec=...&amp;lt;/code&amp;gt; commands&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;name&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;description&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mpga&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG audio]] (recommended for portability)&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mp3&#039;&#039;&#039;&lt;br /&gt;
| [[MP3 audio|MPEG Layer 3 audio]]&amp;lt;!-- - see also [[How To/Create an MP3]] --&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| &#039;&#039;&#039;mp4a&#039;&#039;&#039;&lt;br /&gt;
| [[MP4 audio]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;a52&#039;&#039;&#039;&lt;br /&gt;
| [[Dolby Digital]] ([[A52]] or [[AC3]])&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;vorb&#039;&#039;&#039;&lt;br /&gt;
| [[Vorbis]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;spx&#039;&#039;&#039;&lt;br /&gt;
| [[Speex]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;flac&#039;&#039;&#039; or &#039;&#039;&#039;fl32&#039;&#039;&#039;&lt;br /&gt;
| [[FLAC]]&lt;br /&gt;
|}&lt;br /&gt;
===No-&amp;quot;name&amp;quot; Codecs===&lt;br /&gt;
&lt;br /&gt;
* [[DTS]]&lt;br /&gt;
* [[AAC (Advanced Audio Coding)]]&lt;br /&gt;
* [[Windows Media Audio]]&lt;br /&gt;
* [[DV Audio]]&lt;br /&gt;
* [[LPCM]]&lt;br /&gt;
* [[ADPCM]]&lt;br /&gt;
* [[AMR]]&lt;br /&gt;
* [[QuickTime Audio]]&lt;br /&gt;
* [[Real Audio]]&lt;br /&gt;
* [[MACE]]&lt;br /&gt;
* [[MusePack]]&lt;br /&gt;
&lt;br /&gt;
==Subtitle Codecs==&lt;br /&gt;
&lt;br /&gt;
See [[SubtitlesCodec|Subtitles Codec]] for more information.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CVD&#039;&#039;&#039;&lt;br /&gt;
| [[CVD|CVD Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SVCD (Overlay Graphics)&#039;&#039;&#039;&lt;br /&gt;
| [http://www.vcdimager.org/pub/vcdimager/manuals/0.7/svcd-ogt-subtitles.html SVCD Subtitle (OGT) Information]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SRT&#039;&#039;&#039;&lt;br /&gt;
| [[SubRip|Subrip Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SSA/ASS&#039;&#039;&#039;&lt;br /&gt;
| [[SSA|Sub Station Alpha or Advanced Sub Station Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SubViewer&#039;&#039;&#039;&lt;br /&gt;
| [[Subviewer|SubViewer Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;VobSub&#039;&#039;&#039;&lt;br /&gt;
| [[VobSub|VobSub Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DVD subtitles&#039;&#039;&#039;&lt;br /&gt;
| [[DVD Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;VPlayer&#039;&#039;&#039;&lt;br /&gt;
| [[Vplayer Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;MicroDVD&#039;&#039;&#039;&lt;br /&gt;
| [[MicroDVD Subtitles]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Sami&#039;&#039;&#039;&lt;br /&gt;
| [[Sami Subtitles]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
[[Link title]]&lt;br /&gt;
&lt;br /&gt;
== Muxers ==&lt;br /&gt;
Use the &amp;quot;name&amp;quot; part in your &amp;lt;code&amp;gt;mux=...&amp;lt;/code&amp;gt; commands&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;name&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
| &#039;&#039;description&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mpeg1&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-1]] multiplexing - recommended for portability.  Only works with mp1v video and mpga audio, but works on all known players&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ts&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-TS|MPEG Transport Stream]], primarily used for streaming MPEG.  Also used in DVDs&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ps&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-PS|MPEG Program Stream]], primarily used for saving MPEG data to disk.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;mp4&#039;&#039;&#039;&lt;br /&gt;
| [[MPEG-4|MPEG-4 mux format]], used only for MPEG-4 video and MPEG audio.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;avi&#039;&#039;&#039;&lt;br /&gt;
| [[AVI]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;asf&#039;&#039;&#039;&lt;br /&gt;
| [[ASF]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;dummy&#039;&#039;&#039;&lt;br /&gt;
| [[dummy]] output, can be used in creation of [[MP3]] files.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ogg&#039;&#039;&#039;&lt;br /&gt;
| [http://www.xiph.org/ Xiph.org&#039;s] [[ogg]] container format.  Can contain audio, video, and metadata.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[FourCC]] and http://www.fourcc.org/&lt;br /&gt;
* http://discerning.com/topics/audiovideo/video_encoding.html&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Rawsted</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_from_Encoding_Cards_and_Other_Capture_Devices&amp;diff=18815</id>
		<title>Documentation:Streaming HowTo/Stream from Encoding Cards and Other Capture Devices</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_from_Encoding_Cards_and_Other_Capture_Devices&amp;diff=18815"/>
		<updated>2011-03-14T15:04:01Z</updated>

		<summary type="html">&lt;p&gt;Rawsted: /* Stream to file(s) with VLC in command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Hardware encoding cards==&lt;br /&gt;
&lt;br /&gt;
Note: This is possible under GNU/Linux only.&lt;br /&gt;
&lt;br /&gt;
VideoLAN supports two kinds of MPEG-2 encoding cards:&lt;br /&gt;
* Hauppauge WinTV-PVR-250 and WinTV-PVR-350,&lt;br /&gt;
* Visiontech Kfir.&lt;br /&gt;
&lt;br /&gt;
The Hauppauge WinTV-PVR-250/350 gives much better results and is cheaper than the Visiontech Kfir.&lt;br /&gt;
&lt;br /&gt;
===Stream with the Hauppauge WinTV-PVR-250/350 card===&lt;br /&gt;
====Install the drivers====&lt;br /&gt;
&lt;br /&gt;
First, you will have to patch your kernel (version 2.4) to support the v4l2 API (Video 4 Linux version 2). The patch is available on the [http://bytesex.org/v4l/ Video4Linux HQ].&lt;br /&gt;
If you use a 2.6 kernel, you only need to build I2C support and the BT848 Video For Linux module.&lt;br /&gt;
&lt;br /&gt;
Once your kernel is ready, install the CK version (currently in development) of the Linux drivers for the Hauppauge WinTV-PVR-250/350. They are hosted on [http://67.18.1.101/~ckennedy/ivtv ivtv ck]. You will need to patch your kernel to use it with a 2.4. You can also use the CVS version available here: [http://ivtv.sourceforge.net/ ivtv.sourceforge.net] (this version is not developped anymore).&lt;br /&gt;
Then, you will have to create the device and load the modules; for this, please refer to the documentation shipped with the drivers.&lt;br /&gt;
&lt;br /&gt;
====Stream with VLC====&lt;br /&gt;
&lt;br /&gt;
Note: You must add &#039;&#039;&#039;--enable-pvr&#039;&#039;&#039; to &#039;&#039;&#039;./configure&#039;&#039;&#039; to use this feature.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color pvr:///dev/video0:norm=secam:size=720x576:frequency=576250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout &#039;#rtp{mux=ts,dst=192.168.0.42,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;/dev/video0&#039;&#039;&#039; is the device corresponding to the encoding card,&lt;br /&gt;
*&#039;&#039;&#039;norm=secam&#039;&#039;&#039; is name of the standard of the analogic signal (possible values are pal, secam, and ntsc),&lt;br /&gt;
*&#039;&#039;&#039;size=720x576&#039;&#039;&#039; is the size of the video you want to stream,&lt;br /&gt;
*&#039;&#039;&#039;frequency=567250&#039;&#039;&#039; is the frequency in kHz of the channel you want to stream,&lt;br /&gt;
*&#039;&#039;&#039;bitrate=3000000&#039;&#039;&#039; is the average bitrate of the stream,&lt;br /&gt;
*&#039;&#039;&#039;maxbitrate=4000000&#039;&#039;&#039; is the maximum bitrate of the stream,&lt;br /&gt;
*&#039;&#039;&#039;1000&#039;&#039;&#039; is a secret value to work around a bug of the card.&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either:&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
===Stream with the Visiontech Kfir card===&lt;br /&gt;
&lt;br /&gt;
====Install the drivers====&lt;br /&gt;
&lt;br /&gt;
If you want to be able to stream from a Visiontech Kfir card, you need to install its Linux drivers. Download the latest release of the drivers from the [http://www.linuxtv.org/download/mpeg2/ drivers download page] of the [http://www.linuxtv.org/ LinuxTV web&lt;br /&gt;
site].&lt;br /&gt;
&lt;br /&gt;
Uncompress the tarball and follow the instructions written in the &#039;&#039;INSTALL&#039;&#039; file to compile and install the drivers.&lt;br /&gt;
&lt;br /&gt;
Note: If you have a VIA chipset, you need to disable USB in the BIOS.&lt;br /&gt;
&lt;br /&gt;
====Stream====&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color kfir:///dev/video --sout &#039;#rtp{mux=ts,dst=192.168.0.42,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;/dev/video&#039;&#039;&#039; is the device corresponding to the Kfir card,&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either :&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
==Software encoding cards==&lt;br /&gt;
===Under GNU/Linux===&lt;br /&gt;
====Install the Video for Linux drivers====&lt;br /&gt;
&lt;br /&gt;
If you want to stream from an acquisition card or a webcam, a video4linux driver must be available for it. You can find more information about video4linux and supported devices [http://www.exploits.org/v4l here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile the right module for your device, and insert it into your kernel. Some video4linux modules are shipped with the 2.4.x and 2.6.x Linux kernels, the patch is available on the [http://bytesex.org/v4l Video4Linux HQ].&lt;br /&gt;
&lt;br /&gt;
You can test your device by using any of the listed programs in the &#039;&#039;Video: TV and PVR/DVR&#039;&#039; section of [http://www.exploits.org/v4l/ this page].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that v4l2 modules will also work with VLC.&lt;br /&gt;
&lt;br /&gt;
====Stream with VLC====&lt;br /&gt;
&lt;br /&gt;
Note: You must add &#039;&#039;&#039;--enable-v4l&#039;&#039;&#039; to &#039;&#039;&#039;./configure&#039;&#039;&#039; to use this feature.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color v4l:///dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0 --sout &#039;#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:rtp{mux=ts,dst=239.255.12.13,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: You can find all transcode options on this page : [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line|Advanced Streaming Using the Command Line]].&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;/dev/video&#039;&#039;&#039; is the device corresponding to your acquisition card or your webcam,&lt;br /&gt;
*&#039;&#039;&#039;norm=secam&#039;&#039;&#039; is name of the standard of the analogic signal (possible values are pal, secam, and ntsc),&lt;br /&gt;
*&#039;&#039;&#039;frequency=543250&#039;&#039;&#039; is the frequency of the channel in kHz (&#039;&#039;Warning:&#039;&#039; for VLC &amp;lt; 0.6.1, Frequency is channel frequency in MHz multiplied by 16),&lt;br /&gt;
*&#039;&#039;&#039;size=640x480&#039;&#039;&#039; is the size of the video you want (you can also put the standard size like &#039;&#039;subqcif&#039;&#039; (128x96), &#039;&#039;qsif&#039;&#039; (160x120), &#039;&#039;qcif&#039;&#039; (176x144), &#039;&#039;sif&#039;&#039; (320x240), &#039;&#039;cif&#039;&#039; (352x288) or &#039;&#039;vga&#039;&#039; (640x480)),&lt;br /&gt;
*&#039;&#039;&#039;channel=0&#039;&#039;&#039; is the number of the channel (usually 0 is for tuner, 1 for composite and 2 for svideo),&lt;br /&gt;
*&#039;&#039;&#039;adev=/dev/dsp&#039;&#039;&#039; is the audio device,&lt;br /&gt;
*&#039;&#039;&#039;audio=1&#039;&#039;&#039; is the number of the audio channel (usually 0 is for mono and 1 for stereo),&lt;br /&gt;
*&#039;&#039;&#039;vcodec=mp4v&#039;&#039;&#039; is the video format you want to encode in (&#039;&#039;mp4v&#039;&#039; is MPEG-4, &#039;&#039;mpgv&#039;&#039; is MPEG-1, and there is also &#039;&#039;h263&#039;&#039;, &#039;&#039;DIV1&#039;&#039;, &#039;&#039;DIV2&#039;&#039;, &#039;&#039;DIV3&#039;&#039;, &#039;&#039;I420&#039;&#039;, &#039;&#039;I422&#039;&#039;, &#039;&#039;I444&#039;&#039;, &#039;&#039;RV24&#039;&#039;, &#039;&#039;YUY2&#039;&#039;),&lt;br /&gt;
*&#039;&#039;&#039;acodec=mpga&#039;&#039;&#039; is the audio format you want to encode in (&#039;&#039;mpga&#039;&#039; is MPEG audio layer 2, &#039;&#039;a52&#039;&#039; is A52 i.e. AC3 sound),&lt;br /&gt;
*&#039;&#039;&#039;vb=3000&#039;&#039;&#039; is the video bitrate in Kbit/s&lt;br /&gt;
*&#039;&#039;&#039;ab=256&#039;&#039;&#039; is the audio bitrate in Kbit/s&lt;br /&gt;
*&#039;&#039;&#039;venc=ffmpeg&#039;&#039;&#039; allows to set the encoder to use, where:&lt;br /&gt;
**&#039;&#039;&#039;keyint=80&#039;&#039;&#039; is the maximal amount of frames between two key frames&lt;br /&gt;
**&#039;&#039;&#039;hurry-up&#039;&#039;&#039; allows the encoder to decrease the quality of the stream if the CPU can&#039;t keep up with the encoding rate&lt;br /&gt;
**&#039;&#039;&#039;vt=800000&#039;&#039;&#039; is the tolerance in kbit/s for the bitrate of the outputted video&lt;br /&gt;
*&#039;&#039;&#039;deinterlace&#039;&#039;&#039; tells VLC to deinterlace the video on the fly,&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either:&lt;br /&gt;
**&#039;&#039;&#039;the IP address of the machine you want to unicast to;&lt;br /&gt;
**&#039;&#039;&#039;or the DNS name the machine you want to unicast to;&lt;br /&gt;
**&#039;&#039;&#039;or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
==Stream with DirectShow (Windows)==&lt;br /&gt;
&lt;br /&gt;
===Install your peripheral drivers===&lt;br /&gt;
You need to install your peripherals under Windows with the appropriate drivers. Nothing else is necessary.&lt;br /&gt;
===Stream unicast/multicast with VLC in command line===&lt;br /&gt;
 % &#039;&#039;&#039;C:\Program Files\VideoLAN\VLC\vlc.exe -I rc --ttl 12 dshow:// vdev=&amp;quot;VGA USB Camera&amp;quot; adev=&amp;quot;USB Camera&amp;quot; size=&amp;quot;640x480&amp;quot; --sout=#rtp{mux=ts,dst=239.255.42.12,port=5004}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: You either need to provide the full path to the vlc.exe executable or add it&#039;s location to the Windows Path variable.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;-I rc&#039;&#039;&#039; is to activate the remote control interface (MS/DOS console)&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers),&lt;br /&gt;
*&#039;&#039;&#039;vdev=&amp;quot;VGA USB Camera&amp;quot;&#039;&#039;&#039; is the name of the video peripheral that DirectShow will use (this is only an exemple),&lt;br /&gt;
*&#039;&#039;&#039;adev=&amp;quot;USB Camera&amp;quot;&#039;&#039;&#039; is the name of the audio peripheral,&lt;br /&gt;
*&#039;&#039;&#039;size=&amp;quot;640x480&amp;quot;&#039;&#039;&#039; is the resolution (you can also put the standard size like &#039;&#039;subqcif&#039;&#039; (128x96), &#039;&#039;qsif&#039;&#039; (160x120), &#039;&#039;qcif&#039;&#039; &lt;br /&gt;
(176x144), &#039;&#039;sif&#039;&#039; (320x240), &#039;&#039;cif&#039;&#039; (352x288) or &#039;&#039;vga&#039;&#039; (640x480)).&lt;br /&gt;
*&#039;&#039;&#039;239.255.42.12&#039;&#039;&#039; is either:&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
&lt;br /&gt;
===Stream to file(s) with VLC in command line===&lt;br /&gt;
 % &#039;&#039;&#039;C:\Path\To\vlc.exe -vvv -I rc dshow:// :dshow-vdev=&amp;quot;Osprey-210 Video Device 1&amp;quot; :dshow-adev=&amp;quot;Unbalanced 1 (Osprey-2X0)&amp;quot;  :dshow-caching=200 --sout=&amp;quot;#duplicate{dst=&#039;transcode{vcodec=h264,vb=1260,fps=24,scale=1,width=640,height=480,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\\Path\\To\\File-1.mp4}&#039;,dst=&#039;transcode{vcodec=h264,vb=560,fps=24,scale=1,width=427,height=320,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\\Path\\To\\File-2.mp4}&#039;}&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;-I rc&#039;&#039;&#039; is to activate the remote control interface (MS/DOS console)&lt;br /&gt;
*&#039;&#039;&#039;dshow://...&#039;&#039;&#039; configures your input capture card / settings&lt;br /&gt;
*&#039;&#039;&#039;#duplicate{}&#039;&#039;&#039; multiple output configurations&lt;br /&gt;
*&#039;&#039;&#039;transcode{}&#039;&#039;&#039; video/audio codec settings&lt;br /&gt;
*&#039;&#039;&#039;std{}&#039;&#039;&#039; output/muxer settings&lt;br /&gt;
&lt;br /&gt;
== Mac OSX ==&lt;br /&gt;
&lt;br /&gt;
Note that VLC does not support streaming from live video or audio sources on Mac OSX.&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>Rawsted</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_from_Encoding_Cards_and_Other_Capture_Devices&amp;diff=18814</id>
		<title>Documentation:Streaming HowTo/Stream from Encoding Cards and Other Capture Devices</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_from_Encoding_Cards_and_Other_Capture_Devices&amp;diff=18814"/>
		<updated>2011-03-14T14:41:57Z</updated>

		<summary type="html">&lt;p&gt;Rawsted: /* Stream with DirectShow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Hardware encoding cards==&lt;br /&gt;
&lt;br /&gt;
Note: This is possible under GNU/Linux only.&lt;br /&gt;
&lt;br /&gt;
VideoLAN supports two kinds of MPEG-2 encoding cards:&lt;br /&gt;
* Hauppauge WinTV-PVR-250 and WinTV-PVR-350,&lt;br /&gt;
* Visiontech Kfir.&lt;br /&gt;
&lt;br /&gt;
The Hauppauge WinTV-PVR-250/350 gives much better results and is cheaper than the Visiontech Kfir.&lt;br /&gt;
&lt;br /&gt;
===Stream with the Hauppauge WinTV-PVR-250/350 card===&lt;br /&gt;
====Install the drivers====&lt;br /&gt;
&lt;br /&gt;
First, you will have to patch your kernel (version 2.4) to support the v4l2 API (Video 4 Linux version 2). The patch is available on the [http://bytesex.org/v4l/ Video4Linux HQ].&lt;br /&gt;
If you use a 2.6 kernel, you only need to build I2C support and the BT848 Video For Linux module.&lt;br /&gt;
&lt;br /&gt;
Once your kernel is ready, install the CK version (currently in development) of the Linux drivers for the Hauppauge WinTV-PVR-250/350. They are hosted on [http://67.18.1.101/~ckennedy/ivtv ivtv ck]. You will need to patch your kernel to use it with a 2.4. You can also use the CVS version available here: [http://ivtv.sourceforge.net/ ivtv.sourceforge.net] (this version is not developped anymore).&lt;br /&gt;
Then, you will have to create the device and load the modules; for this, please refer to the documentation shipped with the drivers.&lt;br /&gt;
&lt;br /&gt;
====Stream with VLC====&lt;br /&gt;
&lt;br /&gt;
Note: You must add &#039;&#039;&#039;--enable-pvr&#039;&#039;&#039; to &#039;&#039;&#039;./configure&#039;&#039;&#039; to use this feature.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color pvr:///dev/video0:norm=secam:size=720x576:frequency=576250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout &#039;#rtp{mux=ts,dst=192.168.0.42,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;/dev/video0&#039;&#039;&#039; is the device corresponding to the encoding card,&lt;br /&gt;
*&#039;&#039;&#039;norm=secam&#039;&#039;&#039; is name of the standard of the analogic signal (possible values are pal, secam, and ntsc),&lt;br /&gt;
*&#039;&#039;&#039;size=720x576&#039;&#039;&#039; is the size of the video you want to stream,&lt;br /&gt;
*&#039;&#039;&#039;frequency=567250&#039;&#039;&#039; is the frequency in kHz of the channel you want to stream,&lt;br /&gt;
*&#039;&#039;&#039;bitrate=3000000&#039;&#039;&#039; is the average bitrate of the stream,&lt;br /&gt;
*&#039;&#039;&#039;maxbitrate=4000000&#039;&#039;&#039; is the maximum bitrate of the stream,&lt;br /&gt;
*&#039;&#039;&#039;1000&#039;&#039;&#039; is a secret value to work around a bug of the card.&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either:&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
===Stream with the Visiontech Kfir card===&lt;br /&gt;
&lt;br /&gt;
====Install the drivers====&lt;br /&gt;
&lt;br /&gt;
If you want to be able to stream from a Visiontech Kfir card, you need to install its Linux drivers. Download the latest release of the drivers from the [http://www.linuxtv.org/download/mpeg2/ drivers download page] of the [http://www.linuxtv.org/ LinuxTV web&lt;br /&gt;
site].&lt;br /&gt;
&lt;br /&gt;
Uncompress the tarball and follow the instructions written in the &#039;&#039;INSTALL&#039;&#039; file to compile and install the drivers.&lt;br /&gt;
&lt;br /&gt;
Note: If you have a VIA chipset, you need to disable USB in the BIOS.&lt;br /&gt;
&lt;br /&gt;
====Stream====&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color kfir:///dev/video --sout &#039;#rtp{mux=ts,dst=192.168.0.42,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;/dev/video&#039;&#039;&#039; is the device corresponding to the Kfir card,&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either :&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
==Software encoding cards==&lt;br /&gt;
===Under GNU/Linux===&lt;br /&gt;
====Install the Video for Linux drivers====&lt;br /&gt;
&lt;br /&gt;
If you want to stream from an acquisition card or a webcam, a video4linux driver must be available for it. You can find more information about video4linux and supported devices [http://www.exploits.org/v4l here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile the right module for your device, and insert it into your kernel. Some video4linux modules are shipped with the 2.4.x and 2.6.x Linux kernels, the patch is available on the [http://bytesex.org/v4l Video4Linux HQ].&lt;br /&gt;
&lt;br /&gt;
You can test your device by using any of the listed programs in the &#039;&#039;Video: TV and PVR/DVR&#039;&#039; section of [http://www.exploits.org/v4l/ this page].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that v4l2 modules will also work with VLC.&lt;br /&gt;
&lt;br /&gt;
====Stream with VLC====&lt;br /&gt;
&lt;br /&gt;
Note: You must add &#039;&#039;&#039;--enable-v4l&#039;&#039;&#039; to &#039;&#039;&#039;./configure&#039;&#039;&#039; to use this feature.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv --color v4l:///dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0 --sout &#039;#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:rtp{mux=ts,dst=239.255.12.13,port=5004}&#039; --ttl 12&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: You can find all transcode options on this page : [[Documentation:Streaming_HowTo/Advanced_Streaming_Using_the_Command_Line|Advanced Streaming Using the Command Line]].&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;/dev/video&#039;&#039;&#039; is the device corresponding to your acquisition card or your webcam,&lt;br /&gt;
*&#039;&#039;&#039;norm=secam&#039;&#039;&#039; is name of the standard of the analogic signal (possible values are pal, secam, and ntsc),&lt;br /&gt;
*&#039;&#039;&#039;frequency=543250&#039;&#039;&#039; is the frequency of the channel in kHz (&#039;&#039;Warning:&#039;&#039; for VLC &amp;lt; 0.6.1, Frequency is channel frequency in MHz multiplied by 16),&lt;br /&gt;
*&#039;&#039;&#039;size=640x480&#039;&#039;&#039; is the size of the video you want (you can also put the standard size like &#039;&#039;subqcif&#039;&#039; (128x96), &#039;&#039;qsif&#039;&#039; (160x120), &#039;&#039;qcif&#039;&#039; (176x144), &#039;&#039;sif&#039;&#039; (320x240), &#039;&#039;cif&#039;&#039; (352x288) or &#039;&#039;vga&#039;&#039; (640x480)),&lt;br /&gt;
*&#039;&#039;&#039;channel=0&#039;&#039;&#039; is the number of the channel (usually 0 is for tuner, 1 for composite and 2 for svideo),&lt;br /&gt;
*&#039;&#039;&#039;adev=/dev/dsp&#039;&#039;&#039; is the audio device,&lt;br /&gt;
*&#039;&#039;&#039;audio=1&#039;&#039;&#039; is the number of the audio channel (usually 0 is for mono and 1 for stereo),&lt;br /&gt;
*&#039;&#039;&#039;vcodec=mp4v&#039;&#039;&#039; is the video format you want to encode in (&#039;&#039;mp4v&#039;&#039; is MPEG-4, &#039;&#039;mpgv&#039;&#039; is MPEG-1, and there is also &#039;&#039;h263&#039;&#039;, &#039;&#039;DIV1&#039;&#039;, &#039;&#039;DIV2&#039;&#039;, &#039;&#039;DIV3&#039;&#039;, &#039;&#039;I420&#039;&#039;, &#039;&#039;I422&#039;&#039;, &#039;&#039;I444&#039;&#039;, &#039;&#039;RV24&#039;&#039;, &#039;&#039;YUY2&#039;&#039;),&lt;br /&gt;
*&#039;&#039;&#039;acodec=mpga&#039;&#039;&#039; is the audio format you want to encode in (&#039;&#039;mpga&#039;&#039; is MPEG audio layer 2, &#039;&#039;a52&#039;&#039; is A52 i.e. AC3 sound),&lt;br /&gt;
*&#039;&#039;&#039;vb=3000&#039;&#039;&#039; is the video bitrate in Kbit/s&lt;br /&gt;
*&#039;&#039;&#039;ab=256&#039;&#039;&#039; is the audio bitrate in Kbit/s&lt;br /&gt;
*&#039;&#039;&#039;venc=ffmpeg&#039;&#039;&#039; allows to set the encoder to use, where:&lt;br /&gt;
**&#039;&#039;&#039;keyint=80&#039;&#039;&#039; is the maximal amount of frames between two key frames&lt;br /&gt;
**&#039;&#039;&#039;hurry-up&#039;&#039;&#039; allows the encoder to decrease the quality of the stream if the CPU can&#039;t keep up with the encoding rate&lt;br /&gt;
**&#039;&#039;&#039;vt=800000&#039;&#039;&#039; is the tolerance in kbit/s for the bitrate of the outputted video&lt;br /&gt;
*&#039;&#039;&#039;deinterlace&#039;&#039;&#039; tells VLC to deinterlace the video on the fly,&lt;br /&gt;
*&#039;&#039;&#039;192.168.0.42&#039;&#039;&#039; is either:&lt;br /&gt;
**&#039;&#039;&#039;the IP address of the machine you want to unicast to;&lt;br /&gt;
**&#039;&#039;&#039;or the DNS name the machine you want to unicast to;&lt;br /&gt;
**&#039;&#039;&#039;or a multicast IP address.&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).&lt;br /&gt;
&lt;br /&gt;
==Stream with DirectShow (Windows)==&lt;br /&gt;
&lt;br /&gt;
===Install your peripheral drivers===&lt;br /&gt;
You need to install your peripherals under Windows with the appropriate drivers. Nothing else is necessary.&lt;br /&gt;
===Stream unicast/multicast with VLC in command line===&lt;br /&gt;
 % &#039;&#039;&#039;C:\Program Files\VideoLAN\VLC\vlc.exe -I rc --ttl 12 dshow:// vdev=&amp;quot;VGA USB Camera&amp;quot; adev=&amp;quot;USB Camera&amp;quot; size=&amp;quot;640x480&amp;quot; --sout=#rtp{mux=ts,dst=239.255.42.12,port=5004}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note: You either need to provide the full path to the vlc.exe executable or add it&#039;s location to the Windows Path variable.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;-I rc&#039;&#039;&#039; is to activate the remote control interface (MS/DOS console)&lt;br /&gt;
*&#039;&#039;&#039;12&#039;&#039;&#039; is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers),&lt;br /&gt;
*&#039;&#039;&#039;vdev=&amp;quot;VGA USB Camera&amp;quot;&#039;&#039;&#039; is the name of the video peripheral that DirectShow will use (this is only an exemple),&lt;br /&gt;
*&#039;&#039;&#039;adev=&amp;quot;USB Camera&amp;quot;&#039;&#039;&#039; is the name of the audio peripheral,&lt;br /&gt;
*&#039;&#039;&#039;size=&amp;quot;640x480&amp;quot;&#039;&#039;&#039; is the resolution (you can also put the standard size like &#039;&#039;subqcif&#039;&#039; (128x96), &#039;&#039;qsif&#039;&#039; (160x120), &#039;&#039;qcif&#039;&#039; &lt;br /&gt;
(176x144), &#039;&#039;sif&#039;&#039; (320x240), &#039;&#039;cif&#039;&#039; (352x288) or &#039;&#039;vga&#039;&#039; (640x480)).&lt;br /&gt;
*&#039;&#039;&#039;239.255.42.12&#039;&#039;&#039; is either:&lt;br /&gt;
**the IP address of the machine you want to unicast to;&lt;br /&gt;
**or the DNS name the machine you want to unicast to;&lt;br /&gt;
**or a multicast IP address.&lt;br /&gt;
&lt;br /&gt;
===Stream to file(s) with VLC in command line===&lt;br /&gt;
 % &#039;&#039;&#039;C:\Path\To\vlc.exe -vvv -I rc dshow:// :dshow-vdev=&amp;quot;Osprey-210 Video Device 1&amp;quot; :dshow-adev=&amp;quot;Unbalanced 1 (Osprey-2X0)&amp;quot;  :dshow-caching=200 --sout=&amp;quot;#duplicate{dst=&#039;transcode{vcodec=h264,vb=1260,fps=24,scale=1,width=640,height=480,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\\Path\\To\\File-1.mp4}&#039;,dst=&#039;transcode{vcodec=h264,vb=560,fps=24,scale=1,width=427,height=320,acodec=mp4a,ab=96,channels=2,samplerate=44100}:std{access=file,mux=mp4,dst=C:\\Path\\To\\File-2.mp4}&#039;}&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;-I rc&#039;&#039;&#039; is to activate the remote control interface (MS/DOS console)&lt;br /&gt;
*&#039;&#039;&#039;dshow://...&#039;&#039;&#039; configures your input capture card / settings&lt;br /&gt;
*&#039;&#039;&#039;#duplicate{}&#039;&#039;&#039; multiple output configurations&lt;br /&gt;
*&#039;&#039;&#039;transcode{}&#039;&#039;&#039; video/audo codec settings&lt;br /&gt;
*&#039;&#039;&#039;std{}&#039;&#039;&#039; output/muxer settings&lt;br /&gt;
&lt;br /&gt;
== Mac OSX ==&lt;br /&gt;
&lt;br /&gt;
Note that VLC does not support streaming from live video or audio sources on Mac OSX.&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>Rawsted</name></author>
	</entry>
</feed>