<?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=DukeBrymin</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=DukeBrymin"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/DukeBrymin/"/>
	<updated>2026-11-04T20:40:09Z</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=21023</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=21023"/>
		<updated>2012-01-01T00:00:01Z</updated>

		<summary type="html">&lt;p&gt;DukeBrymin: /* Stream unicast/multicast 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 its 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>DukeBrymin</name></author>
	</entry>
</feed>