<?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=RogerDPack</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=RogerDPack"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/RogerDPack/"/>
	<updated>2026-11-04T18:37:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19326</id>
		<title>VLC HowTo/Rip a DVD</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19326"/>
		<updated>2011-06-12T23:49:28Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Related */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|create a video file from a DVD using VLC}}&lt;br /&gt;
&lt;br /&gt;
You can use VLC to rip a &amp;quot;raw&amp;quot; video file from a DVD, or you can use VLC to create a condensed &amp;quot;transcoded&amp;quot; video file from a DVD.  This page mostly deals with using it to rip a raw video file from the command line.&lt;br /&gt;
&lt;br /&gt;
Here is an example. You&#039;ll need to type this at the command prompt (windows) or terminal (linux), all on one line. You may also need to give the full path to vlc (ie, replace vlc with &amp;quot;C:\Program Files\VideoLAN\vlc\vlc.exe&amp;quot;, or wherever you installed vlc)&lt;br /&gt;
&lt;br /&gt;
This is how to rip the &amp;quot;raw&amp;quot; video from a DVD, assuming you want to rip your DVD&#039;s title &amp;quot;1&amp;quot; to filename dvdout.mpg, from drive dvd:\&lt;br /&gt;
&lt;br /&gt;
    $ vlc dvdsimple://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
the vlc://quit at the end just tells it to exit after ripping.  You can also add a --qt-start-minimized, if desired.&lt;br /&gt;
&lt;br /&gt;
Note that the above doesn&#039;t do any transcoding on the video stream, it just basically dumps a verbatim copy to your hard drive.  In comparison with other ripping programs, this is sometimes lacking a few frames from the original (up to 10), but is typically pretty accurate.  If you want one that is even more accurate, use mplayer&#039;s dumpstream or makemkv.&lt;br /&gt;
&lt;br /&gt;
You may have some luck ripping the DVD from [http://www.howtogeek.com/howto/2696/how-to-rip-dvds-with-vlc the GUI], as well, though this is a bit tricky [1].  See also note at bottom.  Using the GUI may help if you want to both rip and [transcode] simultaneously, as the above commands only do a raw copy.  Recommend using handbrake if you want to do transcoding too.   NB that if you use the GUI you will need to name your output filename with the correct extension for your mux type or VLC will silently ignore your request to convert the stream on the DVD, and just display the video instead.  Silently, mind you.  (If it is working right it won&#039;t show you a video by default).  You will also need to check the &#039;no DVD menus&#039; option, which instructs it to use dvdsimple:// instead of dvd:// which [http://forum.videolan.org/viewtopic.php?f=2&amp;amp;t=52748 loops back] to the main menu after playing the title.&lt;br /&gt;
&lt;br /&gt;
If it stops halfway through, cleaning your disc might help.  If it still fails half-way through, it may work better to use dvd:// (in the GUI, that&#039;s not check &#039;no DVD menus&#039;) instead of dvdsimple:// but this is probably not a good option as it never stops but loops back to the main menu forever so you will have to stop it manually by monitoring it.  Recommend mplayer&#039;s dumpstream in this case.&lt;br /&gt;
&lt;br /&gt;
   $ vlc dvd://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
It might also help to set the cacheing value either higher or to 0 (in the GUI: under advanced options).&lt;br /&gt;
&lt;br /&gt;
OS X example (you may be able to use dvdsimple:///Volumes/volumeName as well).&lt;br /&gt;
&lt;br /&gt;
  $ /Applications/VLC.app/Contents/MacOS/VLC dvdsimple:///dev/disk1@1 --sout #standard{access=file,mux=ts,dst=dvdout.dvdsimple.vlc.mpg}&lt;br /&gt;
&lt;br /&gt;
== Related ==&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/WindowsFAQ-1.1.x#Some_DVD_movies_don.27t_work_at_all_or_they_crash.2Ffreeze_to_menu_or_playback&lt;br /&gt;
&lt;br /&gt;
[http://handbrake.fr Handbrake] is a free user friendly open source tool for ripping DVD&#039;s and simultaneously transcoding (condensing) the output file.  It uses VLC by default for ripping if installed on OS X.  For windows users handbrake can also use VLC&#039;s libdvdcss if you first [https://forum.handbrake.fr/viewtopic.php?f=11&amp;amp;t=16670#p78021 install it].&lt;br /&gt;
&lt;br /&gt;
Mplayer is another excellent option for ripping a raw mpeg stream from a DVD.  Here&#039;s an example (title 1, dvd on d:\):&lt;br /&gt;
&lt;br /&gt;
  $ mplayer -dumpstream dvdnav://1 -nocache -dvd-device d: -dumpfile dvdout.mpg&lt;br /&gt;
&lt;br /&gt;
MakeMKV is also good for ripping a DVD or blu-ray to a raw mpeg file.  To select certain titles, count down from the top of the checked title options.  The first one at the top is &amp;quot;title 1.&amp;quot;   You could then convert it (condense/transcode it) after using handbrake or VLC.&lt;br /&gt;
&lt;br /&gt;
If you want to convert makemkv&#039;s output to an mpeg file (mpeg-ts) then you could use tsmuxer.  OS X users will need a [http://instantitunes.wordpress.com/2010/02/26/use-tsmuxer-on-snow-leopard/ special version] of tsmuxer.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19325</id>
		<title>VLC HowTo/Rip a DVD</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19325"/>
		<updated>2011-06-12T23:44:52Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Further reading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|create a video file from a DVD using VLC}}&lt;br /&gt;
&lt;br /&gt;
You can use VLC to rip a &amp;quot;raw&amp;quot; video file from a DVD, or you can use VLC to create a condensed &amp;quot;transcoded&amp;quot; video file from a DVD.  This page mostly deals with using it to rip a raw video file from the command line.&lt;br /&gt;
&lt;br /&gt;
Here is an example. You&#039;ll need to type this at the command prompt (windows) or terminal (linux), all on one line. You may also need to give the full path to vlc (ie, replace vlc with &amp;quot;C:\Program Files\VideoLAN\vlc\vlc.exe&amp;quot;, or wherever you installed vlc)&lt;br /&gt;
&lt;br /&gt;
This is how to rip the &amp;quot;raw&amp;quot; video from a DVD, assuming you want to rip your DVD&#039;s title &amp;quot;1&amp;quot; to filename dvdout.mpg, from drive dvd:\&lt;br /&gt;
&lt;br /&gt;
    $ vlc dvdsimple://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
the vlc://quit at the end just tells it to exit after ripping.  You can also add a --qt-start-minimized, if desired.&lt;br /&gt;
&lt;br /&gt;
Note that the above doesn&#039;t do any transcoding on the video stream, it just basically dumps a verbatim copy to your hard drive.  In comparison with other ripping programs, this is sometimes lacking a few frames from the original (up to 10), but is typically pretty accurate.  If you want one that is even more accurate, use mplayer&#039;s dumpstream or makemkv.&lt;br /&gt;
&lt;br /&gt;
You may have some luck ripping the DVD from [http://www.howtogeek.com/howto/2696/how-to-rip-dvds-with-vlc the GUI], as well, though this is a bit tricky [1].  See also note at bottom.  Using the GUI may help if you want to both rip and [transcode] simultaneously, as the above commands only do a raw copy.  Recommend using handbrake if you want to do transcoding too.   NB that if you use the GUI you will need to name your output filename with the correct extension for your mux type or VLC will silently ignore your request to convert the stream on the DVD, and just display the video instead.  Silently, mind you.  (If it is working right it won&#039;t show you a video by default).  You will also need to check the &#039;no DVD menus&#039; option, which instructs it to use dvdsimple:// instead of dvd:// which [http://forum.videolan.org/viewtopic.php?f=2&amp;amp;t=52748 loops back] to the main menu after playing the title.&lt;br /&gt;
&lt;br /&gt;
If it stops halfway through, cleaning your disc might help.  If it still fails half-way through, it may work better to use dvd:// (in the GUI, that&#039;s not check &#039;no DVD menus&#039;) instead of dvdsimple:// but this is probably not a good option as it never stops but loops back to the main menu forever so you will have to stop it manually by monitoring it.  Recommend mplayer&#039;s dumpstream in this case.&lt;br /&gt;
&lt;br /&gt;
   $ vlc dvd://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
It might also help to set the cacheing value either higher or to 0 (in the GUI: under advanced options).&lt;br /&gt;
&lt;br /&gt;
OS X example (you may be able to use dvdsimple:///Volumes/volumeName as well).&lt;br /&gt;
&lt;br /&gt;
  $ /Applications/VLC.app/Contents/MacOS/VLC dvdsimple:///dev/disk1@1 --sout #standard{access=file,mux=ts,dst=dvdout.dvdsimple.vlc.mpg}&lt;br /&gt;
&lt;br /&gt;
== Related ==&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/WindowsFAQ-1.1.x#Some_DVD_movies_don.27t_work_at_all_or_they_crash.2Ffreeze_to_menu_or_playback&lt;br /&gt;
&lt;br /&gt;
[http://handbrake.fr Handbrake] is a free user friendly open source tool for ripping DVD&#039;s and transcoding (condensing) the output.  It uses VLC by default for ripping if installed on OS X.  For windows users handbrake can also use VLC&#039;s libdvdcss if you first [https://forum.handbrake.fr/viewtopic.php?f=11&amp;amp;t=16670#p78021 install it].&lt;br /&gt;
&lt;br /&gt;
Mplayer is also a good option for ripping a raw mpeg stream from a DVD.  Here&#039;s an example (title 1, dvd on d:\):&lt;br /&gt;
&lt;br /&gt;
  $ mplayer -dumpstream dvdnav://1 -nocache -dvd-device d: -dumpfile dvdout.mpg&lt;br /&gt;
&lt;br /&gt;
MakeMKV is also good for ripping a DVD or blu-ray to a raw mpeg file.  To select certain titles, count down from the top of the checked title options.  The first one at the top is &amp;quot;title 1.&amp;quot;   You could then convert it (condense/transcode it) after using handbrake or VLC.&lt;br /&gt;
&lt;br /&gt;
If you want to convert makemkv&#039;s output to an mpeg file (mpeg-ts) then you could use tsmuxer.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19324</id>
		<title>VLC HowTo/Rip a DVD</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19324"/>
		<updated>2011-06-12T23:41:57Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: note makemkv, mplayer&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|create a video file from a DVD using VLC}}&lt;br /&gt;
&lt;br /&gt;
You can use VLC to rip a &amp;quot;raw&amp;quot; video file from a DVD, or you can use VLC to create a condensed &amp;quot;transcoded&amp;quot; video file from a DVD.  This page mostly deals with using it to rip a raw video file from the command line.&lt;br /&gt;
&lt;br /&gt;
Here is an example. You&#039;ll need to type this at the command prompt (windows) or terminal (linux), all on one line. You may also need to give the full path to vlc (ie, replace vlc with &amp;quot;C:\Program Files\VideoLAN\vlc\vlc.exe&amp;quot;, or wherever you installed vlc)&lt;br /&gt;
&lt;br /&gt;
This is how to rip the &amp;quot;raw&amp;quot; video from a DVD, assuming you want to rip your DVD&#039;s title &amp;quot;1&amp;quot; to filename dvdout.mpg, from drive dvd:\&lt;br /&gt;
&lt;br /&gt;
    $ vlc dvdsimple://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
the vlc://quit at the end just tells it to exit after ripping.  You can also add a --qt-start-minimized, if desired.&lt;br /&gt;
&lt;br /&gt;
Note that the above doesn&#039;t do any transcoding on the video stream, it just basically dumps a verbatim copy to your hard drive.  In comparison with other ripping programs, this is sometimes lacking a few frames from the original (up to 10), but is typically pretty accurate.  If you want one that is even more accurate, use mplayer&#039;s dumpstream or makemkv.&lt;br /&gt;
&lt;br /&gt;
You may have some luck ripping the DVD from [http://www.howtogeek.com/howto/2696/how-to-rip-dvds-with-vlc the GUI], as well, though this is a bit tricky [1].  See also note at bottom.  Using the GUI may help if you want to both rip and [transcode] simultaneously, as the above commands only do a raw copy.  Recommend using handbrake if you want to do transcoding too.   NB that if you use the GUI you will need to name your output filename with the correct extension for your mux type or VLC will silently ignore your request to convert the stream on the DVD, and just display the video instead.  Silently, mind you.  (If it is working right it won&#039;t show you a video by default).  You will also need to check the &#039;no DVD menus&#039; option, which instructs it to use dvdsimple:// instead of dvd:// which [http://forum.videolan.org/viewtopic.php?f=2&amp;amp;t=52748 loops back] to the main menu after playing the title.&lt;br /&gt;
&lt;br /&gt;
If it stops halfway through, cleaning your disc might help.  If it still fails half-way through, it may work better to use dvd:// (in the GUI, that&#039;s not check &#039;no DVD menus&#039;) instead of dvdsimple:// but this is probably not a good option as it never stops but loops back to the main menu forever so you will have to stop it manually by monitoring it.  Recommend mplayer&#039;s dumpstream in this case.&lt;br /&gt;
&lt;br /&gt;
   $ vlc dvd://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
It might also help to set the cacheing value either higher or to 0 (in the GUI: under advanced options).&lt;br /&gt;
&lt;br /&gt;
OS X example (you may be able to use dvdsimple:///Volumes/volumeName as well).&lt;br /&gt;
&lt;br /&gt;
  $ /Applications/VLC.app/Contents/MacOS/VLC dvdsimple:///dev/disk1@1 --sout #standard{access=file,mux=ts,dst=dvdout.dvdsimple.vlc.mpg}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/WindowsFAQ-1.1.x#Some_DVD_movies_don.27t_work_at_all_or_they_crash.2Ffreeze_to_menu_or_playback&lt;br /&gt;
&lt;br /&gt;
[http://handbrake.fr Handbrake] is a free user friendly open source tool for ripping DVD&#039;s and transcoding (condensing) the output.  It uses VLC by default for ripping if installed on OS X.  For windows users handbrake can also use VLC&#039;s libdvdcss if you first [https://forum.handbrake.fr/viewtopic.php?f=11&amp;amp;t=16670#p78021 install it].&lt;br /&gt;
&lt;br /&gt;
Mplayer is also a good option for ripping a raw mpeg stream from a DVD.  Here&#039;s an example (title 1, dvd on d:\):&lt;br /&gt;
&lt;br /&gt;
  $ mplayer -dumpstream dvdnav://1 -nocache -dvd-device d: -dumpfile dvdout.mpg&lt;br /&gt;
&lt;br /&gt;
MakeMKV is also good for ripping a DVD or blu-ray to a raw mpeg file.  To select certain titles, count down from the top of the checked title options.  The first one at the top is &amp;quot;title 1.&amp;quot;   You could then convert it (condense/transcode it) after using handbrake or VLC.&lt;br /&gt;
&lt;br /&gt;
If you want to convert makemkv&#039;s output to an mpeg file (mpeg-ts) then you could use tsmuxer.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19323</id>
		<title>VLC HowTo/Rip a DVD</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19323"/>
		<updated>2011-06-12T23:36:04Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|create a video file from a DVD using VLC}}&lt;br /&gt;
&lt;br /&gt;
You can use VLC to rip a &amp;quot;raw&amp;quot; video file from a DVD, or you can use VLC to create a condensed &amp;quot;transcoded&amp;quot; video file from a DVD.  This page mostly deals with using it to rip a raw video file from the command line.&lt;br /&gt;
&lt;br /&gt;
Here is an example. You&#039;ll need to type this at the command prompt (windows) or terminal (linux), all on one line. You may also need to give the full path to vlc (ie, replace vlc with &amp;quot;C:\Program Files\VideoLAN\vlc\vlc.exe&amp;quot;, or wherever you installed vlc)&lt;br /&gt;
&lt;br /&gt;
This is how to rip the &amp;quot;raw&amp;quot; video from a DVD, assuming you want to rip your DVD&#039;s title &amp;quot;1&amp;quot; to filename dvdout.mpg, from drive dvd:\&lt;br /&gt;
&lt;br /&gt;
    $ vlc dvdsimple://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
the vlc://quit at the end just tells it to exit after ripping.  You can also add a --qt-start-minimized, if desired.&lt;br /&gt;
&lt;br /&gt;
Note that the above doesn&#039;t do any transcoding on the video stream, it just basically dumps a verbatim copy to your hard drive.  In comparison with other ripping programs, this is sometimes lacking a few frames from the original (up to 10), but is typically pretty accurate.  If you want one that is even more accurate, use mplayer&#039;s dumpstream or makemkv.&lt;br /&gt;
&lt;br /&gt;
You may have some luck ripping the DVD from [http://www.howtogeek.com/howto/2696/how-to-rip-dvds-with-vlc the GUI], as well, though this is a bit tricky [1].  See also note at bottom.  Using the GUI may help if you want to both rip and [transcode] simultaneously, as the above commands only do a raw copy.  Recommend using handbrake if you want to do transcoding too.   NB that if you use the GUI you will need to name your output filename with the correct extension for your mux type or VLC will silently ignore your request to convert the stream on the DVD, and just display the video instead.  Silently, mind you.  (If it is working right it won&#039;t show you a video by default).  You will also need to check the &#039;no DVD menus&#039; option, which instructs it to use dvdsimple:// instead of dvd:// which [http://forum.videolan.org/viewtopic.php?f=2&amp;amp;t=52748 loops back] to the main menu after playing the title.&lt;br /&gt;
&lt;br /&gt;
If it stops halfway through, cleaning your disc might help.  If it still fails half-way through, it may work better to use dvd:// (in the GUI, that&#039;s not check &#039;no DVD menus&#039;) instead of dvdsimple:// but this is probably not a good option as it never stops but loops back to the main menu forever so you will have to stop it manually by monitoring it.  Recommend mplayer&#039;s dumpstream in this case.&lt;br /&gt;
&lt;br /&gt;
   $ vlc dvd://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
It might also help to set the cacheing value either higher or to 0 (in the GUI: under advanced options).&lt;br /&gt;
&lt;br /&gt;
OS X example (you may be able to use dvdsimple:///Volumes/volumeName as well).&lt;br /&gt;
&lt;br /&gt;
  $ /Applications/VLC.app/Contents/MacOS/VLC dvdsimple:///dev/disk1@1 --sout #standard{access=file,mux=ts,dst=dvdout.dvdsimple.vlc.mpg}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/WindowsFAQ-1.1.x#Some_DVD_movies_don.27t_work_at_all_or_they_crash.2Ffreeze_to_menu_or_playback&lt;br /&gt;
&lt;br /&gt;
[http://handbrake.fr Handbrake] is a free user friendly open source tool for ripping DVD&#039;s.  Unfortunately it only transcodes from DVD to a file (not a raw rip), but it does it well.  It uses VLC by default for ripping if installed on OS X.  For windows users handbrake can use VLC&#039;s libdvdcss if you [https://forum.handbrake.fr/viewtopic.php?f=11&amp;amp;t=16670#p78021 install it].&lt;br /&gt;
&lt;br /&gt;
MakeMKV is also good for ripping a DVD or blu-ray to raw mpeg.  You can then convert it using handbrake or VLC.  VLC is not fine tuned for accurate ripping, though it does pretty well, these other tools may be better.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19322</id>
		<title>VLC HowTo/Rip a DVD</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Rip_a_DVD&amp;diff=19322"/>
		<updated>2011-06-12T23:31:23Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|create a video file from a DVD using VLC}}&lt;br /&gt;
&lt;br /&gt;
Here is an example. You&#039;ll need to type this at the command prompt (windows) or terminal (linux), all on one line. You may also need to give the full path to vlc (ie, replace vlc with &amp;quot;C:\Program Files\VideoLAN\vlc\vlc.exe&amp;quot;, or wherever you installed vlc)&lt;br /&gt;
&lt;br /&gt;
This is how to rip the &amp;quot;raw mpg&amp;quot; from a DVD, assuming you want to rip your DVD&#039;s title &amp;quot;1&amp;quot; to filename dvdout.mpg&lt;br /&gt;
&lt;br /&gt;
    $ vlc dvdsimple://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
the vlc://quit at the end just tells it to start, complete the rip, then exit.  You can also add a --qt-start-minimized to that, if desired.&lt;br /&gt;
&lt;br /&gt;
Note that the above doesn&#039;t do any transcoding on the video stream, it just basically dumps a verbatim copy to your hard drive.&lt;br /&gt;
&lt;br /&gt;
You may have some luck ripping the DVD from [http://www.howtogeek.com/howto/2696/how-to-rip-dvds-with-vlc the GUI], as well, though this is a bit tricky [1].  See also note at bottom.  Using the GUI may be easier for if you want to both rip and [transcode] simultaneously, as the above commands only do a raw copy.  NB that if you use the GUI you will need to name your output filename with the correct extension for your mux type or VLC will silently ignore your desire to convert, and just display the video instead.  Silently, mind you.  (If it is working right it won&#039;t show you a video by default).  You will also need to check the &#039;no DVD menus&#039; option, which instructs it to use dvdsimple:// instead of dvd:// which [http://forum.videolan.org/viewtopic.php?f=2&amp;amp;t=52748 loops back] to the main menu after playing the title.&lt;br /&gt;
&lt;br /&gt;
If it stops halfway through, cleaning your disc might help.  If it still fails half-way through, it may work better to use dvd:// (in the GUI, that&#039;s not check &#039;no DVD menus&#039;) instead of dvdsimple:// but this is probably not a good option as it never stops it loops back to the main menu forever so you will have to stop it manually by watching it.&lt;br /&gt;
&lt;br /&gt;
   $ vlc dvd://d:\@1 --sout &amp;quot;#standard{access=file,mux=ts,dst=dvdout.mpg}&amp;quot; vlc://quit&lt;br /&gt;
&lt;br /&gt;
It might also help to set the cacheing value either higher or to 0 (in the GUI: under advanced options).&lt;br /&gt;
&lt;br /&gt;
OS X&lt;br /&gt;
&lt;br /&gt;
  $ /Applications/VLC.app/Contents/MacOS/VLC dvdsimple:///dev/disk1@1 --sout #standard{access=file,mux=ts,dst=dvdout.dvdsimple.vlc.mpg}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
http://wiki.videolan.org/WindowsFAQ-1.1.x#Some_DVD_movies_don.27t_work_at_all_or_they_crash.2Ffreeze_to_menu_or_playback&lt;br /&gt;
&lt;br /&gt;
[http://handbrake.fr Handbrake] is a free user friendly open source tool for ripping DVD&#039;s.  Unfortunately it only transcodes from DVD to a file (not a raw rip), but it does it well.  It uses VLC by default for ripping if installed on OS X.  For windows users handbrake can use VLC&#039;s libdvdcss if you [https://forum.handbrake.fr/viewtopic.php?f=11&amp;amp;t=16670#p78021 install it].&lt;br /&gt;
&lt;br /&gt;
MakeMKV is also good for ripping a DVD or blu-ray to raw mpeg.  You can then convert it using handbrake or VLC.  VLC is not fine tuned for accurate ripping, though it does pretty well, these other tools may be better.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Make_a_DVD&amp;diff=19320</id>
		<title>VLC HowTo/Make a DVD</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Make_a_DVD&amp;diff=19320"/>
		<updated>2011-06-12T22:41:57Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|create a DVD to play in your DVD player from video files stored on your computer}}&lt;br /&gt;
&lt;br /&gt;
== DVD Formats ==&lt;br /&gt;
To make a DVD, you first have to change your movie file into the DVD format, which is MPEG 2. This format is:&lt;br /&gt;
&lt;br /&gt;
=== PAL Format ===&lt;br /&gt;
Europe and elsewhere&lt;br /&gt;
* Encapsulation (mux): &#039;&#039;&#039;mpeg ps&#039;&#039;&#039; up to 10.08 Mbps total for everything.&lt;br /&gt;
* Video:&lt;br /&gt;
** Format &#039;&#039;&#039;mp2v&#039;&#039;&#039; (MPEG-2 Video), up to 9.8 Mbps&lt;br /&gt;
** Resolution of &#039;&#039;&#039;720x576&#039;&#039;&#039; (Full D1), &#039;&#039;&#039;704x576&#039;&#039;&#039;, &#039;&#039;&#039;352x576&#039;&#039;&#039; (Half D1), &#039;&#039;&#039;352x288&#039;&#039;&#039; (same as VCD)&lt;br /&gt;
** &#039;&#039;&#039;25&#039;&#039;&#039; frames/sec&lt;br /&gt;
* Audio:&lt;br /&gt;
** Up to 8 audio tracks in the following formats. At least one track must be in a52, mp2a or raw.&lt;br /&gt;
*** &#039;&#039;&#039;mp2a&#039;&#039;&#039; Standard MPEG Audio.&lt;br /&gt;
*** &#039;&#039;&#039;a52&#039;&#039;&#039; AC3 Dolby Digital&lt;br /&gt;
*** DTS Audio&lt;br /&gt;
*** PCM Uncompressed (&#039;&#039;&#039;raw&#039;&#039;&#039;)&lt;br /&gt;
** Format: &#039;&#039;&#039;48000 Hz&#039;&#039;&#039;, 32 - 1536 kbps&lt;br /&gt;
&lt;br /&gt;
=== NTSC Format ===&lt;br /&gt;
Used mainly in USA&lt;br /&gt;
* Encapsulation (mux): &#039;&#039;&#039;mpeg ps&#039;&#039;&#039; up to 10.08 Mbps total for everything.&lt;br /&gt;
* Video:&lt;br /&gt;
** Format &#039;&#039;&#039;mp2v&#039;&#039;&#039; (MPEG-2 Video), up to 9.8 Mbps&lt;br /&gt;
** Resolution of &#039;&#039;&#039;720x480&#039;&#039;&#039; (Full D1), &#039;&#039;&#039;704x480&#039;&#039;&#039;, &#039;&#039;&#039;352x480&#039;&#039;&#039; (Half D1), &#039;&#039;&#039;352x240&#039;&#039;&#039; (same as VCD)&lt;br /&gt;
** &#039;&#039;&#039;29.97&#039;&#039;&#039; frames/sec&lt;br /&gt;
* Audio:&lt;br /&gt;
** Up to 8 audio tracks in the following formats. At least one track must be in a52 or raw.&lt;br /&gt;
*** &#039;&#039;&#039;mp2a&#039;&#039;&#039; Standard MPEG Audio.&lt;br /&gt;
*** &#039;&#039;&#039;a52&#039;&#039;&#039; AC3 Dolby Digital&lt;br /&gt;
*** DTS Audio&lt;br /&gt;
*** PCM Uncompressed (&#039;&#039;&#039;raw&#039;&#039;&#039;)&lt;br /&gt;
** Format: &#039;&#039;&#039;48000 Hz&#039;&#039;&#039;, 32 - 1536 kbps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Encoding the Video with VLC ==&lt;br /&gt;
&lt;br /&gt;
* Format a file into a .mpg, mpeg ps encapsulation, mp2v video (a good bitrate is 4 Mbps).&lt;br /&gt;
&lt;br /&gt;
* For audio, mp2a 2-channel 192K works well.  If you need more channels, use a52 and increase the bitrate; budget 64 or 96K/channel (2 channels 192K, 6 channel 384K,...&lt;br /&gt;
&lt;br /&gt;
* A DVD format file should be 720x480 resolution for NTSC, or 720x576 resolution for PAL.&lt;br /&gt;
&lt;br /&gt;
* Set the --sout-transcode-fps to match your target, using 29.97 for NTSC, 25 for PAL.&lt;br /&gt;
&lt;br /&gt;
* Set the --sout-ffmpeg-keyint to 16 (possibly not needed, but I use this and it works)&lt;br /&gt;
&lt;br /&gt;
* Set the --sout-ffmpeg-strict-rc (see notes below)&lt;br /&gt;
&lt;br /&gt;
* Use the --aspect-ratio switch to control things.  For instance, a Webcam or framegrabber with 640x480 or 320x240 resolution has an --aspect-ratio of 4:3.  You need to specify this so that the transcoding doesn&#039;t make the output video &amp;quot;fat&amp;quot;, stretch things to fit the wider DVD width.  Standard DVD &amp;quot;letterbox&amp;quot; has an aspect ratio of 16:9.&lt;br /&gt;
&lt;br /&gt;
Here is an example. The .asf source movie is a 640x480 frame grabber. You&#039;ll need to type this at the command prompt (windows) or terminal (linux), all on one line. You may also need to give the full path to vlc (ie, replace &#039;&#039;vlc&#039;&#039; with &#039;&#039;&amp;quot;C:\Program Files\VideoLAN\vlc\vlc&amp;quot;&#039;&#039;, or wherever you installed vlc)&lt;br /&gt;
&lt;br /&gt;
* In the command I included &#039;&#039;&#039;--stop-time=20&#039;&#039;&#039;, which tells VLC to only encode the first 20 seconds. This is so you can then view the output and make sure it looks OK. To encode the full thing, just use the same command without the --stop-time=20.&lt;br /&gt;
* This command goes all on one line. Important bits (which you should edit) are shown in bold.&lt;br /&gt;
&amp;lt;BLOCKQUOTE&amp;gt;&lt;br /&gt;
vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=#transcode{vcodec=mp2v,vb=&#039;&#039;&#039;4096&#039;&#039;&#039;,acodec=mp2a,ab=&#039;&#039;&#039;192&#039;&#039;&#039;,scale=1,&#039;&#039;&#039;channels=2&#039;&#039;&#039;}:std{access=file,mux=ps,url=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;} &#039;&#039;&#039;--aspect-ratio=&amp;quot;4:3&amp;quot;&#039;&#039;&#039; --sout-transcode-width=&#039;&#039;&#039;720&#039;&#039;&#039; --sout-transcode-height=&#039;&#039;&#039;480&#039;&#039;&#039; --sout-transcode-fps=&#039;&#039;&#039;29.97&#039;&#039;&#039; --sout-ffmpeg-keyint=16 --sout-ffmpeg-strict-rc &#039;&#039;&#039;--stop-time=20&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/BLOCKQUOTE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Explained:&lt;br /&gt;
*&#039;&#039;&#039;channels=2&#039;&#039;&#039; - needed because mp2a can only cope with 2 channels, it&#039;s not needed (or wanted) if you used a52&lt;br /&gt;
* &#039;&#039;&#039;aspect-rato=&amp;quot;...&amp;quot;&#039;&#039;&#039; - to avoid stretching to image, set this to the ratio of your source file.&lt;br /&gt;
* If you use PAL, don&#039;t forget to change 720, 480 and 29.97!&lt;br /&gt;
* &#039;&#039;&#039;sout-ffmpeg-keyint&#039;&#039;&#039; - number of keyframes (this is to do with the encoding. Inclusion will help the quality of the output file)&lt;br /&gt;
* &#039;&#039;&#039;sout-ffmpeg-strict-rc&#039;&#039;&#039; ffmpeg by default uses a variable bit rate.  This flag keeps the max rate of the VBR closer to the average rate.  Without this flag, ffmpeg may produce a file with a max rate that will be incompatible for DVD.&lt;br /&gt;
* &#039;&#039;&#039;stop-time&#039;&#039;&#039; delete this to encode the whole thing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alternative&#039;&#039;&#039; - This is a slightly different way to do the encoding:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BLOCKQUOTE&amp;gt;&lt;br /&gt;
vlc C:\Movies\DiveModules1to3_2Mbps.asf  :sout=#transcode{vcodec=mp2v,vb=4096,scale=1,acodec=mp2a, ab=192,channels=2}:duplicate{dst=std{access=file,mux=ps,url=&amp;quot;C:\TEMP\Dive1_3_out.mpg&amp;quot;}} --aspect-ratio &amp;quot;4:3&amp;quot;  --sout-transcode-width 720 --sout-transcode-height 480 --sout-transcode-fps 29.97  --sout-ffmpeg-keyint 16  --sout-ffmpeg-strict-rc&lt;br /&gt;
&amp;lt;/BLOCKQUOTE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the &#039;&#039;sout-ffmpeg-strict-rc&#039;&#039;, or &#039;&#039;strict rate control&#039;&#039;, flag can be permanently set in the Preferences as an Advanced Option under Input/Codecs-&amp;gt;Other Codecs-&amp;gt;FFmpeg.  Note that this may be necessary to create a mpeg2 file that is DVD compatible&lt;br /&gt;
&lt;br /&gt;
== DVD ISO Creation and Burning ==&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
This example shows how to create a DVD using [http://sourceforge.net/projects/dvd-hive/ DVDHive] and [http://www.cdburnerxp.se/ CDBurnerXP]. These are good, &#039;&#039;free&#039;&#039; tools, and you will need to install both of these.  &lt;br /&gt;
&lt;br /&gt;
* DVD Hive SourceForge.net project is inactive.&lt;br /&gt;
* Launch DVD Hive&lt;br /&gt;
* Select Options, type in a name you want for the video&lt;br /&gt;
* Select Add, then browse to the .mpg file and select it.&lt;br /&gt;
* Select Hive -- it will create a .iso image.&lt;br /&gt;
* If the resulting ISO is &amp;lt; 4.4GB you should be OK.  Otherwise reencode with VLC, knocking the bitrate down a bit (the 4 mbps mp2v/192k mp2a works fine, with a full-length video). Also note that some versions of windows (mainly 98) and filesystems (FAT16, FAT32) can&#039;t cope with files over 4GB (XP on NTFS is fine).&lt;br /&gt;
&lt;br /&gt;
* Launch CDBurnerXP&lt;br /&gt;
* A &amp;quot;New Compilation&amp;quot; window opens -- pick the first choice, which says &amp;quot;...and/or burn an ISO image...&amp;quot;&lt;br /&gt;
* In the upper left corner of the main window, select File -- Write Disc From ISO File&lt;br /&gt;
* &amp;quot;Write ISO Image&amp;quot; screen opens.&lt;br /&gt;
* &amp;quot;No ISO Image&amp;quot; -- click the &amp;quot;...&amp;quot; button next to it, and browse to where you put the .ISO  (DVD-Hive defaults to putting it in c:\program files\DVD Hive\ISO).&lt;br /&gt;
* &amp;quot;Writing Speed&amp;quot; -- select the minimum value specified for your media and DVD drive.  For example, my DVD supports 8X write, but I often use 4X write media, so I change it to say 4X.&lt;br /&gt;
* &amp;quot;Write Disc&amp;quot; -- click it, and the image will be burned.&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
&lt;br /&gt;
You can burn DVDs in linux using [http://dvdauthor.sourceforge.net dvdauthor]. It&#039;s quite tricky to use that on its own, so you should download a front-end - try [http://qdvdauthor.sourceforge.net/ Q DVD Author] or [http://dvdstyler.sourceforge.net/ DVD Styler].&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17769</id>
		<title>VideoLan VideoConference</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17769"/>
		<updated>2010-11-23T01:10:14Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;VideoLan VideoConference&#039;&#039;&#039; (VLVC) is a plugin for the [[VLC media player]].It adds videoconferencing functions, it can connect from 2 to 10 people so that they can see and hear each others with the help of a computer and a webcam. This software is free and is supported on [[Windows]], [[Linux]] and [[Mac OS]]. It can be downloaded on the Internet and it aims to be used by private individuals and professionals as well.&lt;br /&gt;
&lt;br /&gt;
It received good reviews [http://forums.whirlpool.net.au/forum-replies-archive.cfm/1081016.html].&lt;br /&gt;
&lt;br /&gt;
==Modes==&lt;br /&gt;
VLVC will allow four kinds of videoconferencing modes, thus covering most of the users&#039; needs.&lt;br /&gt;
* Chatroom mode : All users can hear and see each others, everybody can speak freely.&lt;br /&gt;
* Conference mode : This mode has one single user, the server, who transmits his sound and video streams to all other users. In other words, he is the only one who can be heard and seen.&lt;br /&gt;
* Amphitheatre mode : This mode is still under development. It is an advanced version of the Conference mode that allows the administrator (the server) to grant and revoke the right of speech to one single user at a time.&lt;br /&gt;
* Meeting mode : This mode is under development too. It is similar to the Amphitheatre mode, but it can grant and revoke the rights of speech to multiple users at a time.&lt;br /&gt;
&lt;br /&gt;
==The team==&lt;br /&gt;
The project was created in 2003 by a group of students of Epitech, it was then taken over in 2005. Considering the good results of VLVC as a school project, new students have joined the team to take over the work.&lt;br /&gt;
&lt;br /&gt;
===Founders of the project===&lt;br /&gt;
* Arnaud Deredec : Former project leader&lt;br /&gt;
* Julien Arnaud : Former communication supervisor&lt;br /&gt;
* Julien Cupillard : Former development supervisor&lt;br /&gt;
* Florian Gustin : Former member in charge of external relationships&lt;br /&gt;
* Guillaume Martin : Former system administrator&lt;br /&gt;
* Floren Nguyen : Former technical developer&lt;br /&gt;
* Thomas Delon : Project leader&lt;br /&gt;
* Romain Lavocat : Communication supervisor&lt;br /&gt;
* William Lienard : Development supervisor&lt;br /&gt;
* Julien Passeri : Member in charge of external relationships&lt;br /&gt;
* Sylvestre Ho Tam Chay : Technical developer&lt;br /&gt;
* David Yu : Technical developer&lt;br /&gt;
* Mathavarajan Sugumaran : Technical developer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Current status of this project is unknown. There appears to be some code and documentation here [http://sourceforge.net/projects/vlvc/] [http://vlvc.svn.sourceforge.net/viewvc/vlvc/].  Last work apparently done in 2007.  Note that the downloadable stuff seems based on a more recent SVN version than their repository does?&lt;br /&gt;
&lt;br /&gt;
==See also ==&lt;br /&gt;
&lt;br /&gt;
* [[VideoLAN]]&lt;br /&gt;
* [[VLC media player]]&lt;br /&gt;
&lt;br /&gt;
In general, a single instance of VLC can &amp;quot;play&amp;quot; or &amp;quot;transcode&amp;quot; several streams at once, just not to the same window.&lt;br /&gt;
&lt;br /&gt;
[[VLM]] (a stream scheduler) within VLC, can help with that, as well as the telnet and web interfaces.&lt;br /&gt;
&lt;br /&gt;
More things that might help for playing multiple streams at once:&lt;br /&gt;
&lt;br /&gt;
[[Mosaic]]&lt;br /&gt;
&lt;br /&gt;
VLC can also &amp;quot;add&amp;quot; (combine) streams iff the encoding and bitrates of the two streams match, using VLC &amp;quot;slave input&amp;quot; &lt;br /&gt;
You could theoretically use this to combine video with a separate audio file, or possibly &amp;quot;overlay&amp;quot; a video with audio, or combine two audio files together.  Haven&#039;t tried it though.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17703</id>
		<title>VideoLan VideoConference</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17703"/>
		<updated>2010-11-20T13:13:22Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;VideoLan VideoConference&#039;&#039;&#039; (VLVC) is a plugin for the [[VLC media player]].It adds videoconferencing functions, it can connect from 2 to 10 people so that they can see and hear each others with the help of a computer and a webcam. This software is free and is supported on [[Windows]], [[Linux]] and [[Mac OS]]. It can be downloaded on the Internet and it aims to be used by private individuals and professionals as well.&lt;br /&gt;
&lt;br /&gt;
It received good reviews [http://forums.whirlpool.net.au/forum-replies-archive.cfm/1081016.html].&lt;br /&gt;
&lt;br /&gt;
==Modes==&lt;br /&gt;
VLVC will allow four kinds of videoconferencing modes, thus covering most of the users&#039; needs.&lt;br /&gt;
* Chatroom mode : All users can hear and see each others, everybody can speak freely.&lt;br /&gt;
* Conference mode : This mode has one single user, the server, who transmits his sound and video streams to all other users. In other words, he is the only one who can be heard and seen.&lt;br /&gt;
* Amphitheatre mode : This mode is still under development. It is an advanced version of the Conference mode that allows the administrator (the server) to grant and revoke the right of speech to one single user at a time.&lt;br /&gt;
* Meeting mode : This mode is under development too. It is similar to the Amphitheatre mode, but it can grant and revoke the rights of speech to multiple users at a time.&lt;br /&gt;
&lt;br /&gt;
==The team==&lt;br /&gt;
The project was created in 2003 by a group of students of Epitech, it was then taken over in 2005. Considering the good results of VLVC as a school project, new students have joined the team to take over the work.&lt;br /&gt;
&lt;br /&gt;
===Founders of the project===&lt;br /&gt;
* Arnaud Deredec : Former project leader&lt;br /&gt;
* Julien Arnaud : Former communication supervisor&lt;br /&gt;
* Julien Cupillard : Former development supervisor&lt;br /&gt;
* Florian Gustin : Former member in charge of external relationships&lt;br /&gt;
* Guillaume Martin : Former system administrator&lt;br /&gt;
* Floren Nguyen : Former technical developer&lt;br /&gt;
* Thomas Delon : Project leader&lt;br /&gt;
* Romain Lavocat : Communication supervisor&lt;br /&gt;
* William Lienard : Development supervisor&lt;br /&gt;
* Julien Passeri : Member in charge of external relationships&lt;br /&gt;
* Sylvestre Ho Tam Chay : Technical developer&lt;br /&gt;
* David Yu : Technical developer&lt;br /&gt;
* Mathavarajan Sugumaran : Technical developer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Current status of this project is unknown. There appears to be some code and documentation here [http://sourceforge.net/projects/vlvc/] [http://vlvc.svn.sourceforge.net/viewvc/vlvc/].  Last work apparently done in 2007.  Note that the downloadable stuff seems based on a more recent SVN version than their repository does?&lt;br /&gt;
&lt;br /&gt;
==See also ==&lt;br /&gt;
&lt;br /&gt;
* [[VideoLAN]]&lt;br /&gt;
* [[VLC media player]]&lt;br /&gt;
&lt;br /&gt;
In general, a single instance of VLC can &amp;quot;play&amp;quot; or &amp;quot;transcode&amp;quot; several streams at once, just not to the same window.&lt;br /&gt;
&lt;br /&gt;
[[VLM]] (a stream scheduler) within VLC, can help with that, as well as the telnet and web interfaces.&lt;br /&gt;
&lt;br /&gt;
More things that might help for playing multiple streams at once:&lt;br /&gt;
&lt;br /&gt;
[[Mosaic]]&lt;br /&gt;
&lt;br /&gt;
VLC can also &amp;quot;add&amp;quot; (combine) streams iff the encoding and bitrates of the two streams match, using &amp;quot;slave input&amp;quot; &lt;br /&gt;
You could theoretically use this to combine video with a separate audio file, etc.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17699</id>
		<title>XSPF</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17699"/>
		<updated>2010-11-19T12:33:34Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Unsafe operations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{website|XPSF|http://www.xspf.org/}}&lt;br /&gt;
&#039;&#039;&#039;XSPF&#039;&#039;&#039;, pronounced &amp;quot;spiff&amp;quot;, is a [[playlist]] in [[XML]] format, which is supported by [[Xiph]]. It is a free and open format so can be easily, freely used for sharing playlists.&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
A very simple document looks like this:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
  &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_1.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_2.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_3.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
  &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compatability ==&lt;br /&gt;
{{compat}}&lt;br /&gt;
&lt;br /&gt;
== VLC Extensions ==&lt;br /&gt;
XSPF supports extensions to allow applications to add special data. These extensions can appear in the following entries:&lt;br /&gt;
* playlist&lt;br /&gt;
* track&lt;br /&gt;
&lt;br /&gt;
The extension format is defined in the namespace &amp;lt;code&amp;gt;xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;lt;/code&amp;gt;:&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
   ...&lt;br /&gt;
  &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, extensions support the following elements:&lt;br /&gt;
* vlc:node&lt;br /&gt;
* vlc:item&lt;br /&gt;
* vlc:id&lt;br /&gt;
* vlc:option&lt;br /&gt;
&lt;br /&gt;
The extensions vlc:node and vlc:item are used to specify how to display the playlist tree, which is not supported by standard XSPF.&lt;br /&gt;
&lt;br /&gt;
=== vlc:node ===&lt;br /&gt;
This element will be displayed as a node in the playlist. It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). Only its name can be specified:&lt;br /&gt;
 &amp;lt;vlc:node title=&amp;quot;Node title&amp;quot;&amp;gt;&lt;br /&gt;
  [list of vlc:item or vlc:node]&lt;br /&gt;
 &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:item ===&lt;br /&gt;
This element represents a playlist item (not a node). It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). It contains only a track id (see below, vlc:id):&lt;br /&gt;
 &amp;lt;vlc:item tid=&amp;quot;42&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:id ===&lt;br /&gt;
This element specifies a track&#039;s id. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:id&amp;gt;42&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
The value of the id corresponds to the value of the attribute tid of vlc:item.&lt;br /&gt;
Note that each vlc:id has to be different, per entry, or it will not show them all.&lt;br /&gt;
&lt;br /&gt;
=== vlc:option ===&lt;br /&gt;
This element allows you to add options to the input item. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
Or, if the option has a value:&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name=option-value&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example of XSPF with VLC extensions ===&lt;br /&gt;
Let&#039;s summarize these as an example:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;Playlist&amp;lt;/title&amp;gt;&lt;br /&gt;
     &amp;lt;location&amp;gt;D:/media/example.xspf&amp;lt;/location&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 1&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;0&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
             &lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 2&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;1&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 3&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;2&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;!-- for playing a DVD, track 1, from seconds 42 to 45, with no audio, equivalent to vlc dvd://e:\@1 --start-time=42 --stop-time=45 --no-audio --my-option=100 --&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 4&amp;lt;/title&amp;gt;&lt;br /&gt;
             &amp;lt;location&amp;gt;dvd://e:\@1&amp;lt;/location&amp;gt;&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;3&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;my-option=100&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;start-time=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;stop-time=45&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;no-audio&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
     &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;vlc:node title=&amp;quot;Node 1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:node title=&amp;quot;Node 2&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
         &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
     &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This playlist example will be displayed as:&lt;br /&gt;
 Playlist&lt;br /&gt;
 `- Node 1&lt;br /&gt;
    |- Track 1&lt;br /&gt;
    |- Track 2&lt;br /&gt;
    `- Node 2&lt;br /&gt;
       |- Track 3&lt;br /&gt;
       `- Track 4&lt;br /&gt;
&lt;br /&gt;
The input for &#039;&#039;Track 4&#039;&#039; will be created with the option &#039;&#039;my-option&#039;&#039; set to 42.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Media Library]] a function built into VLC media player&lt;br /&gt;
There are many advantages to using XML as the format.&lt;br /&gt;
More information is available at&lt;br /&gt;
* [http://www.xiph.org/ Xiph.org]&lt;br /&gt;
* [http://www.xspf.org/quickstart/ XSPF project website].&lt;br /&gt;
&lt;br /&gt;
== Unsafe operations ==&lt;br /&gt;
Some operations, like setting volume, setting sout destination, etc. are deemed &amp;quot;unsafe&amp;quot; to be in the playlist, so you&#039;ll have to add those settings to the command line instead.&lt;br /&gt;
You&#039;ll get the error message: &lt;br /&gt;
&#039;&#039;&#039;unsafe option &amp;quot;sout-audio&amp;quot; has been ignored for security reasons)&#039;&#039;&#039; or the like.&lt;br /&gt;
&lt;br /&gt;
http://forum.videolan.org/viewtopic.php?f=14&amp;amp;t=78945&lt;br /&gt;
&lt;br /&gt;
[[Category:Playlist]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17698</id>
		<title>XSPF</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17698"/>
		<updated>2010-11-19T12:32:16Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{website|XPSF|http://www.xspf.org/}}&lt;br /&gt;
&#039;&#039;&#039;XSPF&#039;&#039;&#039;, pronounced &amp;quot;spiff&amp;quot;, is a [[playlist]] in [[XML]] format, which is supported by [[Xiph]]. It is a free and open format so can be easily, freely used for sharing playlists.&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
A very simple document looks like this:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
  &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_1.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_2.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_3.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
  &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compatability ==&lt;br /&gt;
{{compat}}&lt;br /&gt;
&lt;br /&gt;
== VLC Extensions ==&lt;br /&gt;
XSPF supports extensions to allow applications to add special data. These extensions can appear in the following entries:&lt;br /&gt;
* playlist&lt;br /&gt;
* track&lt;br /&gt;
&lt;br /&gt;
The extension format is defined in the namespace &amp;lt;code&amp;gt;xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;lt;/code&amp;gt;:&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
   ...&lt;br /&gt;
  &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, extensions support the following elements:&lt;br /&gt;
* vlc:node&lt;br /&gt;
* vlc:item&lt;br /&gt;
* vlc:id&lt;br /&gt;
* vlc:option&lt;br /&gt;
&lt;br /&gt;
The extensions vlc:node and vlc:item are used to specify how to display the playlist tree, which is not supported by standard XSPF.&lt;br /&gt;
&lt;br /&gt;
=== vlc:node ===&lt;br /&gt;
This element will be displayed as a node in the playlist. It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). Only its name can be specified:&lt;br /&gt;
 &amp;lt;vlc:node title=&amp;quot;Node title&amp;quot;&amp;gt;&lt;br /&gt;
  [list of vlc:item or vlc:node]&lt;br /&gt;
 &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:item ===&lt;br /&gt;
This element represents a playlist item (not a node). It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). It contains only a track id (see below, vlc:id):&lt;br /&gt;
 &amp;lt;vlc:item tid=&amp;quot;42&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:id ===&lt;br /&gt;
This element specifies a track&#039;s id. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:id&amp;gt;42&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
The value of the id corresponds to the value of the attribute tid of vlc:item.&lt;br /&gt;
Note that each vlc:id has to be different, per entry, or it will not show them all.&lt;br /&gt;
&lt;br /&gt;
=== vlc:option ===&lt;br /&gt;
This element allows you to add options to the input item. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
Or, if the option has a value:&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name=option-value&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example of XSPF with VLC extensions ===&lt;br /&gt;
Let&#039;s summarize these as an example:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;Playlist&amp;lt;/title&amp;gt;&lt;br /&gt;
     &amp;lt;location&amp;gt;D:/media/example.xspf&amp;lt;/location&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 1&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;0&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
             &lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 2&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;1&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 3&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;2&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;!-- for playing a DVD, track 1, from seconds 42 to 45, with no audio, equivalent to vlc dvd://e:\@1 --start-time=42 --stop-time=45 --no-audio --my-option=100 --&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 4&amp;lt;/title&amp;gt;&lt;br /&gt;
             &amp;lt;location&amp;gt;dvd://e:\@1&amp;lt;/location&amp;gt;&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;3&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;my-option=100&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;start-time=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;stop-time=45&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;no-audio&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
     &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;vlc:node title=&amp;quot;Node 1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:node title=&amp;quot;Node 2&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
         &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
     &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This playlist example will be displayed as:&lt;br /&gt;
 Playlist&lt;br /&gt;
 `- Node 1&lt;br /&gt;
    |- Track 1&lt;br /&gt;
    |- Track 2&lt;br /&gt;
    `- Node 2&lt;br /&gt;
       |- Track 3&lt;br /&gt;
       `- Track 4&lt;br /&gt;
&lt;br /&gt;
The input for &#039;&#039;Track 4&#039;&#039; will be created with the option &#039;&#039;my-option&#039;&#039; set to 42.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Media Library]] a function built into VLC media player&lt;br /&gt;
There are many advantages to using XML as the format.&lt;br /&gt;
More information is available at&lt;br /&gt;
* [http://www.xiph.org/ Xiph.org]&lt;br /&gt;
* [http://www.xspf.org/quickstart/ XSPF project website].&lt;br /&gt;
&lt;br /&gt;
== Unsafe operations ==&lt;br /&gt;
Some operations, like setting volume, setting sout destination, etc. are deemed &amp;quot;unsafe&amp;quot; to be in the playlist, so you&#039;ll have to add those settings to the command line instead.&lt;br /&gt;
&lt;br /&gt;
[[Category:Playlist]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17697</id>
		<title>XSPF</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17697"/>
		<updated>2010-11-19T12:28:44Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{website|XPSF|http://www.xspf.org/}}&lt;br /&gt;
&#039;&#039;&#039;XSPF&#039;&#039;&#039;, pronounced &amp;quot;spiff&amp;quot;, is a [[playlist]] in [[XML]] format, which is supported by [[Xiph]]. It is a free and open format so can be easily, freely used for sharing playlists.&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
A very simple document looks like this:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
  &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_1.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_2.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_3.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
  &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compatability ==&lt;br /&gt;
{{compat}}&lt;br /&gt;
&lt;br /&gt;
== VLC Extensions ==&lt;br /&gt;
XSPF supports extensions to allow applications to add special data. These extensions can appear in the following entries:&lt;br /&gt;
* playlist&lt;br /&gt;
* track&lt;br /&gt;
&lt;br /&gt;
The extension format is defined in the namespace &amp;lt;code&amp;gt;xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;lt;/code&amp;gt;:&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
   ...&lt;br /&gt;
  &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, extensions support the following elements:&lt;br /&gt;
* vlc:node&lt;br /&gt;
* vlc:item&lt;br /&gt;
* vlc:id&lt;br /&gt;
* vlc:option&lt;br /&gt;
&lt;br /&gt;
The extensions vlc:node and vlc:item are used to specify how to display the playlist tree, which is not supported by standard XSPF.&lt;br /&gt;
&lt;br /&gt;
=== vlc:node ===&lt;br /&gt;
This element will be displayed as a node in the playlist. It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). Only its name can be specified:&lt;br /&gt;
 &amp;lt;vlc:node title=&amp;quot;Node title&amp;quot;&amp;gt;&lt;br /&gt;
  [list of vlc:item or vlc:node]&lt;br /&gt;
 &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:item ===&lt;br /&gt;
This element represents a playlist item (not a node). It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). It contains only a track id (see below, vlc:id):&lt;br /&gt;
 &amp;lt;vlc:item tid=&amp;quot;42&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:id ===&lt;br /&gt;
This element specifies a track&#039;s id. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:id&amp;gt;42&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
The value of the id corresponds to the value of the attribute tid of vlc:item.&lt;br /&gt;
&lt;br /&gt;
=== vlc:option ===&lt;br /&gt;
This element allows you to add options to the input item. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
Or, if the option has a value:&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name=option-value&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example of XSPF with VLC extensions ===&lt;br /&gt;
Let&#039;s summarize these as an example:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;Playlist&amp;lt;/title&amp;gt;&lt;br /&gt;
     &amp;lt;location&amp;gt;D:/media/example.xspf&amp;lt;/location&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 1&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;0&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
             &lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 2&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;1&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 3&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;2&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 4&amp;lt;/title&amp;gt;&lt;br /&gt;
             &amp;lt;location&amp;gt;dvd://e:\@1&amp;lt;/location&amp;gt; &amp;lt;!-- for playing a DVD, track 1, for example --&amp;gt;&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;3&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;my-option=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;start-time=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;stop-time=45&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;no-audio&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
     &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;vlc:node title=&amp;quot;Node 1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:node title=&amp;quot;Node 2&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
         &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
     &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This playlist example will be displayed as:&lt;br /&gt;
 Playlist&lt;br /&gt;
 `- Node 1&lt;br /&gt;
    |- Track 1&lt;br /&gt;
    |- Track 2&lt;br /&gt;
    `- Node 2&lt;br /&gt;
       |- Track 3&lt;br /&gt;
       `- Track 4&lt;br /&gt;
&lt;br /&gt;
The input for &#039;&#039;Track 4&#039;&#039; will be created with the option &#039;&#039;my-option&#039;&#039; set to 42.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Media Library]] a function built into VLC media player&lt;br /&gt;
There are many advantages to using XML as the format.&lt;br /&gt;
More information is available at&lt;br /&gt;
* [http://www.xiph.org/ Xiph.org]&lt;br /&gt;
* [http://www.xspf.org/quickstart/ XSPF project website].&lt;br /&gt;
&lt;br /&gt;
== Unsafe operations ==&lt;br /&gt;
Some operations, like setting volume, setting sout destination, etc. are deemed &amp;quot;unsafe&amp;quot; to be in the playlist, so you&#039;ll have to add those settings to the command line instead.&lt;br /&gt;
&lt;br /&gt;
[[Category:Playlist]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17696</id>
		<title>XSPF</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17696"/>
		<updated>2010-11-19T12:27:44Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Example of XSPF with VLC extensions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{website|XPSF|http://www.xspf.org/}}&lt;br /&gt;
&#039;&#039;&#039;XSPF&#039;&#039;&#039;, pronounced &amp;quot;spiff&amp;quot;, is a [[playlist]] in [[XML]] format, which is supported by [[Xiph]]. It is a free and open format so can be easily, freely used for sharing playlists.&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
A very simple document looks like this:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
  &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_1.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_2.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_3.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
  &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compatability ==&lt;br /&gt;
{{compat}}&lt;br /&gt;
&lt;br /&gt;
== VLC Extensions ==&lt;br /&gt;
XSPF supports extensions to allow applications to add special data. These extensions can appear in the following entries:&lt;br /&gt;
* playlist&lt;br /&gt;
* track&lt;br /&gt;
&lt;br /&gt;
The extension format is defined in the namespace &amp;lt;code&amp;gt;xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;lt;/code&amp;gt;:&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
   ...&lt;br /&gt;
  &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, extensions support the following elements:&lt;br /&gt;
* vlc:node&lt;br /&gt;
* vlc:item&lt;br /&gt;
* vlc:id&lt;br /&gt;
* vlc:option&lt;br /&gt;
&lt;br /&gt;
The extensions vlc:node and vlc:item are used to specify how to display the playlist tree, which is not supported by standard XSPF.&lt;br /&gt;
&lt;br /&gt;
=== vlc:node ===&lt;br /&gt;
This element will be displayed as a node in the playlist. It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). Only its name can be specified:&lt;br /&gt;
 &amp;lt;vlc:node title=&amp;quot;Node title&amp;quot;&amp;gt;&lt;br /&gt;
  [list of vlc:item or vlc:node]&lt;br /&gt;
 &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:item ===&lt;br /&gt;
This element represents a playlist item (not a node). It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). It contains only a track id (see below, vlc:id):&lt;br /&gt;
 &amp;lt;vlc:item tid=&amp;quot;42&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:id ===&lt;br /&gt;
This element specifies a track&#039;s id. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:id&amp;gt;42&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
The value of the id corresponds to the value of the attribute tid of vlc:item.&lt;br /&gt;
&lt;br /&gt;
=== vlc:option ===&lt;br /&gt;
This element allows you to add options to the input item. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
Or, if the option has a value:&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name=option-value&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example of XSPF with VLC extensions ===&lt;br /&gt;
Let&#039;s summarize these as an example:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;Playlist&amp;lt;/title&amp;gt;&lt;br /&gt;
     &amp;lt;location&amp;gt;D:/media/example.xspf&amp;lt;/location&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 1&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;0&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
             &lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 2&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;1&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 3&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;2&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 4&amp;lt;/title&amp;gt;&lt;br /&gt;
             &amp;lt;location&amp;gt;dvd://e:\@1&amp;lt;/location&amp;gt; &amp;lt;!-- for playing a DVD, track 1, for example --&amp;gt;&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;3&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;my-option=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;start-time=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;stop-time=45&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;no-audio&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
     &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;vlc:node title=&amp;quot;Node 1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:node title=&amp;quot;Node 2&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
         &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
     &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This playlist example will be displayed as:&lt;br /&gt;
 Playlist&lt;br /&gt;
 `- Node 1&lt;br /&gt;
    |- Track 1&lt;br /&gt;
    |- Track 2&lt;br /&gt;
    `- Node 2&lt;br /&gt;
       |- Track 3&lt;br /&gt;
       `- Track 4&lt;br /&gt;
&lt;br /&gt;
The input for &#039;&#039;Track 4&#039;&#039; will be created with the option &#039;&#039;my-option&#039;&#039; set to 42.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Media Library]] a function built into VLC media player&lt;br /&gt;
There are many advantages to using XML as the format.&lt;br /&gt;
More information is available at&lt;br /&gt;
* [http://www.xiph.org/ Xiph.org]&lt;br /&gt;
* [http://www.xspf.org/quickstart/ XSPF project website].&lt;br /&gt;
&lt;br /&gt;
[[Category:Playlist]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17695</id>
		<title>XSPF</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=XSPF&amp;diff=17695"/>
		<updated>2010-11-19T12:18:36Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: more examples-y&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{website|XPSF|http://www.xspf.org/}}&lt;br /&gt;
&#039;&#039;&#039;XSPF&#039;&#039;&#039;, pronounced &amp;quot;spiff&amp;quot;, is a [[playlist]] in [[XML]] format, which is supported by [[Xiph]]. It is a free and open format so can be easily, freely used for sharing playlists.&lt;br /&gt;
&lt;br /&gt;
== Sample ==&lt;br /&gt;
A very simple document looks like this:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
  &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_1.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_2.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&amp;lt;location&amp;gt;file:///mp3s/song_3.mp3&amp;lt;/location&amp;gt;&amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
  &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compatability ==&lt;br /&gt;
{{compat}}&lt;br /&gt;
&lt;br /&gt;
== VLC Extensions ==&lt;br /&gt;
XSPF supports extensions to allow applications to add special data. These extensions can appear in the following entries:&lt;br /&gt;
* playlist&lt;br /&gt;
* track&lt;br /&gt;
&lt;br /&gt;
The extension format is defined in the namespace &amp;lt;code&amp;gt;xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;lt;/code&amp;gt;:&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
   ...&lt;br /&gt;
  &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, extensions support the following elements:&lt;br /&gt;
* vlc:node&lt;br /&gt;
* vlc:item&lt;br /&gt;
* vlc:id&lt;br /&gt;
* vlc:option&lt;br /&gt;
&lt;br /&gt;
The extensions vlc:node and vlc:item are used to specify how to display the playlist tree, which is not supported by standard XSPF.&lt;br /&gt;
&lt;br /&gt;
=== vlc:node ===&lt;br /&gt;
This element will be displayed as a node in the playlist. It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). Only its name can be specified:&lt;br /&gt;
 &amp;lt;vlc:node title=&amp;quot;Node title&amp;quot;&amp;gt;&lt;br /&gt;
  [list of vlc:item or vlc:node]&lt;br /&gt;
 &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:item ===&lt;br /&gt;
This element represents a playlist item (not a node). It appears as an extension of the &#039;&#039;&#039;playlist&#039;&#039;&#039; block (under playlist/extension). It contains only a track id (see below, vlc:id):&lt;br /&gt;
 &amp;lt;vlc:item tid=&amp;quot;42&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== vlc:id ===&lt;br /&gt;
This element specifies a track&#039;s id. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:id&amp;gt;42&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
The value of the id corresponds to the value of the attribute tid of vlc:item.&lt;br /&gt;
&lt;br /&gt;
=== vlc:option ===&lt;br /&gt;
This element allows you to add options to the input item. It appears as an extension of the &#039;&#039;&#039;track&#039;&#039;&#039; block (under playlist/trackList/track/extension).&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
Or, if the option has a value:&lt;br /&gt;
 &amp;lt;vlc:option&amp;gt;option-name=option-value&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example of XSPF with VLC extensions ===&lt;br /&gt;
Let&#039;s summarize these as an example:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;playlist version=&amp;quot;1&amp;quot; xmlns=&amp;quot;http://xspf.org/ns/0/&amp;quot; xmlns:vlc=&amp;quot;http://www.videolan.org/vlc/playlist/ns/0/&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;Playlist&amp;lt;/title&amp;gt;&lt;br /&gt;
     &amp;lt;location&amp;gt;D:/media/example.xspf&amp;lt;/location&amp;gt;&lt;br /&gt;
     &amp;lt;trackList&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 1&amp;lt;/title&amp;gt;&lt;br /&gt;
             &lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;0&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;start-time=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;stop-time=45&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
             &amp;lt;location&amp;gt;dvd://e:\@1&amp;lt;/location&amp;gt; &amp;lt;!-- for playing a DVD, track 1, for example --&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 2&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;1&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 3&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;2&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
         &amp;lt;track&amp;gt;&lt;br /&gt;
             &amp;lt;title&amp;gt;Track 4&amp;lt;/title&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
             &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:id&amp;gt;3&amp;lt;/vlc:id&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:option&amp;gt;my-option=42&amp;lt;/vlc:option&amp;gt;&lt;br /&gt;
             &amp;lt;/extension&amp;gt;&lt;br /&gt;
         &amp;lt;/track&amp;gt;&lt;br /&gt;
     &amp;lt;/trackList&amp;gt;&lt;br /&gt;
     &amp;lt;extension application=&amp;quot;http://www.videolan.org/vlc/playlist/0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;vlc:node title=&amp;quot;Node 1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:item tid=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;vlc:node title=&amp;quot;Node 2&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
                 &amp;lt;vlc:item tid=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
         &amp;lt;/vlc:node&amp;gt;&lt;br /&gt;
     &amp;lt;/extension&amp;gt;&lt;br /&gt;
 &amp;lt;/playlist&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This playlist example will be displayed as:&lt;br /&gt;
 Playlist&lt;br /&gt;
 `- Node 1&lt;br /&gt;
    |- Track 1&lt;br /&gt;
    |- Track 2&lt;br /&gt;
    `- Node 2&lt;br /&gt;
       |- Track 3&lt;br /&gt;
       `- Track 4&lt;br /&gt;
&lt;br /&gt;
The input for &#039;&#039;Track 4&#039;&#039; will be created with the option &#039;&#039;my-option&#039;&#039; set to 42.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Media Library]] a function built into VLC media player&lt;br /&gt;
There are many advantages to using XML as the format.&lt;br /&gt;
More information is available at&lt;br /&gt;
* [http://www.xiph.org/ Xiph.org]&lt;br /&gt;
* [http://www.xspf.org/quickstart/ XSPF project website].&lt;br /&gt;
&lt;br /&gt;
[[Category:Playlist]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17694</id>
		<title>VideoLan VideoConference</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17694"/>
		<updated>2010-11-19T12:12:21Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;VideoLan VideoConference&#039;&#039;&#039; (VLVC) is a plugin for the [[VLC media player]].It adds videoconferencing functions, it can connect from 2 to 10 people so that they can see and hear each others with the help of a computer and a webcam. This software is free and is supported on [[Windows]], [[Linux]] and [[Mac OS]]. It can be downloaded on the Internet and it aims to be used by private individuals and professionals as well.&lt;br /&gt;
&lt;br /&gt;
It received good reviews [http://forums.whirlpool.net.au/forum-replies-archive.cfm/1081016.html].&lt;br /&gt;
&lt;br /&gt;
==Modes==&lt;br /&gt;
VLVC will allow four kinds of videoconferencing modes, thus covering most of the users&#039; needs.&lt;br /&gt;
* Chatroom mode : All users can hear and see each others, everybody can speak freely.&lt;br /&gt;
* Conference mode : This mode has one single user, the server, who transmits his sound and video streams to all other users. In other words, he is the only one who can be heard and seen.&lt;br /&gt;
* Amphitheatre mode : This mode is still under development. It is an advanced version of the Conference mode that allows the administrator (the server) to grant and revoke the right of speech to one single user at a time.&lt;br /&gt;
* Meeting mode : This mode is under development too. It is similar to the Amphitheatre mode, but it can grant and revoke the rights of speech to multiple users at a time.&lt;br /&gt;
&lt;br /&gt;
==The team==&lt;br /&gt;
The project was created in 2003 by a group of students of Epitech, it was then taken over in 2005. Considering the good results of VLVC as a school project, new students have joined the team to take over the work.&lt;br /&gt;
&lt;br /&gt;
===Founders of the project===&lt;br /&gt;
* Arnaud Deredec : Former project leader&lt;br /&gt;
* Julien Arnaud : Former communication supervisor&lt;br /&gt;
* Julien Cupillard : Former development supervisor&lt;br /&gt;
* Florian Gustin : Former member in charge of external relationships&lt;br /&gt;
* Guillaume Martin : Former system administrator&lt;br /&gt;
* Floren Nguyen : Former technical developer&lt;br /&gt;
* Thomas Delon : Project leader&lt;br /&gt;
* Romain Lavocat : Communication supervisor&lt;br /&gt;
* William Lienard : Development supervisor&lt;br /&gt;
* Julien Passeri : Member in charge of external relationships&lt;br /&gt;
* Sylvestre Ho Tam Chay : Technical developer&lt;br /&gt;
* David Yu : Technical developer&lt;br /&gt;
* Mathavarajan Sugumaran : Technical developer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Current status of this project is unknown. There appears to be some code and documentation here [http://sourceforge.net/projects/vlvc/] [http://vlvc.svn.sourceforge.net/viewvc/vlvc/].  Last work apparently done in 2007.  Note that the downloadable stuff seems based on a more recent SVN version than their repository does?&lt;br /&gt;
&lt;br /&gt;
==See also ==&lt;br /&gt;
&lt;br /&gt;
* [[VideoLAN]]&lt;br /&gt;
* [[VLC media player]]&lt;br /&gt;
&lt;br /&gt;
More things that might help for playing multiple streams at once:&lt;br /&gt;
&lt;br /&gt;
[[Mosaic]]&lt;br /&gt;
[[VLM]] (a stream scheduler) within VLC.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17688</id>
		<title>Documentation:Streaming HowTo/Receive and Save a Stream</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17688"/>
		<updated>2010-11-18T23:27:03Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Save a stream with VLC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
===Receive an unicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Receive a multicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://@239.255.12.42&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;239.255.12.42&#039;&#039;&#039; is the multicast IP address you want to join.&lt;br /&gt;
&lt;br /&gt;
===Receive an HTTP/FTP/MMS stream===&lt;br /&gt;
&lt;br /&gt;
Use one of the following command lines:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;http://example/stream.xyz&#039;&#039;&#039; is the HTTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv ftp://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;ftp://example/stream.xyz&#039;&#039;&#039; is the FTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039; is the MMS address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a RTP stream available through RTSP===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039; is the address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a stream described by an SDP file===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://server.example.org/stream.sdp&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Save a stream with VLC ==&lt;br /&gt;
&lt;br /&gt;
VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC&amp;amp;nbsp;: you can do it via the graphical interface (Media [menu] -&amp;amp;gt; streaming) or use the [http://www.howtogeek.com/howto/2686/how-to-copy-a-dvd-with-vlc-1.0/ record button], or you can add to the command line the following argument: &lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;--sout file/muxer:stream.xyz&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where: &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;muxer&#039;&#039;&#039; is one of the formats supported by VLC&#039;s stream output, i.e.&amp;amp;nbsp;: &lt;br /&gt;
**&#039;&#039;&#039;ogg&#039;&#039;&#039; for OGG format, &lt;br /&gt;
**&#039;&#039;&#039;ps&#039;&#039;&#039; MPEG2-PS format, &lt;br /&gt;
**&#039;&#039;&#039;ts&#039;&#039;&#039; for MPEG2-TS format. &lt;br /&gt;
*and &#039;&#039;&#039;stream.xyz&#039;&#039;&#039; is the name of the file you want to save the stream to, with the right extension.&lt;br /&gt;
&lt;br /&gt;
For example: &lt;br /&gt;
 &#039;&#039;&#039;vlc your_input_file_or_stream_here --sout=file/ps:go.mpg &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This is short hand for the more verbose &lt;br /&gt;
 &#039;&#039;&#039;vlc your_input_file_or_stream_here --sout=&amp;quot;#std{access=file,mux=ps,dst=go.mpg}&amp;quot; &lt;br /&gt;
&lt;br /&gt;
NB that you must choose a muxer that supports your stream type. See [[Transcode#Compatibility_issues]] &lt;br /&gt;
&lt;br /&gt;
It can also be quite helpful to look at the settings VLC uses when it records using its record button. For example, in the logs you might see something like this: &lt;br /&gt;
&lt;br /&gt;
...: Using record output `std{access=file,mux=&#039;ps&#039;,dst=&#039;C:\vlc-record-2010__E-.mpg&#039;}&#039; &lt;br /&gt;
&lt;br /&gt;
Which gives you a hint/clue as to how to record your current stream. In this case this would translate into --sout &amp;quot;#std{access=file... on the command line.&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with a set-top-box==&lt;br /&gt;
&lt;br /&gt;
Some set-top-boxes with Ethernet cards can receive MPEG2-TS streams over UDP and support multicast.&lt;br /&gt;
&lt;br /&gt;
Set-top-boxes known to work with VLC are :&lt;br /&gt;
*[http://www.pace.co.uk Pace] set top boxes. (Pace Micro DSL 4000)&lt;br /&gt;
*[http://www.aminocom.com Aminocom] set top boxes. (all the models with mpeg2)&lt;br /&gt;
*tuxia / gct-allwell (mpeg4 and mpeg2) sigma designs8174 chipset&lt;br /&gt;
*i3micro mood200 (mpeg4 and mpeg2 in transport streams)&lt;br /&gt;
* ps3 media server streams using VLC (or mencoder) to the PS3&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Python_bindings&amp;diff=17687</id>
		<title>Python bindings</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Python_bindings&amp;diff=17687"/>
		<updated>2010-11-18T21:04:51Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* FAQ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Python bindings =&lt;br /&gt;
&lt;br /&gt;
You can find two versions of python bindings: an old one (see [[Old Python bindings]]), hand-written C-module, and a new one, which is ctypes-based and automatically generated.&lt;br /&gt;
The old version of the bindings is now deprecated and will be removed in some future version.&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
&lt;br /&gt;
The new module features :&lt;br /&gt;
* a complete cover of the libvlc API, since it is automatically generated from the include files.&lt;br /&gt;
* no compilation hassle: the generated module is pure python.&lt;br /&gt;
* no versioning hassle: the same module works with multiple VLC versions.&lt;br /&gt;
* a [http://www.advene.org/download/python-ctypes/doc/ complete documentation].&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
&lt;br /&gt;
You can download the [http://git.videolan.org/?p=vlc/bindings/python.git;a=tree;f=generated;b=HEAD vlc.py] module from the Git repository. It only depends on ctypes (standard module in python &amp;gt;= 2.5). Put the module in some place accessible by python (either next to your application, or in a directory from sys.path).&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can generate it by yourself using the generate.py program and accompanying files in the vlc source tree (see [http://git.videolan.org/?p=vlc/bindings/python.git;a=tree]).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
The vlc.py module also contains a runnable example player application (see code at the end of the module, starting from the line &amp;quot;if __name__ == &#039;__main__&#039;). &lt;br /&gt;
&lt;br /&gt;
A helper module [http://git.videolan.org/?p=vlc.git;a=blob;f=bindings/python-ctypes/vlcwidget.py;hb=HEAD vlcwidget.py] provides a pygtk VLCWidget() to ease integration.&lt;br /&gt;
&lt;br /&gt;
There is also a [http://git.videolan.org/?p=vlc/bindings/python.git;a=blob;f=README README]&lt;br /&gt;
&lt;br /&gt;
== Projects using this binding ==&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/movie-content-editor/&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
===  Win32 initialization === &lt;br /&gt;
&lt;br /&gt;
If the vlc modules are not installed in their standard location (e.g. c:\\Program Files\\Videolan on Windows, or /usr/lib/vlc on linux), the VLC module cannot find them.&lt;br /&gt;
&lt;br /&gt;
When instanciating vlc.Instance() with no parameter, it tries to guess the location of the modules. However, if you pass any argument to vlc.Instance(), you will need to supply the appropriate &amp;quot;--plugin-path=/path/to/the/modules&amp;quot; yourself.&lt;br /&gt;
&lt;br /&gt;
To run the file &amp;quot;vlc.py&amp;quot; from the command line, you&#039;ll need to pass it an argument, like &amp;quot;python vlc.py e:\&amp;quot; for it to play something.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Python_bindings&amp;diff=17686</id>
		<title>Python bindings</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Python_bindings&amp;diff=17686"/>
		<updated>2010-11-18T21:02:29Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Python bindings =&lt;br /&gt;
&lt;br /&gt;
You can find two versions of python bindings: an old one (see [[Old Python bindings]]), hand-written C-module, and a new one, which is ctypes-based and automatically generated.&lt;br /&gt;
The old version of the bindings is now deprecated and will be removed in some future version.&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
&lt;br /&gt;
The new module features :&lt;br /&gt;
* a complete cover of the libvlc API, since it is automatically generated from the include files.&lt;br /&gt;
* no compilation hassle: the generated module is pure python.&lt;br /&gt;
* no versioning hassle: the same module works with multiple VLC versions.&lt;br /&gt;
* a [http://www.advene.org/download/python-ctypes/doc/ complete documentation].&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
&lt;br /&gt;
You can download the [http://git.videolan.org/?p=vlc/bindings/python.git;a=tree;f=generated;b=HEAD vlc.py] module from the Git repository. It only depends on ctypes (standard module in python &amp;gt;= 2.5). Put the module in some place accessible by python (either next to your application, or in a directory from sys.path).&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can generate it by yourself using the generate.py program and accompanying files in the vlc source tree (see [http://git.videolan.org/?p=vlc/bindings/python.git;a=tree]).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
The vlc.py module also contains a runnable example player application (see code at the end of the module, starting from the line &amp;quot;if __name__ == &#039;__main__&#039;). &lt;br /&gt;
&lt;br /&gt;
A helper module [http://git.videolan.org/?p=vlc.git;a=blob;f=bindings/python-ctypes/vlcwidget.py;hb=HEAD vlcwidget.py] provides a pygtk VLCWidget() to ease integration.&lt;br /&gt;
&lt;br /&gt;
There is a [http://git.videolan.org/?p=vlc/bindings/python.git;a=blob;f=README README]&lt;br /&gt;
&lt;br /&gt;
== Projects using this binding ==&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/movie-content-editor/&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
===  Win32 initialization === &lt;br /&gt;
&lt;br /&gt;
If the vlc modules are not installed in their standard location (e.g. c:\\Program Files\\Videolan on Windows, or /usr/lib/vlc on linux), the VLC module cannot find them.&lt;br /&gt;
&lt;br /&gt;
When instanciating vlc.Instance() with no parameter, it tries to guess the location of the modules. However, if you pass any argument to vlc.Instance(), you will need to supply the appropriate &amp;quot;--plugin-path=/path/to/the/modules&amp;quot; yourself.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17685</id>
		<title>OldFAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17685"/>
		<updated>2010-11-18T20:31:28Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: remove what I think was an ancient bug...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
Answers to some common problems people encounter with VLC. More help is available in the&lt;br /&gt;
* [http://www.videolan.org/doc/ Documentation]&lt;br /&gt;
* [http://www.videolan.org/doc/faq/en/videolan-faq-en.html FAQ]&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing VLC ==&lt;br /&gt;
&lt;br /&gt;
=== On Mac OS 9 ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* Sorry, VLC will not work on OS 9, and probably never will. However, Mac OS X is supported - [[Unsupported|Find out Why]]&lt;br /&gt;
&lt;br /&gt;
=== Compiling VLC ===&lt;br /&gt;
&lt;br /&gt;
==== How do I compile VLC? ====&lt;br /&gt;
&lt;br /&gt;
* Look at [http://developers.videolan.org/vlc/ how to compile VLC]. There are pre-compiled (binary / executable) versions [http://www.videolan.org/vlc/ here].&lt;br /&gt;
&lt;br /&gt;
==== Mozilla Firefox Plugin ====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Debian:&#039;&#039; All you need is to download the vlc plugin package - mozilla-plugin-vlc ([http://packages.debian.org/stable/graphics/mozilla-plugin-vlc stable release])&lt;br /&gt;
* &#039;&#039;All Linux:&#039;&#039; To make the firefox plugin with the vlc player, you will first need the Firefox Development package (from: [http://packages.ubuntu.com/breezy/devel/firefox-dev ubuntu] ...). Then, when you compile, run ./configure with --enable-mozilla, and if needed with --with-mozilla-sdk-path=&#039;&#039;/path_to_firefox_sdk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Missing header file ffmpeg/avcodec.h&amp;quot; and &amp;quot;Missing header file postproc/postprocess.h&amp;quot; Errors ====&lt;br /&gt;
&lt;br /&gt;
* Make sure that you have all the libraries you need.&lt;br /&gt;
** &#039;&#039;&#039;on ubuntu&#039;&#039;&#039;: &amp;quot;apt-get install libavcodec-dev libpostproc-dev&amp;quot; will install the needed files (worked on edgy).&lt;br /&gt;
* When you run ./configure for [[ffmpeg]], make sure that at least the following flags are set (descriptions of these avaliable from ./configure --help )&lt;br /&gt;
 ./configure --enable-shared --enable-shared-pp --enable-pp --enable-gpl&lt;br /&gt;
* The path of ffmpeg is not set. Check if you can locate the file &#039;&#039;&#039;libavcodec.pc&#039;&#039;&#039; on your computer, and export PKG_CONFIG_PATH to where you found it before running ./configure. For example&lt;br /&gt;
 export PKG_CONFIG_PATH=/home/you/ffmpeg/&lt;br /&gt;
&lt;br /&gt;
With vlc-086f, FFmpeg SVN-r13060, on Slamd64 12.0.0, some other changes must be made.  These are most likely due to changes in libpostproc.&lt;br /&gt;
&lt;br /&gt;
The ./configure flags for ffmpeg become&lt;br /&gt;
  ./configure --enable-postproc --enable-shared --enable-gpl&lt;br /&gt;
&lt;br /&gt;
Then you must set a symbolic link for postproc.  This took me a long time to spot.&lt;br /&gt;
&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)locate postprocess.h&lt;br /&gt;
 /usr/local/include/libpostproc/postprocess.h&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)cd /usr/local/include/&lt;br /&gt;
 root @ svr (/usr/local/include)ln -s libpostproc postproc&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;cc1: error: invalid option `tune=opteron&#039;&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* One user writes: &amp;quot;From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don&#039;t know if this is the correct way to proceed but was the only way for me to get results fast.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* This is not true on all versions of gcc.  Try to compile on your platform before making the above changes.&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)gcc --version&lt;br /&gt;
 gcc (GCC) 4.1.2&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)uname -a&lt;br /&gt;
 Linux p01 2.6.24.3 #2 SMP Tue Apr 8 12:01:03 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep tune= config.log&lt;br /&gt;
 configure:37114: checking whether gcc accepts -mtune=athlon64&lt;br /&gt;
 configure:37125: gcc -c -Wsign-compare -Wall  -pipe -mtune=athlon64  -DSYS_LINUX conftest.c &amp;gt;&amp;amp;5&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep cpu= config.log&lt;br /&gt;
 build_cpu=&#039;x86_64&#039;&lt;br /&gt;
 host_cpu=&#039;x86_64&#039;&lt;br /&gt;
 target_cpu=&#039;x86_64&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;/usr/bin/ld: cannot find -lX11&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* In configure, there is an x_libraries variable there that is set to &amp;quot;/usr/X11R6/lib&amp;quot; (around line 16371). Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;syntax error before &amp;quot;pthread_spinlock_t&amp;quot;&amp;quot; on debian-Etch or CentOS ====&lt;br /&gt;
&lt;br /&gt;
* If you have errors about &#039;&#039;pthread_spin*&#039;&#039; in the file &#039;&#039;vlc_threads_funcs.h&#039;&#039;, try this fix :&lt;br /&gt;
 su&lt;br /&gt;
 sed -e &#039;s/define\s*_POSIX_SPIN_LOCKS\s*/define _POSIX_SPIN_LOCKS -1 \/\/ wrong: /g&#039; -i /usr/include/bits/posix_opt.h&lt;br /&gt;
 exit&lt;br /&gt;
source : [http://forum.videolan.org/viewtopic.php?f=13&amp;amp;t=43930#p139570 this post] from Rémi Denis-Courmont.&lt;br /&gt;
&lt;br /&gt;
=== Installing Skins ===&lt;br /&gt;
&lt;br /&gt;
* Although all information is given on the [http://www.videolan.org/vlc/skins.php VLC Download skin site], you may miss the note to change preferences to &#039;&#039;skinnable interface&#039;&#039;. There is an [http://forum.videolan.org/viewtopic.php?p=85603#p85603 article on the forum] which describes the how-to. In short: there is a drop-down option (interface module) in the settings dialog (Interface &amp;amp;rarr; General) which defaults to &#039;&#039;Standard&#039;&#039;. Change this and restart.&lt;br /&gt;
&lt;br /&gt;
== Problems Starting VLC ==&lt;br /&gt;
&lt;br /&gt;
=== VLC does not launch on my Mac anymore. What to do? ===&lt;br /&gt;
&lt;br /&gt;
* Please have a look at the [[FAQ_on_MacOSX_only_issues|specific FAQ]], which covers multiple solutions to this issue.&lt;br /&gt;
&lt;br /&gt;
== Error Messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages can be viewed by selecting Messages from the Tools menu.&lt;br /&gt;
&lt;br /&gt;
=== main private error: no sout mux module matched &amp;quot;ts&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* This can be an error if &#039;&#039;&#039;libdvbpsi&#039;&#039;&#039; was not installed when vlc was compiled. To fix this error, install libdvbpsi; then re-compile vlc. [http://developers.videolan.org/libdvbpsi/ libdvbpsi]&lt;br /&gt;
&lt;br /&gt;
=== main dialogs provider error: no dialogs provider module matched &amp;quot;any&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* The solution is found in [http://forum.videolan.org/viewtopic.php?t=14733 the forum]&lt;br /&gt;
&lt;br /&gt;
== Problems playing types of files ==&lt;br /&gt;
&lt;br /&gt;
=== WMV files ===&lt;br /&gt;
&lt;br /&gt;
* Starting with VLC media player 0.8.6, the playback of WMV3-encoded videos is available on all platforms. Please note, that encrypted / DRM-protected video-clips still cannot be played. That is due to the nature of DRM and is not about to change, so please do not ask.&lt;br /&gt;
&lt;br /&gt;
=== Real Media files ===&lt;br /&gt;
&lt;br /&gt;
* Realmedia files (.rm, .rpm, etc) are proprietary (ie, copyrighted) file formats, created by RealNetworks. Because of this, VLC can&#039;t support them at present.&lt;br /&gt;
&lt;br /&gt;
=== QuickTime Files (.mov) ===&lt;br /&gt;
&lt;br /&gt;
* Mov file doesn&#039;t play, but plays ok in QuickTime&lt;br /&gt;
** open the url in QuickTime player&lt;br /&gt;
** let it decide which datarate is best for your connection&lt;br /&gt;
** let it play for a few seconds, then pause it&lt;br /&gt;
** open the stream info, copy the url&lt;br /&gt;
** open &amp;amp; save that one in VLC&lt;br /&gt;
&lt;br /&gt;
=== Flash Video Files (.flv) ===&lt;br /&gt;
&lt;br /&gt;
* Flash Video support has recently been added (provided through ffmpeg) - to view .flv files you will need version 0.8.4a. Download and install the latest version [http://www.videolan.org/vlc/ here].&lt;br /&gt;
* VLC still has problems with a few .flv files. If you have problems playing a file in VLC you might be able to change it to an avi using [[ffmpeg]]. See [[Fixing .flv to .avi with Ffmpeg]].&lt;br /&gt;
* VLC 0.8.6 provided enhanced Flash Video support on all platforms, so it is probably worth to update if you experience problems with prior releases.&lt;br /&gt;
&lt;br /&gt;
=== Other Files ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238663}}&lt;br /&gt;
* Make sure that VLC supports that file - look at the [http://www.videolan.org/vlc/features.html list of supposted formats]&lt;br /&gt;
&lt;br /&gt;
* Make sure that the file isn&#039;t corrupted&lt;br /&gt;
&lt;br /&gt;
== VLC and Other Programs ==&lt;br /&gt;
&lt;br /&gt;
=== AMR ===&lt;br /&gt;
&lt;br /&gt;
* To use [http://en.wikipedia.org/wiki/Adaptive_Multi-Rate AMR], you&#039;ll need to compile vlc and ffmpeg with amr support yourself. This is because the amr license is not compatible with the vlc license.&lt;br /&gt;
&lt;br /&gt;
=== ratDVD ===&lt;br /&gt;
&lt;br /&gt;
* VLC does not support [http://en.wikipedia.org/wiki/RatDVD ratDVD] and is not going to be, both for political and technical reasons.&lt;br /&gt;
&lt;br /&gt;
== Problems Playing DVDs ==&lt;br /&gt;
&lt;br /&gt;
===Unable to play any DVDs===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; To play DVDs with VLC in linux, you need to install the libdvdcss package&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure you have access rigths to your DVD player. In linux, you can use chmod to edit access rights to your DVD block device:&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; chmod 666 /dev/dvd&lt;br /&gt;
** The videolan FAQ seems to suggest you need write access to this device - is this true? If you know, please edit this entry.&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure VLC knows where your DVD drive is located (/dev/dvd usually).  Go to Settings | Preferences | Input/Codecs | General and under &amp;quot;Default devices&amp;quot; make sure your dvd drive path is entered in the &amp;quot;Default DVD&amp;quot; box.  When you go to open a DVD, you should see something like &amp;quot;dvd:///dev/dvd&amp;quot; as the [[media resource locator]] in the &amp;quot;Open:&amp;quot; box near the top of the Open dialog.&lt;br /&gt;
&lt;br /&gt;
=== Playing DVDs from other Region Codes ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239426}}&lt;br /&gt;
* The ability to play DVDs from all regions depends mostly on your DVD drive, and testing it is usually the quickest way to find out if your DVD drive can do it. Most newer DVD drives are RPC2 drives, which don&#039;t allow raw access to the drive untill the drive firmware has done a regioncheck. VLC uses libdvdcss and it needs raw access to the DVD drive to crack the encryption key. So with these drives it is impossible to circumvent the region protection. (This goes for all software. You will need to flash your drives firmware, but sometimes there is no alternate firmware available for your drive). On other RPC2 drives that DO allow raw access, it might take VLC a long time to crack the key. So just pop the disc in your drive and try it out, while you get a coffee. RPC1 drives should &#039;always&#039; work regardless of the regioncode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Poor Quality Video and Audio ==&lt;br /&gt;
&lt;br /&gt;
=== The video runs but the picture is distorted ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238431}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; There is probably a problem with the output layer. There are several ways of troubleshooting it.&lt;br /&gt;
** First, try with another output plugin, for instance:&lt;br /&gt;
**: % vlc -V sdl&lt;br /&gt;
**: % vlc -V x11&lt;br /&gt;
** Second, change your screen depth and/or definition. It quite often helps.&lt;br /&gt;
** Lastly, if running Unix, have a look at your XFree86 video driver. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Windows:&#039;&#039; See [[WindowsFAQ-1.1.x#Why_does_VLC_only_give_black.2C_white_or_garbled_.28or_other_visual_erros.29_video_output.3F]]&lt;br /&gt;
&lt;br /&gt;
=== Video is choppy ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238474}}&lt;br /&gt;
* Your system may be too slow to decode all pictures. Sometimes, your CPU (computer) really isn&#039;t fast enough, but often the situation can be improved by changing your system configuration to be a bit kinder to VLC.&lt;br /&gt;
** Quit other programs running in the background&lt;br /&gt;
** Turn on DMA on your DVD device:&lt;br /&gt;
*** &#039;&#039;Linux:&#039;&#039;&lt;br /&gt;
***: &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; hdparm -d1 /dev/dvd&lt;br /&gt;
*** &#039;&#039;Windows:&#039;&#039; go to the System section of the control panel, and go to the Hardware manager (it is sometimes in a separate tab, and sometimes, you have to go to the Advanced tab. Then, right-click on your DVD player, and check the DMA checkbox. &lt;br /&gt;
** Upgrade to the latest driver for your video board.&lt;br /&gt;
** &#039;&#039;Linux:&#039;&#039; you can additionally upgrade your drivers to the latest XFree86 version. If supported, check that the xvideo plug-in is effectively used with:&lt;br /&gt;
**: % vlc -vvvv&lt;br /&gt;
&lt;br /&gt;
=== Audio and video are out of sync ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238571}}&lt;br /&gt;
* If you are [[transcoding]] a file, use the [[audio-sync]] option.&lt;br /&gt;
* You can manually set the audio offset while playing (so you can put the audio back in sync). The default keys to increase/decrease the offset are Ctrl+K and Ctrl+L in Windows, and f and g in Mac.&lt;br /&gt;
* &#039;&#039;Linux/Unix:&#039;&#039; Try using another audio output plugin and, under Unix, kill esd or artsd if they are running. If the problem is due to the input file, have a look at the &amp;quot;Audio desynchronization compensation&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
=== Audio is choppy ===&lt;br /&gt;
&lt;br /&gt;
* Reboot? http://ubuntuforums.org/showthread.php?t=1288433&lt;br /&gt;
* Try a different codec if transcoding to ogg&lt;br /&gt;
&lt;br /&gt;
== Problems with Streaming ==&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;main input error: no suitable access module for `rtsp://...&#039;&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
vlc needs livemedia from &#039;&#039;&#039;live555.com&#039;&#039;&#039; to read rtsp stream this way. &lt;br /&gt;
&lt;br /&gt;
You can check you have it by :&lt;br /&gt;
&lt;br /&gt;
   vlc -l | grep live&lt;br /&gt;
&lt;br /&gt;
It should read&lt;br /&gt;
&lt;br /&gt;
  livedotcom            live.com (RTSP/RTP/SDP) demuxer&lt;br /&gt;
  livedotcom            RTSP/RTP access and demux&lt;br /&gt;
&lt;br /&gt;
If not, you have to install &#039;&#039;&#039;livemedia&#039;&#039;&#039; and point your compilation to this lib directory :&lt;br /&gt;
&lt;br /&gt;
   ./configure &#039;&#039;&#039;--enable-livedotcom --with-livedotcom-tree=/usr/local/lib/live/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Streaming playlist continuously between files (sout-keep not working)===&lt;br /&gt;
&lt;br /&gt;
add the gather module to the sout chain, for example&lt;br /&gt;
    vlc *mpeg --sout-keep --sout &#039;#gather:transcode{plapla}:rtp{plapla}&#039;&lt;br /&gt;
&lt;br /&gt;
===Streaming 1 playlist item continuously and change input without stream break===&lt;br /&gt;
&lt;br /&gt;
you can use this kind of a vlm.conf file with the --sout-keep option&lt;br /&gt;
  new output1 broadcast enabled loop&lt;br /&gt;
  setup output1 input &amp;quot;inputfile1.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;inputfile2.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;/path/to/inputfile3.mpeg&amp;quot;&lt;br /&gt;
  setup output1 option sout-keep&lt;br /&gt;
  setup output1 option input-repeat=-1&lt;br /&gt;
  setup output1 output #gather:transcode{etc...}:std{plapla}&lt;br /&gt;
 &lt;br /&gt;
  control output1 play 2&lt;br /&gt;
&lt;br /&gt;
you then chan telnet into vlm and just command&lt;br /&gt;
  control output1 play &amp;lt;playlistnumber&amp;gt;&lt;br /&gt;
to change the streamed input.&lt;br /&gt;
&lt;br /&gt;
===Streaming to Windows Media Player===&lt;br /&gt;
&lt;br /&gt;
See [[Windows Media Player]] for details.&lt;br /&gt;
&lt;br /&gt;
== Problems converting between file formats (transcoding) ==&lt;br /&gt;
&lt;br /&gt;
=== Missing Audio and/or Video ===&lt;br /&gt;
&lt;br /&gt;
* Certain containers (aka muxers) can only hold certain types of video and audio - look at [[Transcode#Compatibility_issues]].&lt;br /&gt;
&lt;br /&gt;
== Streaming/Transcoding Wizard ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Transcode / Save to file ===&lt;br /&gt;
&lt;br /&gt;
== VLC Crashes ==&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238592}}&lt;br /&gt;
* If VLC crashes, the following steps will help determine the cause.&lt;br /&gt;
** Increase the verbosity level (either in the preferences or with a -vvvv command line option) and look at the debug messages (in the terminal or in the Messages window).&lt;br /&gt;
* If you are convinced that it is a bug in VLC, have a look at the [http://www.videolan.org/support/bug-reporting.html bug reporting page].&lt;br /&gt;
&lt;br /&gt;
=== When using DirectShow (eg Webcam) ===&lt;br /&gt;
&lt;br /&gt;
{{forum|12394}}&lt;br /&gt;
* There was a bug a while back when you tried to stream using a directshow/webcam it would reboot the computer. The fix was to specify the resolution on the command line or in the &amp;quot;Advanced&amp;quot; section when opening the directshow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Problems ==&lt;br /&gt;
&lt;br /&gt;
=== I only want one VLC player! ===&lt;br /&gt;
&lt;br /&gt;
* To use the same VLC player for all the media files, go to Settings, Preferences, Advanced. The following options should give behavior similar to WMP: minimize # of threads, allow only one running instance, VLC is started from file association, allow only &amp;quot;on&amp;quot; running instance when started from file (typo in v0.8.5).&lt;br /&gt;
&lt;br /&gt;
=== Licensing, legal issues and logo use ===&lt;br /&gt;
&lt;br /&gt;
* Information on this is avaliable on the main videolan website, [http://videolan.org videolan.org]. Also read the [http://www.videolan.org/doc/faq/en/index.html#id238663 Legal concerns] section of the [http://www.videolan.org/doc/faq/en/index.html FAQ].&lt;br /&gt;
* This is a wiki site: it is editable by all, so it is best to check to official website.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Strange Behaviour ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238992}}&lt;br /&gt;
* The first thing to do is to reset the VLC preferences in the preferences dialog of the application and restart VLC. If VLC doesn&#039;t even start anymore, delete VLC&#039;s configuration file ([[#Configuration File|where is it?]]). Then restart VLC. If it does not get any better, read the rest of this page or FAQ page, or ask for help at the [[forum]].&lt;br /&gt;
&lt;br /&gt;
=== Subtitles Problem ===&lt;br /&gt;
&lt;br /&gt;
* In the File | Open File dialog, select &amp;quot;Use a subtitles file&amp;quot;, and enter both the video&#039;s filename and the video&#039;s subtitle filename.&lt;br /&gt;
* If you are having displaying the subtitles, the problem might be an encoding problem. Choose the right encoding for your language and it should fix your problem. You&#039;ll find the ISOs here: [http://alis.isoc.org/codage/iso8859/jeuxiso.en.htm]. Once you find a text encoding method that works well for you enter it in Preferences, Input / Codecs, Other codecs, Subtitles then press Save and restart VLC. Uncheck the &amp;quot;Formatted Subtitles&amp;quot; may help if the subtitles only display as little squares. If you have a specialized language like Hebrew, Arabic, Chinese or Japanese changing the font to a Unicode font will be helpful. For Polish subtitles choose CP 1250 ISO code.&lt;br /&gt;
&lt;br /&gt;
=== VLC hangs when opening Matroska (mkv) files ===&lt;br /&gt;
&lt;br /&gt;
* This might occur when using VLC to view an mkv file in a directory that has a large number of mkv files. (eg. in an Azureus download directory)&lt;br /&gt;
VLC will attempt to preload all the mkv files in the directory and will hang, especially if some mkv files are not fully downloaded yet (thus seem to be broken).&lt;br /&gt;
* The solution is to set the mkv option: --mkv-preload-local-dir to false&lt;br /&gt;
Preferences -&amp;gt; Input / Codecs -&amp;gt; Demuxers -&amp;gt; Matroska -&amp;gt; Preload Directory (uncheck the checkbox)&lt;br /&gt;
(See also http://wiki.videolan.org/Matroska)&lt;br /&gt;
&lt;br /&gt;
=== Coarse volume control ===&lt;br /&gt;
&lt;br /&gt;
Volume control, specially with Hotkeys, is too coarse.&lt;br /&gt;
*To have a finer volume control, try the following option on the command line:&lt;br /&gt;
 &amp;lt;code&amp;gt;--volume-step=1&amp;lt;/code&amp;gt;&lt;br /&gt;
:See also [[VLC command-line help]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17684</id>
		<title>OldFAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17684"/>
		<updated>2010-11-18T20:23:37Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Problems converting between file formats (transcoding) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
Answers to some common problems people encounter with VLC. More help is available in the&lt;br /&gt;
* [http://www.videolan.org/doc/ Documentation]&lt;br /&gt;
* [http://www.videolan.org/doc/faq/en/videolan-faq-en.html FAQ]&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing VLC ==&lt;br /&gt;
&lt;br /&gt;
=== On Mac OS 9 ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* Sorry, VLC will not work on OS 9, and probably never will. However, Mac OS X is supported - [[Unsupported|Find out Why]]&lt;br /&gt;
&lt;br /&gt;
=== Compiling VLC ===&lt;br /&gt;
&lt;br /&gt;
==== How do I compile VLC? ====&lt;br /&gt;
&lt;br /&gt;
* Look at [http://developers.videolan.org/vlc/ how to compile VLC]. There are pre-compiled (binary / executable) versions [http://www.videolan.org/vlc/ here].&lt;br /&gt;
&lt;br /&gt;
==== Mozilla Firefox Plugin ====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Debian:&#039;&#039; All you need is to download the vlc plugin package - mozilla-plugin-vlc ([http://packages.debian.org/stable/graphics/mozilla-plugin-vlc stable release])&lt;br /&gt;
* &#039;&#039;All Linux:&#039;&#039; To make the firefox plugin with the vlc player, you will first need the Firefox Development package (from: [http://packages.ubuntu.com/breezy/devel/firefox-dev ubuntu] ...). Then, when you compile, run ./configure with --enable-mozilla, and if needed with --with-mozilla-sdk-path=&#039;&#039;/path_to_firefox_sdk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Missing header file ffmpeg/avcodec.h&amp;quot; and &amp;quot;Missing header file postproc/postprocess.h&amp;quot; Errors ====&lt;br /&gt;
&lt;br /&gt;
* Make sure that you have all the libraries you need.&lt;br /&gt;
** &#039;&#039;&#039;on ubuntu&#039;&#039;&#039;: &amp;quot;apt-get install libavcodec-dev libpostproc-dev&amp;quot; will install the needed files (worked on edgy).&lt;br /&gt;
* When you run ./configure for [[ffmpeg]], make sure that at least the following flags are set (descriptions of these avaliable from ./configure --help )&lt;br /&gt;
 ./configure --enable-shared --enable-shared-pp --enable-pp --enable-gpl&lt;br /&gt;
* The path of ffmpeg is not set. Check if you can locate the file &#039;&#039;&#039;libavcodec.pc&#039;&#039;&#039; on your computer, and export PKG_CONFIG_PATH to where you found it before running ./configure. For example&lt;br /&gt;
 export PKG_CONFIG_PATH=/home/you/ffmpeg/&lt;br /&gt;
&lt;br /&gt;
With vlc-086f, FFmpeg SVN-r13060, on Slamd64 12.0.0, some other changes must be made.  These are most likely due to changes in libpostproc.&lt;br /&gt;
&lt;br /&gt;
The ./configure flags for ffmpeg become&lt;br /&gt;
  ./configure --enable-postproc --enable-shared --enable-gpl&lt;br /&gt;
&lt;br /&gt;
Then you must set a symbolic link for postproc.  This took me a long time to spot.&lt;br /&gt;
&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)locate postprocess.h&lt;br /&gt;
 /usr/local/include/libpostproc/postprocess.h&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)cd /usr/local/include/&lt;br /&gt;
 root @ svr (/usr/local/include)ln -s libpostproc postproc&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;cc1: error: invalid option `tune=opteron&#039;&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* One user writes: &amp;quot;From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don&#039;t know if this is the correct way to proceed but was the only way for me to get results fast.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* This is not true on all versions of gcc.  Try to compile on your platform before making the above changes.&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)gcc --version&lt;br /&gt;
 gcc (GCC) 4.1.2&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)uname -a&lt;br /&gt;
 Linux p01 2.6.24.3 #2 SMP Tue Apr 8 12:01:03 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep tune= config.log&lt;br /&gt;
 configure:37114: checking whether gcc accepts -mtune=athlon64&lt;br /&gt;
 configure:37125: gcc -c -Wsign-compare -Wall  -pipe -mtune=athlon64  -DSYS_LINUX conftest.c &amp;gt;&amp;amp;5&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep cpu= config.log&lt;br /&gt;
 build_cpu=&#039;x86_64&#039;&lt;br /&gt;
 host_cpu=&#039;x86_64&#039;&lt;br /&gt;
 target_cpu=&#039;x86_64&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;/usr/bin/ld: cannot find -lX11&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* In configure, there is an x_libraries variable there that is set to &amp;quot;/usr/X11R6/lib&amp;quot; (around line 16371). Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;syntax error before &amp;quot;pthread_spinlock_t&amp;quot;&amp;quot; on debian-Etch or CentOS ====&lt;br /&gt;
&lt;br /&gt;
* If you have errors about &#039;&#039;pthread_spin*&#039;&#039; in the file &#039;&#039;vlc_threads_funcs.h&#039;&#039;, try this fix :&lt;br /&gt;
 su&lt;br /&gt;
 sed -e &#039;s/define\s*_POSIX_SPIN_LOCKS\s*/define _POSIX_SPIN_LOCKS -1 \/\/ wrong: /g&#039; -i /usr/include/bits/posix_opt.h&lt;br /&gt;
 exit&lt;br /&gt;
source : [http://forum.videolan.org/viewtopic.php?f=13&amp;amp;t=43930#p139570 this post] from Rémi Denis-Courmont.&lt;br /&gt;
&lt;br /&gt;
=== Installing Skins ===&lt;br /&gt;
&lt;br /&gt;
* Although all information is given on the [http://www.videolan.org/vlc/skins.php VLC Download skin site], you may miss the note to change preferences to &#039;&#039;skinnable interface&#039;&#039;. There is an [http://forum.videolan.org/viewtopic.php?p=85603#p85603 article on the forum] which describes the how-to. In short: there is a drop-down option (interface module) in the settings dialog (Interface &amp;amp;rarr; General) which defaults to &#039;&#039;Standard&#039;&#039;. Change this and restart.&lt;br /&gt;
&lt;br /&gt;
== Problems Starting VLC ==&lt;br /&gt;
&lt;br /&gt;
=== VLC does not launch on my Mac anymore. What to do? ===&lt;br /&gt;
&lt;br /&gt;
* Please have a look at the [[FAQ_on_MacOSX_only_issues|specific FAQ]], which covers multiple solutions to this issue.&lt;br /&gt;
&lt;br /&gt;
== Error Messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages can be viewed by selecting Messages from the Tools menu.&lt;br /&gt;
&lt;br /&gt;
=== main private error: no sout mux module matched &amp;quot;ts&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* This can be an error if &#039;&#039;&#039;libdvbpsi&#039;&#039;&#039; was not installed when vlc was compiled. To fix this error, install libdvbpsi; then re-compile vlc. [http://developers.videolan.org/libdvbpsi/ libdvbpsi]&lt;br /&gt;
&lt;br /&gt;
=== main dialogs provider error: no dialogs provider module matched &amp;quot;any&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* The solution is found in [http://forum.videolan.org/viewtopic.php?t=14733 the forum]&lt;br /&gt;
&lt;br /&gt;
== Problems playing types of files ==&lt;br /&gt;
&lt;br /&gt;
=== WMV files ===&lt;br /&gt;
&lt;br /&gt;
* Starting with VLC media player 0.8.6, the playback of WMV3-encoded videos is available on all platforms. Please note, that encrypted / DRM-protected video-clips still cannot be played. That is due to the nature of DRM and is not about to change, so please do not ask.&lt;br /&gt;
&lt;br /&gt;
=== Real Media files ===&lt;br /&gt;
&lt;br /&gt;
* Realmedia files (.rm, .rpm, etc) are proprietary (ie, copyrighted) file formats, created by RealNetworks. Because of this, VLC can&#039;t support them at present.&lt;br /&gt;
&lt;br /&gt;
=== QuickTime Files (.mov) ===&lt;br /&gt;
&lt;br /&gt;
* Mov file doesn&#039;t play, but plays ok in QuickTime&lt;br /&gt;
** open the url in QuickTime player&lt;br /&gt;
** let it decide which datarate is best for your connection&lt;br /&gt;
** let it play for a few seconds, then pause it&lt;br /&gt;
** open the stream info, copy the url&lt;br /&gt;
** open &amp;amp; save that one in VLC&lt;br /&gt;
&lt;br /&gt;
=== Flash Video Files (.flv) ===&lt;br /&gt;
&lt;br /&gt;
* Flash Video support has recently been added (provided through ffmpeg) - to view .flv files you will need version 0.8.4a. Download and install the latest version [http://www.videolan.org/vlc/ here].&lt;br /&gt;
* VLC still has problems with a few .flv files. If you have problems playing a file in VLC you might be able to change it to an avi using [[ffmpeg]]. See [[Fixing .flv to .avi with Ffmpeg]].&lt;br /&gt;
* VLC 0.8.6 provided enhanced Flash Video support on all platforms, so it is probably worth to update if you experience problems with prior releases.&lt;br /&gt;
&lt;br /&gt;
=== Other Files ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238663}}&lt;br /&gt;
* Make sure that VLC supports that file - look at the [http://www.videolan.org/vlc/features.html list of supposted formats]&lt;br /&gt;
&lt;br /&gt;
* Make sure that the file isn&#039;t corrupted&lt;br /&gt;
&lt;br /&gt;
== VLC and Other Programs ==&lt;br /&gt;
&lt;br /&gt;
=== AMR ===&lt;br /&gt;
&lt;br /&gt;
* To use [http://en.wikipedia.org/wiki/Adaptive_Multi-Rate AMR], you&#039;ll need to compile vlc and ffmpeg with amr support yourself. This is because the amr license is not compatible with the vlc license.&lt;br /&gt;
&lt;br /&gt;
=== ratDVD ===&lt;br /&gt;
&lt;br /&gt;
* VLC does not support [http://en.wikipedia.org/wiki/RatDVD ratDVD] and is not going to be, both for political and technical reasons.&lt;br /&gt;
&lt;br /&gt;
== Problems Playing DVDs ==&lt;br /&gt;
&lt;br /&gt;
===Unable to play any DVDs===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; To play DVDs with VLC in linux, you need to install the libdvdcss package&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure you have access rigths to your DVD player. In linux, you can use chmod to edit access rights to your DVD block device:&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; chmod 666 /dev/dvd&lt;br /&gt;
** The videolan FAQ seems to suggest you need write access to this device - is this true? If you know, please edit this entry.&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure VLC knows where your DVD drive is located (/dev/dvd usually).  Go to Settings | Preferences | Input/Codecs | General and under &amp;quot;Default devices&amp;quot; make sure your dvd drive path is entered in the &amp;quot;Default DVD&amp;quot; box.  When you go to open a DVD, you should see something like &amp;quot;dvd:///dev/dvd&amp;quot; as the [[media resource locator]] in the &amp;quot;Open:&amp;quot; box near the top of the Open dialog.&lt;br /&gt;
&lt;br /&gt;
=== Playing DVDs from other Region Codes ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239426}}&lt;br /&gt;
* The ability to play DVDs from all regions depends mostly on your DVD drive, and testing it is usually the quickest way to find out if your DVD drive can do it. Most newer DVD drives are RPC2 drives, which don&#039;t allow raw access to the drive untill the drive firmware has done a regioncheck. VLC uses libdvdcss and it needs raw access to the DVD drive to crack the encryption key. So with these drives it is impossible to circumvent the region protection. (This goes for all software. You will need to flash your drives firmware, but sometimes there is no alternate firmware available for your drive). On other RPC2 drives that DO allow raw access, it might take VLC a long time to crack the key. So just pop the disc in your drive and try it out, while you get a coffee. RPC1 drives should &#039;always&#039; work regardless of the regioncode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Poor Quality Video and Audio ==&lt;br /&gt;
&lt;br /&gt;
=== The video runs but the picture is distorted ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238431}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; There is probably a problem with the output layer. There are several ways of troubleshooting it.&lt;br /&gt;
** First, try with another output plugin, for instance:&lt;br /&gt;
**: % vlc -V sdl&lt;br /&gt;
**: % vlc -V x11&lt;br /&gt;
** Second, change your screen depth and/or definition. It quite often helps.&lt;br /&gt;
** Lastly, if running Unix, have a look at your XFree86 video driver. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Windows:&#039;&#039; See [[WindowsFAQ-1.1.x#Why_does_VLC_only_give_black.2C_white_or_garbled_.28or_other_visual_erros.29_video_output.3F]]&lt;br /&gt;
&lt;br /&gt;
=== Video is choppy ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238474}}&lt;br /&gt;
* Your system may be too slow to decode all pictures. Sometimes, your CPU (computer) really isn&#039;t fast enough, but often the situation can be improved by changing your system configuration to be a bit kinder to VLC.&lt;br /&gt;
** Quit other programs running in the background&lt;br /&gt;
** Turn on DMA on your DVD device:&lt;br /&gt;
*** &#039;&#039;Linux:&#039;&#039;&lt;br /&gt;
***: &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; hdparm -d1 /dev/dvd&lt;br /&gt;
*** &#039;&#039;Windows:&#039;&#039; go to the System section of the control panel, and go to the Hardware manager (it is sometimes in a separate tab, and sometimes, you have to go to the Advanced tab. Then, right-click on your DVD player, and check the DMA checkbox. &lt;br /&gt;
** Upgrade to the latest driver for your video board.&lt;br /&gt;
** &#039;&#039;Linux:&#039;&#039; you can additionally upgrade your drivers to the latest XFree86 version. If supported, check that the xvideo plug-in is effectively used with:&lt;br /&gt;
**: % vlc -vvvv&lt;br /&gt;
&lt;br /&gt;
=== Audio and video are out of sync ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238571}}&lt;br /&gt;
* If you are [[transcoding]] a file, use the [[audio-sync]] option.&lt;br /&gt;
* You can manually set the audio offset while playing (so you can put the audio back in sync). The default keys to increase/decrease the offset are Ctrl+K and Ctrl+L in Windows, and f and g in Mac.&lt;br /&gt;
* &#039;&#039;Linux/Unix:&#039;&#039; Try using another audio output plugin and, under Unix, kill esd or artsd if they are running. If the problem is due to the input file, have a look at the &amp;quot;Audio desynchronization compensation&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
=== Audio is choppy ===&lt;br /&gt;
&lt;br /&gt;
* Reboot? http://ubuntuforums.org/showthread.php?t=1288433&lt;br /&gt;
* Try a different codec if transcoding to ogg&lt;br /&gt;
&lt;br /&gt;
== Problems with Streaming ==&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;main input error: no suitable access module for `rtsp://...&#039;&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
vlc needs livemedia from &#039;&#039;&#039;live555.com&#039;&#039;&#039; to read rtsp stream this way. &lt;br /&gt;
&lt;br /&gt;
You can check you have it by :&lt;br /&gt;
&lt;br /&gt;
   vlc -l | grep live&lt;br /&gt;
&lt;br /&gt;
It should read&lt;br /&gt;
&lt;br /&gt;
  livedotcom            live.com (RTSP/RTP/SDP) demuxer&lt;br /&gt;
  livedotcom            RTSP/RTP access and demux&lt;br /&gt;
&lt;br /&gt;
If not, you have to install &#039;&#039;&#039;livemedia&#039;&#039;&#039; and point your compilation to this lib directory :&lt;br /&gt;
&lt;br /&gt;
   ./configure &#039;&#039;&#039;--enable-livedotcom --with-livedotcom-tree=/usr/local/lib/live/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Streaming playlist continuously between files (sout-keep not working)===&lt;br /&gt;
&lt;br /&gt;
add the gather module to the sout chain, for example&lt;br /&gt;
    vlc *mpeg --sout-keep --sout &#039;#gather:transcode{plapla}:rtp{plapla}&#039;&lt;br /&gt;
&lt;br /&gt;
===Streaming 1 playlist item continuously and change input without stream break===&lt;br /&gt;
&lt;br /&gt;
you can use this kind of a vlm.conf file with the --sout-keep option&lt;br /&gt;
  new output1 broadcast enabled loop&lt;br /&gt;
  setup output1 input &amp;quot;inputfile1.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;inputfile2.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;/path/to/inputfile3.mpeg&amp;quot;&lt;br /&gt;
  setup output1 option sout-keep&lt;br /&gt;
  setup output1 option input-repeat=-1&lt;br /&gt;
  setup output1 output #gather:transcode{etc...}:std{plapla}&lt;br /&gt;
 &lt;br /&gt;
  control output1 play 2&lt;br /&gt;
&lt;br /&gt;
you then chan telnet into vlm and just command&lt;br /&gt;
  control output1 play &amp;lt;playlistnumber&amp;gt;&lt;br /&gt;
to change the streamed input.&lt;br /&gt;
&lt;br /&gt;
===Streaming to Windows Media Player===&lt;br /&gt;
&lt;br /&gt;
See [[Windows Media Player]] for details.&lt;br /&gt;
&lt;br /&gt;
== Problems converting between file formats (transcoding) ==&lt;br /&gt;
&lt;br /&gt;
=== Missing Audio and/or Video ===&lt;br /&gt;
&lt;br /&gt;
* Certain containers (aka muxers) can only hold certain types of video and audio - look at [[Transcode#Compatibility_issues]].&lt;br /&gt;
&lt;br /&gt;
== Streaming/Transcoding Wizard ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Transcode / Save to file ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Partial Extract &amp;quot;From&amp;quot; &amp;quot;To&amp;quot; does not work, allone &amp;quot;To&amp;quot; don´t too.&lt;br /&gt;
: I&#039;ve tested it too with the 0.8.6c version, already specifying the time data in seconds, and this parameter has no effect.&lt;br /&gt;
&lt;br /&gt;
== VLC Crashes ==&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238592}}&lt;br /&gt;
* If VLC crashes, the following steps will help determine the cause.&lt;br /&gt;
** Increase the verbosity level (either in the preferences or with a -vvvv command line option) and look at the debug messages (in the terminal or in the Messages window).&lt;br /&gt;
* If you are convinced that it is a bug in VLC, have a look at the [http://www.videolan.org/support/bug-reporting.html bug reporting page].&lt;br /&gt;
&lt;br /&gt;
=== When using DirectShow (eg Webcam) ===&lt;br /&gt;
&lt;br /&gt;
{{forum|12394}}&lt;br /&gt;
* There was a bug a while back when you tried to stream using a directshow/webcam it would reboot the computer. The fix was to specify the resolution on the command line or in the &amp;quot;Advanced&amp;quot; section when opening the directshow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Problems ==&lt;br /&gt;
&lt;br /&gt;
=== I only want one VLC player! ===&lt;br /&gt;
&lt;br /&gt;
* To use the same VLC player for all the media files, go to Settings, Preferences, Advanced. The following options should give behavior similar to WMP: minimize # of threads, allow only one running instance, VLC is started from file association, allow only &amp;quot;on&amp;quot; running instance when started from file (typo in v0.8.5).&lt;br /&gt;
&lt;br /&gt;
=== Licensing, legal issues and logo use ===&lt;br /&gt;
&lt;br /&gt;
* Information on this is avaliable on the main videolan website, [http://videolan.org videolan.org]. Also read the [http://www.videolan.org/doc/faq/en/index.html#id238663 Legal concerns] section of the [http://www.videolan.org/doc/faq/en/index.html FAQ].&lt;br /&gt;
* This is a wiki site: it is editable by all, so it is best to check to official website.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Strange Behaviour ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238992}}&lt;br /&gt;
* The first thing to do is to reset the VLC preferences in the preferences dialog of the application and restart VLC. If VLC doesn&#039;t even start anymore, delete VLC&#039;s configuration file ([[#Configuration File|where is it?]]). Then restart VLC. If it does not get any better, read the rest of this page or FAQ page, or ask for help at the [[forum]].&lt;br /&gt;
&lt;br /&gt;
=== Subtitles Problem ===&lt;br /&gt;
&lt;br /&gt;
* In the File | Open File dialog, select &amp;quot;Use a subtitles file&amp;quot;, and enter both the video&#039;s filename and the video&#039;s subtitle filename.&lt;br /&gt;
* If you are having displaying the subtitles, the problem might be an encoding problem. Choose the right encoding for your language and it should fix your problem. You&#039;ll find the ISOs here: [http://alis.isoc.org/codage/iso8859/jeuxiso.en.htm]. Once you find a text encoding method that works well for you enter it in Preferences, Input / Codecs, Other codecs, Subtitles then press Save and restart VLC. Uncheck the &amp;quot;Formatted Subtitles&amp;quot; may help if the subtitles only display as little squares. If you have a specialized language like Hebrew, Arabic, Chinese or Japanese changing the font to a Unicode font will be helpful. For Polish subtitles choose CP 1250 ISO code.&lt;br /&gt;
&lt;br /&gt;
=== VLC hangs when opening Matroska (mkv) files ===&lt;br /&gt;
&lt;br /&gt;
* This might occur when using VLC to view an mkv file in a directory that has a large number of mkv files. (eg. in an Azureus download directory)&lt;br /&gt;
VLC will attempt to preload all the mkv files in the directory and will hang, especially if some mkv files are not fully downloaded yet (thus seem to be broken).&lt;br /&gt;
* The solution is to set the mkv option: --mkv-preload-local-dir to false&lt;br /&gt;
Preferences -&amp;gt; Input / Codecs -&amp;gt; Demuxers -&amp;gt; Matroska -&amp;gt; Preload Directory (uncheck the checkbox)&lt;br /&gt;
(See also http://wiki.videolan.org/Matroska)&lt;br /&gt;
&lt;br /&gt;
=== Coarse volume control ===&lt;br /&gt;
&lt;br /&gt;
Volume control, specially with Hotkeys, is too coarse.&lt;br /&gt;
*To have a finer volume control, try the following option on the command line:&lt;br /&gt;
 &amp;lt;code&amp;gt;--volume-step=1&amp;lt;/code&amp;gt;&lt;br /&gt;
:See also [[VLC command-line help]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17683</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17683"/>
		<updated>2010-11-18T20:23:02Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Compatibility issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
== Compatibility issues ==&lt;br /&gt;
&lt;br /&gt;
If your input streams already matches the encoding that you desire for your output stream, then you don&#039;t have to transcode at all (just leave out the transcode settings on the command line, and it will thence not transcode).  In the GUI this is called &amp;quot;keep the original track&amp;quot; (I think).&lt;br /&gt;
&lt;br /&gt;
Note that when you decide your transcoding settings, only some container formats (muxers) can support some codecs - look at [http://www.videolan.org/streaming/features.html streaming features] to see which supports what.  If your current format is incompatible with the muxer you desire, then you must transcode it to something compatible, or choose a different muxer.  If you choose an incompatible stream for a given muxer, it may silently fail.  You can look for error messages in the [[Basic_Troubleshooting|messages window]] to help you debug the failures.&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  &lt;br /&gt;
&lt;br /&gt;
See also {{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17682</id>
		<title>OldFAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17682"/>
		<updated>2010-11-18T20:20:44Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Poor Quality Video and Audio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
Answers to some common problems people encounter with VLC. More help is available in the&lt;br /&gt;
* [http://www.videolan.org/doc/ Documentation]&lt;br /&gt;
* [http://www.videolan.org/doc/faq/en/videolan-faq-en.html FAQ]&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing VLC ==&lt;br /&gt;
&lt;br /&gt;
=== On Mac OS 9 ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* Sorry, VLC will not work on OS 9, and probably never will. However, Mac OS X is supported - [[Unsupported|Find out Why]]&lt;br /&gt;
&lt;br /&gt;
=== Compiling VLC ===&lt;br /&gt;
&lt;br /&gt;
==== How do I compile VLC? ====&lt;br /&gt;
&lt;br /&gt;
* Look at [http://developers.videolan.org/vlc/ how to compile VLC]. There are pre-compiled (binary / executable) versions [http://www.videolan.org/vlc/ here].&lt;br /&gt;
&lt;br /&gt;
==== Mozilla Firefox Plugin ====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Debian:&#039;&#039; All you need is to download the vlc plugin package - mozilla-plugin-vlc ([http://packages.debian.org/stable/graphics/mozilla-plugin-vlc stable release])&lt;br /&gt;
* &#039;&#039;All Linux:&#039;&#039; To make the firefox plugin with the vlc player, you will first need the Firefox Development package (from: [http://packages.ubuntu.com/breezy/devel/firefox-dev ubuntu] ...). Then, when you compile, run ./configure with --enable-mozilla, and if needed with --with-mozilla-sdk-path=&#039;&#039;/path_to_firefox_sdk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Missing header file ffmpeg/avcodec.h&amp;quot; and &amp;quot;Missing header file postproc/postprocess.h&amp;quot; Errors ====&lt;br /&gt;
&lt;br /&gt;
* Make sure that you have all the libraries you need.&lt;br /&gt;
** &#039;&#039;&#039;on ubuntu&#039;&#039;&#039;: &amp;quot;apt-get install libavcodec-dev libpostproc-dev&amp;quot; will install the needed files (worked on edgy).&lt;br /&gt;
* When you run ./configure for [[ffmpeg]], make sure that at least the following flags are set (descriptions of these avaliable from ./configure --help )&lt;br /&gt;
 ./configure --enable-shared --enable-shared-pp --enable-pp --enable-gpl&lt;br /&gt;
* The path of ffmpeg is not set. Check if you can locate the file &#039;&#039;&#039;libavcodec.pc&#039;&#039;&#039; on your computer, and export PKG_CONFIG_PATH to where you found it before running ./configure. For example&lt;br /&gt;
 export PKG_CONFIG_PATH=/home/you/ffmpeg/&lt;br /&gt;
&lt;br /&gt;
With vlc-086f, FFmpeg SVN-r13060, on Slamd64 12.0.0, some other changes must be made.  These are most likely due to changes in libpostproc.&lt;br /&gt;
&lt;br /&gt;
The ./configure flags for ffmpeg become&lt;br /&gt;
  ./configure --enable-postproc --enable-shared --enable-gpl&lt;br /&gt;
&lt;br /&gt;
Then you must set a symbolic link for postproc.  This took me a long time to spot.&lt;br /&gt;
&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)locate postprocess.h&lt;br /&gt;
 /usr/local/include/libpostproc/postprocess.h&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)cd /usr/local/include/&lt;br /&gt;
 root @ svr (/usr/local/include)ln -s libpostproc postproc&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;cc1: error: invalid option `tune=opteron&#039;&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* One user writes: &amp;quot;From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don&#039;t know if this is the correct way to proceed but was the only way for me to get results fast.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* This is not true on all versions of gcc.  Try to compile on your platform before making the above changes.&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)gcc --version&lt;br /&gt;
 gcc (GCC) 4.1.2&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)uname -a&lt;br /&gt;
 Linux p01 2.6.24.3 #2 SMP Tue Apr 8 12:01:03 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep tune= config.log&lt;br /&gt;
 configure:37114: checking whether gcc accepts -mtune=athlon64&lt;br /&gt;
 configure:37125: gcc -c -Wsign-compare -Wall  -pipe -mtune=athlon64  -DSYS_LINUX conftest.c &amp;gt;&amp;amp;5&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep cpu= config.log&lt;br /&gt;
 build_cpu=&#039;x86_64&#039;&lt;br /&gt;
 host_cpu=&#039;x86_64&#039;&lt;br /&gt;
 target_cpu=&#039;x86_64&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;/usr/bin/ld: cannot find -lX11&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* In configure, there is an x_libraries variable there that is set to &amp;quot;/usr/X11R6/lib&amp;quot; (around line 16371). Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;syntax error before &amp;quot;pthread_spinlock_t&amp;quot;&amp;quot; on debian-Etch or CentOS ====&lt;br /&gt;
&lt;br /&gt;
* If you have errors about &#039;&#039;pthread_spin*&#039;&#039; in the file &#039;&#039;vlc_threads_funcs.h&#039;&#039;, try this fix :&lt;br /&gt;
 su&lt;br /&gt;
 sed -e &#039;s/define\s*_POSIX_SPIN_LOCKS\s*/define _POSIX_SPIN_LOCKS -1 \/\/ wrong: /g&#039; -i /usr/include/bits/posix_opt.h&lt;br /&gt;
 exit&lt;br /&gt;
source : [http://forum.videolan.org/viewtopic.php?f=13&amp;amp;t=43930#p139570 this post] from Rémi Denis-Courmont.&lt;br /&gt;
&lt;br /&gt;
=== Installing Skins ===&lt;br /&gt;
&lt;br /&gt;
* Although all information is given on the [http://www.videolan.org/vlc/skins.php VLC Download skin site], you may miss the note to change preferences to &#039;&#039;skinnable interface&#039;&#039;. There is an [http://forum.videolan.org/viewtopic.php?p=85603#p85603 article on the forum] which describes the how-to. In short: there is a drop-down option (interface module) in the settings dialog (Interface &amp;amp;rarr; General) which defaults to &#039;&#039;Standard&#039;&#039;. Change this and restart.&lt;br /&gt;
&lt;br /&gt;
== Problems Starting VLC ==&lt;br /&gt;
&lt;br /&gt;
=== VLC does not launch on my Mac anymore. What to do? ===&lt;br /&gt;
&lt;br /&gt;
* Please have a look at the [[FAQ_on_MacOSX_only_issues|specific FAQ]], which covers multiple solutions to this issue.&lt;br /&gt;
&lt;br /&gt;
== Error Messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages can be viewed by selecting Messages from the Tools menu.&lt;br /&gt;
&lt;br /&gt;
=== main private error: no sout mux module matched &amp;quot;ts&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* This can be an error if &#039;&#039;&#039;libdvbpsi&#039;&#039;&#039; was not installed when vlc was compiled. To fix this error, install libdvbpsi; then re-compile vlc. [http://developers.videolan.org/libdvbpsi/ libdvbpsi]&lt;br /&gt;
&lt;br /&gt;
=== main dialogs provider error: no dialogs provider module matched &amp;quot;any&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* The solution is found in [http://forum.videolan.org/viewtopic.php?t=14733 the forum]&lt;br /&gt;
&lt;br /&gt;
== Problems playing types of files ==&lt;br /&gt;
&lt;br /&gt;
=== WMV files ===&lt;br /&gt;
&lt;br /&gt;
* Starting with VLC media player 0.8.6, the playback of WMV3-encoded videos is available on all platforms. Please note, that encrypted / DRM-protected video-clips still cannot be played. That is due to the nature of DRM and is not about to change, so please do not ask.&lt;br /&gt;
&lt;br /&gt;
=== Real Media files ===&lt;br /&gt;
&lt;br /&gt;
* Realmedia files (.rm, .rpm, etc) are proprietary (ie, copyrighted) file formats, created by RealNetworks. Because of this, VLC can&#039;t support them at present.&lt;br /&gt;
&lt;br /&gt;
=== QuickTime Files (.mov) ===&lt;br /&gt;
&lt;br /&gt;
* Mov file doesn&#039;t play, but plays ok in QuickTime&lt;br /&gt;
** open the url in QuickTime player&lt;br /&gt;
** let it decide which datarate is best for your connection&lt;br /&gt;
** let it play for a few seconds, then pause it&lt;br /&gt;
** open the stream info, copy the url&lt;br /&gt;
** open &amp;amp; save that one in VLC&lt;br /&gt;
&lt;br /&gt;
=== Flash Video Files (.flv) ===&lt;br /&gt;
&lt;br /&gt;
* Flash Video support has recently been added (provided through ffmpeg) - to view .flv files you will need version 0.8.4a. Download and install the latest version [http://www.videolan.org/vlc/ here].&lt;br /&gt;
* VLC still has problems with a few .flv files. If you have problems playing a file in VLC you might be able to change it to an avi using [[ffmpeg]]. See [[Fixing .flv to .avi with Ffmpeg]].&lt;br /&gt;
* VLC 0.8.6 provided enhanced Flash Video support on all platforms, so it is probably worth to update if you experience problems with prior releases.&lt;br /&gt;
&lt;br /&gt;
=== Other Files ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238663}}&lt;br /&gt;
* Make sure that VLC supports that file - look at the [http://www.videolan.org/vlc/features.html list of supposted formats]&lt;br /&gt;
&lt;br /&gt;
* Make sure that the file isn&#039;t corrupted&lt;br /&gt;
&lt;br /&gt;
== VLC and Other Programs ==&lt;br /&gt;
&lt;br /&gt;
=== AMR ===&lt;br /&gt;
&lt;br /&gt;
* To use [http://en.wikipedia.org/wiki/Adaptive_Multi-Rate AMR], you&#039;ll need to compile vlc and ffmpeg with amr support yourself. This is because the amr license is not compatible with the vlc license.&lt;br /&gt;
&lt;br /&gt;
=== ratDVD ===&lt;br /&gt;
&lt;br /&gt;
* VLC does not support [http://en.wikipedia.org/wiki/RatDVD ratDVD] and is not going to be, both for political and technical reasons.&lt;br /&gt;
&lt;br /&gt;
== Problems Playing DVDs ==&lt;br /&gt;
&lt;br /&gt;
===Unable to play any DVDs===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; To play DVDs with VLC in linux, you need to install the libdvdcss package&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure you have access rigths to your DVD player. In linux, you can use chmod to edit access rights to your DVD block device:&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; chmod 666 /dev/dvd&lt;br /&gt;
** The videolan FAQ seems to suggest you need write access to this device - is this true? If you know, please edit this entry.&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure VLC knows where your DVD drive is located (/dev/dvd usually).  Go to Settings | Preferences | Input/Codecs | General and under &amp;quot;Default devices&amp;quot; make sure your dvd drive path is entered in the &amp;quot;Default DVD&amp;quot; box.  When you go to open a DVD, you should see something like &amp;quot;dvd:///dev/dvd&amp;quot; as the [[media resource locator]] in the &amp;quot;Open:&amp;quot; box near the top of the Open dialog.&lt;br /&gt;
&lt;br /&gt;
=== Playing DVDs from other Region Codes ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239426}}&lt;br /&gt;
* The ability to play DVDs from all regions depends mostly on your DVD drive, and testing it is usually the quickest way to find out if your DVD drive can do it. Most newer DVD drives are RPC2 drives, which don&#039;t allow raw access to the drive untill the drive firmware has done a regioncheck. VLC uses libdvdcss and it needs raw access to the DVD drive to crack the encryption key. So with these drives it is impossible to circumvent the region protection. (This goes for all software. You will need to flash your drives firmware, but sometimes there is no alternate firmware available for your drive). On other RPC2 drives that DO allow raw access, it might take VLC a long time to crack the key. So just pop the disc in your drive and try it out, while you get a coffee. RPC1 drives should &#039;always&#039; work regardless of the regioncode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Poor Quality Video and Audio ==&lt;br /&gt;
&lt;br /&gt;
=== The video runs but the picture is distorted ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238431}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; There is probably a problem with the output layer. There are several ways of troubleshooting it.&lt;br /&gt;
** First, try with another output plugin, for instance:&lt;br /&gt;
**: % vlc -V sdl&lt;br /&gt;
**: % vlc -V x11&lt;br /&gt;
** Second, change your screen depth and/or definition. It quite often helps.&lt;br /&gt;
** Lastly, if running Unix, have a look at your XFree86 video driver. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Windows:&#039;&#039; See [[WindowsFAQ-1.1.x#Why_does_VLC_only_give_black.2C_white_or_garbled_.28or_other_visual_erros.29_video_output.3F]]&lt;br /&gt;
&lt;br /&gt;
=== Video is choppy ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238474}}&lt;br /&gt;
* Your system may be too slow to decode all pictures. Sometimes, your CPU (computer) really isn&#039;t fast enough, but often the situation can be improved by changing your system configuration to be a bit kinder to VLC.&lt;br /&gt;
** Quit other programs running in the background&lt;br /&gt;
** Turn on DMA on your DVD device:&lt;br /&gt;
*** &#039;&#039;Linux:&#039;&#039;&lt;br /&gt;
***: &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; hdparm -d1 /dev/dvd&lt;br /&gt;
*** &#039;&#039;Windows:&#039;&#039; go to the System section of the control panel, and go to the Hardware manager (it is sometimes in a separate tab, and sometimes, you have to go to the Advanced tab. Then, right-click on your DVD player, and check the DMA checkbox. &lt;br /&gt;
** Upgrade to the latest driver for your video board.&lt;br /&gt;
** &#039;&#039;Linux:&#039;&#039; you can additionally upgrade your drivers to the latest XFree86 version. If supported, check that the xvideo plug-in is effectively used with:&lt;br /&gt;
**: % vlc -vvvv&lt;br /&gt;
&lt;br /&gt;
=== Audio and video are out of sync ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238571}}&lt;br /&gt;
* If you are [[transcoding]] a file, use the [[audio-sync]] option.&lt;br /&gt;
* You can manually set the audio offset while playing (so you can put the audio back in sync). The default keys to increase/decrease the offset are Ctrl+K and Ctrl+L in Windows, and f and g in Mac.&lt;br /&gt;
* &#039;&#039;Linux/Unix:&#039;&#039; Try using another audio output plugin and, under Unix, kill esd or artsd if they are running. If the problem is due to the input file, have a look at the &amp;quot;Audio desynchronization compensation&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
=== Audio is choppy ===&lt;br /&gt;
&lt;br /&gt;
* Reboot? http://ubuntuforums.org/showthread.php?t=1288433&lt;br /&gt;
* Try a different codec if transcoding to ogg&lt;br /&gt;
&lt;br /&gt;
== Problems with Streaming ==&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;main input error: no suitable access module for `rtsp://...&#039;&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
vlc needs livemedia from &#039;&#039;&#039;live555.com&#039;&#039;&#039; to read rtsp stream this way. &lt;br /&gt;
&lt;br /&gt;
You can check you have it by :&lt;br /&gt;
&lt;br /&gt;
   vlc -l | grep live&lt;br /&gt;
&lt;br /&gt;
It should read&lt;br /&gt;
&lt;br /&gt;
  livedotcom            live.com (RTSP/RTP/SDP) demuxer&lt;br /&gt;
  livedotcom            RTSP/RTP access and demux&lt;br /&gt;
&lt;br /&gt;
If not, you have to install &#039;&#039;&#039;livemedia&#039;&#039;&#039; and point your compilation to this lib directory :&lt;br /&gt;
&lt;br /&gt;
   ./configure &#039;&#039;&#039;--enable-livedotcom --with-livedotcom-tree=/usr/local/lib/live/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Streaming playlist continuously between files (sout-keep not working)===&lt;br /&gt;
&lt;br /&gt;
add the gather module to the sout chain, for example&lt;br /&gt;
    vlc *mpeg --sout-keep --sout &#039;#gather:transcode{plapla}:rtp{plapla}&#039;&lt;br /&gt;
&lt;br /&gt;
===Streaming 1 playlist item continuously and change input without stream break===&lt;br /&gt;
&lt;br /&gt;
you can use this kind of a vlm.conf file with the --sout-keep option&lt;br /&gt;
  new output1 broadcast enabled loop&lt;br /&gt;
  setup output1 input &amp;quot;inputfile1.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;inputfile2.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;/path/to/inputfile3.mpeg&amp;quot;&lt;br /&gt;
  setup output1 option sout-keep&lt;br /&gt;
  setup output1 option input-repeat=-1&lt;br /&gt;
  setup output1 output #gather:transcode{etc...}:std{plapla}&lt;br /&gt;
 &lt;br /&gt;
  control output1 play 2&lt;br /&gt;
&lt;br /&gt;
you then chan telnet into vlm and just command&lt;br /&gt;
  control output1 play &amp;lt;playlistnumber&amp;gt;&lt;br /&gt;
to change the streamed input.&lt;br /&gt;
&lt;br /&gt;
===Streaming to Windows Media Player===&lt;br /&gt;
&lt;br /&gt;
See [[Windows Media Player]] for details.&lt;br /&gt;
&lt;br /&gt;
== Problems converting between file formats (transcoding) ==&lt;br /&gt;
&lt;br /&gt;
=== Missing Audio and/or Video ===&lt;br /&gt;
&lt;br /&gt;
* Certain containers (aka muxers) can only hold certain types of video and audio - look at [http://www.videolan.org/streaming/features.html Streaming features]&lt;br /&gt;
&lt;br /&gt;
== Streaming/Transcoding Wizard ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Transcode / Save to file ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Partial Extract &amp;quot;From&amp;quot; &amp;quot;To&amp;quot; does not work, allone &amp;quot;To&amp;quot; don´t too.&lt;br /&gt;
: I&#039;ve tested it too with the 0.8.6c version, already specifying the time data in seconds, and this parameter has no effect.&lt;br /&gt;
&lt;br /&gt;
== VLC Crashes ==&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238592}}&lt;br /&gt;
* If VLC crashes, the following steps will help determine the cause.&lt;br /&gt;
** Increase the verbosity level (either in the preferences or with a -vvvv command line option) and look at the debug messages (in the terminal or in the Messages window).&lt;br /&gt;
* If you are convinced that it is a bug in VLC, have a look at the [http://www.videolan.org/support/bug-reporting.html bug reporting page].&lt;br /&gt;
&lt;br /&gt;
=== When using DirectShow (eg Webcam) ===&lt;br /&gt;
&lt;br /&gt;
{{forum|12394}}&lt;br /&gt;
* There was a bug a while back when you tried to stream using a directshow/webcam it would reboot the computer. The fix was to specify the resolution on the command line or in the &amp;quot;Advanced&amp;quot; section when opening the directshow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Problems ==&lt;br /&gt;
&lt;br /&gt;
=== I only want one VLC player! ===&lt;br /&gt;
&lt;br /&gt;
* To use the same VLC player for all the media files, go to Settings, Preferences, Advanced. The following options should give behavior similar to WMP: minimize # of threads, allow only one running instance, VLC is started from file association, allow only &amp;quot;on&amp;quot; running instance when started from file (typo in v0.8.5).&lt;br /&gt;
&lt;br /&gt;
=== Licensing, legal issues and logo use ===&lt;br /&gt;
&lt;br /&gt;
* Information on this is avaliable on the main videolan website, [http://videolan.org videolan.org]. Also read the [http://www.videolan.org/doc/faq/en/index.html#id238663 Legal concerns] section of the [http://www.videolan.org/doc/faq/en/index.html FAQ].&lt;br /&gt;
* This is a wiki site: it is editable by all, so it is best to check to official website.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Strange Behaviour ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238992}}&lt;br /&gt;
* The first thing to do is to reset the VLC preferences in the preferences dialog of the application and restart VLC. If VLC doesn&#039;t even start anymore, delete VLC&#039;s configuration file ([[#Configuration File|where is it?]]). Then restart VLC. If it does not get any better, read the rest of this page or FAQ page, or ask for help at the [[forum]].&lt;br /&gt;
&lt;br /&gt;
=== Subtitles Problem ===&lt;br /&gt;
&lt;br /&gt;
* In the File | Open File dialog, select &amp;quot;Use a subtitles file&amp;quot;, and enter both the video&#039;s filename and the video&#039;s subtitle filename.&lt;br /&gt;
* If you are having displaying the subtitles, the problem might be an encoding problem. Choose the right encoding for your language and it should fix your problem. You&#039;ll find the ISOs here: [http://alis.isoc.org/codage/iso8859/jeuxiso.en.htm]. Once you find a text encoding method that works well for you enter it in Preferences, Input / Codecs, Other codecs, Subtitles then press Save and restart VLC. Uncheck the &amp;quot;Formatted Subtitles&amp;quot; may help if the subtitles only display as little squares. If you have a specialized language like Hebrew, Arabic, Chinese or Japanese changing the font to a Unicode font will be helpful. For Polish subtitles choose CP 1250 ISO code.&lt;br /&gt;
&lt;br /&gt;
=== VLC hangs when opening Matroska (mkv) files ===&lt;br /&gt;
&lt;br /&gt;
* This might occur when using VLC to view an mkv file in a directory that has a large number of mkv files. (eg. in an Azureus download directory)&lt;br /&gt;
VLC will attempt to preload all the mkv files in the directory and will hang, especially if some mkv files are not fully downloaded yet (thus seem to be broken).&lt;br /&gt;
* The solution is to set the mkv option: --mkv-preload-local-dir to false&lt;br /&gt;
Preferences -&amp;gt; Input / Codecs -&amp;gt; Demuxers -&amp;gt; Matroska -&amp;gt; Preload Directory (uncheck the checkbox)&lt;br /&gt;
(See also http://wiki.videolan.org/Matroska)&lt;br /&gt;
&lt;br /&gt;
=== Coarse volume control ===&lt;br /&gt;
&lt;br /&gt;
Volume control, specially with Hotkeys, is too coarse.&lt;br /&gt;
*To have a finer volume control, try the following option on the command line:&lt;br /&gt;
 &amp;lt;code&amp;gt;--volume-step=1&amp;lt;/code&amp;gt;&lt;br /&gt;
:See also [[VLC command-line help]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17681</id>
		<title>Documentation:Streaming HowTo/Receive and Save a Stream</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17681"/>
		<updated>2010-11-18T20:15:50Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Save a stream with VLC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
===Receive an unicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Receive a multicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://@239.255.12.42&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;239.255.12.42&#039;&#039;&#039; is the multicast IP address you want to join.&lt;br /&gt;
&lt;br /&gt;
===Receive an HTTP/FTP/MMS stream===&lt;br /&gt;
&lt;br /&gt;
Use one of the following command lines:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;http://example/stream.xyz&#039;&#039;&#039; is the HTTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv ftp://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;ftp://example/stream.xyz&#039;&#039;&#039; is the FTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039; is the MMS address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a RTP stream available through RTSP===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039; is the address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a stream described by an SDP file===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://server.example.org/stream.sdp&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Save a stream with VLC ==&lt;br /&gt;
&lt;br /&gt;
VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC&amp;amp;nbsp;: you can do it via the graphical interface (Media [menu] -&amp;amp;gt; streaming) or use the [http://www.howtogeek.com/howto/2686/how-to-copy-a-dvd-with-vlc-1.0/ record button], or you can add to the command line the following argument: &lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;--sout file/muxer:stream.xyz&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where: &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;muxer&#039;&#039;&#039; is one of the formats supported by VLC&#039;s stream output, i.e.&amp;amp;nbsp;: &lt;br /&gt;
**&#039;&#039;&#039;ogg&#039;&#039;&#039; for OGG format, &lt;br /&gt;
**&#039;&#039;&#039;ps&#039;&#039;&#039; MPEG2-PS format, &lt;br /&gt;
**&#039;&#039;&#039;ts&#039;&#039;&#039; for MPEG2-TS format. &lt;br /&gt;
*and &#039;&#039;&#039;stream.xyz&#039;&#039;&#039; is the name of the file you want to save the stream to, with the right extension.&lt;br /&gt;
&lt;br /&gt;
For example: --sout=file/ps:go.mpg &lt;br /&gt;
&lt;br /&gt;
This is short hand for the more verbose --sout=&amp;quot;#std{access=file,mux=ps,dst=go.mpg}&amp;quot; &lt;br /&gt;
&lt;br /&gt;
NB that you must choose a muxer that supports your stream type. See [[Transcode#Compatibility_issues]] &lt;br /&gt;
&lt;br /&gt;
It can also be quite helpful to look at the settings VLC uses when it records using its record button. For example, in the logs you might see something like this: &lt;br /&gt;
&lt;br /&gt;
...: Using record output `std{access=file,mux=&#039;ps&#039;,dst=&#039;C:\vlc-record-2010__E-.mpg&#039;}&#039; &lt;br /&gt;
&lt;br /&gt;
Which gives you a hint/clue as to how to record your current stream. In this case this would translate into --sout &amp;quot;#std{access=file... on the command line.&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with a set-top-box==&lt;br /&gt;
&lt;br /&gt;
Some set-top-boxes with Ethernet cards can receive MPEG2-TS streams over UDP and support multicast.&lt;br /&gt;
&lt;br /&gt;
Set-top-boxes known to work with VLC are :&lt;br /&gt;
*[http://www.pace.co.uk Pace] set top boxes. (Pace Micro DSL 4000)&lt;br /&gt;
*[http://www.aminocom.com Aminocom] set top boxes. (all the models with mpeg2)&lt;br /&gt;
*tuxia / gct-allwell (mpeg4 and mpeg2) sigma designs8174 chipset&lt;br /&gt;
*i3micro mood200 (mpeg4 and mpeg2 in transport streams)&lt;br /&gt;
* ps3 media server streams using VLC (or mencoder) to the PS3&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17680</id>
		<title>OldFAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17680"/>
		<updated>2010-11-18T20:06:47Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Poor Quality Video and Audio */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
Answers to some common problems people encounter with VLC. More help is available in the&lt;br /&gt;
* [http://www.videolan.org/doc/ Documentation]&lt;br /&gt;
* [http://www.videolan.org/doc/faq/en/videolan-faq-en.html FAQ]&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing VLC ==&lt;br /&gt;
&lt;br /&gt;
=== On Mac OS 9 ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* Sorry, VLC will not work on OS 9, and probably never will. However, Mac OS X is supported - [[Unsupported|Find out Why]]&lt;br /&gt;
&lt;br /&gt;
=== Compiling VLC ===&lt;br /&gt;
&lt;br /&gt;
==== How do I compile VLC? ====&lt;br /&gt;
&lt;br /&gt;
* Look at [http://developers.videolan.org/vlc/ how to compile VLC]. There are pre-compiled (binary / executable) versions [http://www.videolan.org/vlc/ here].&lt;br /&gt;
&lt;br /&gt;
==== Mozilla Firefox Plugin ====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Debian:&#039;&#039; All you need is to download the vlc plugin package - mozilla-plugin-vlc ([http://packages.debian.org/stable/graphics/mozilla-plugin-vlc stable release])&lt;br /&gt;
* &#039;&#039;All Linux:&#039;&#039; To make the firefox plugin with the vlc player, you will first need the Firefox Development package (from: [http://packages.ubuntu.com/breezy/devel/firefox-dev ubuntu] ...). Then, when you compile, run ./configure with --enable-mozilla, and if needed with --with-mozilla-sdk-path=&#039;&#039;/path_to_firefox_sdk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Missing header file ffmpeg/avcodec.h&amp;quot; and &amp;quot;Missing header file postproc/postprocess.h&amp;quot; Errors ====&lt;br /&gt;
&lt;br /&gt;
* Make sure that you have all the libraries you need.&lt;br /&gt;
** &#039;&#039;&#039;on ubuntu&#039;&#039;&#039;: &amp;quot;apt-get install libavcodec-dev libpostproc-dev&amp;quot; will install the needed files (worked on edgy).&lt;br /&gt;
* When you run ./configure for [[ffmpeg]], make sure that at least the following flags are set (descriptions of these avaliable from ./configure --help )&lt;br /&gt;
 ./configure --enable-shared --enable-shared-pp --enable-pp --enable-gpl&lt;br /&gt;
* The path of ffmpeg is not set. Check if you can locate the file &#039;&#039;&#039;libavcodec.pc&#039;&#039;&#039; on your computer, and export PKG_CONFIG_PATH to where you found it before running ./configure. For example&lt;br /&gt;
 export PKG_CONFIG_PATH=/home/you/ffmpeg/&lt;br /&gt;
&lt;br /&gt;
With vlc-086f, FFmpeg SVN-r13060, on Slamd64 12.0.0, some other changes must be made.  These are most likely due to changes in libpostproc.&lt;br /&gt;
&lt;br /&gt;
The ./configure flags for ffmpeg become&lt;br /&gt;
  ./configure --enable-postproc --enable-shared --enable-gpl&lt;br /&gt;
&lt;br /&gt;
Then you must set a symbolic link for postproc.  This took me a long time to spot.&lt;br /&gt;
&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)locate postprocess.h&lt;br /&gt;
 /usr/local/include/libpostproc/postprocess.h&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)cd /usr/local/include/&lt;br /&gt;
 root @ svr (/usr/local/include)ln -s libpostproc postproc&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;cc1: error: invalid option `tune=opteron&#039;&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* One user writes: &amp;quot;From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don&#039;t know if this is the correct way to proceed but was the only way for me to get results fast.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* This is not true on all versions of gcc.  Try to compile on your platform before making the above changes.&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)gcc --version&lt;br /&gt;
 gcc (GCC) 4.1.2&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)uname -a&lt;br /&gt;
 Linux p01 2.6.24.3 #2 SMP Tue Apr 8 12:01:03 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep tune= config.log&lt;br /&gt;
 configure:37114: checking whether gcc accepts -mtune=athlon64&lt;br /&gt;
 configure:37125: gcc -c -Wsign-compare -Wall  -pipe -mtune=athlon64  -DSYS_LINUX conftest.c &amp;gt;&amp;amp;5&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep cpu= config.log&lt;br /&gt;
 build_cpu=&#039;x86_64&#039;&lt;br /&gt;
 host_cpu=&#039;x86_64&#039;&lt;br /&gt;
 target_cpu=&#039;x86_64&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;/usr/bin/ld: cannot find -lX11&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* In configure, there is an x_libraries variable there that is set to &amp;quot;/usr/X11R6/lib&amp;quot; (around line 16371). Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;syntax error before &amp;quot;pthread_spinlock_t&amp;quot;&amp;quot; on debian-Etch or CentOS ====&lt;br /&gt;
&lt;br /&gt;
* If you have errors about &#039;&#039;pthread_spin*&#039;&#039; in the file &#039;&#039;vlc_threads_funcs.h&#039;&#039;, try this fix :&lt;br /&gt;
 su&lt;br /&gt;
 sed -e &#039;s/define\s*_POSIX_SPIN_LOCKS\s*/define _POSIX_SPIN_LOCKS -1 \/\/ wrong: /g&#039; -i /usr/include/bits/posix_opt.h&lt;br /&gt;
 exit&lt;br /&gt;
source : [http://forum.videolan.org/viewtopic.php?f=13&amp;amp;t=43930#p139570 this post] from Rémi Denis-Courmont.&lt;br /&gt;
&lt;br /&gt;
=== Installing Skins ===&lt;br /&gt;
&lt;br /&gt;
* Although all information is given on the [http://www.videolan.org/vlc/skins.php VLC Download skin site], you may miss the note to change preferences to &#039;&#039;skinnable interface&#039;&#039;. There is an [http://forum.videolan.org/viewtopic.php?p=85603#p85603 article on the forum] which describes the how-to. In short: there is a drop-down option (interface module) in the settings dialog (Interface &amp;amp;rarr; General) which defaults to &#039;&#039;Standard&#039;&#039;. Change this and restart.&lt;br /&gt;
&lt;br /&gt;
== Problems Starting VLC ==&lt;br /&gt;
&lt;br /&gt;
=== VLC does not launch on my Mac anymore. What to do? ===&lt;br /&gt;
&lt;br /&gt;
* Please have a look at the [[FAQ_on_MacOSX_only_issues|specific FAQ]], which covers multiple solutions to this issue.&lt;br /&gt;
&lt;br /&gt;
== Error Messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages can be viewed by selecting Messages from the Tools menu.&lt;br /&gt;
&lt;br /&gt;
=== main private error: no sout mux module matched &amp;quot;ts&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* This can be an error if &#039;&#039;&#039;libdvbpsi&#039;&#039;&#039; was not installed when vlc was compiled. To fix this error, install libdvbpsi; then re-compile vlc. [http://developers.videolan.org/libdvbpsi/ libdvbpsi]&lt;br /&gt;
&lt;br /&gt;
=== main dialogs provider error: no dialogs provider module matched &amp;quot;any&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* The solution is found in [http://forum.videolan.org/viewtopic.php?t=14733 the forum]&lt;br /&gt;
&lt;br /&gt;
== Problems playing types of files ==&lt;br /&gt;
&lt;br /&gt;
=== WMV files ===&lt;br /&gt;
&lt;br /&gt;
* Starting with VLC media player 0.8.6, the playback of WMV3-encoded videos is available on all platforms. Please note, that encrypted / DRM-protected video-clips still cannot be played. That is due to the nature of DRM and is not about to change, so please do not ask.&lt;br /&gt;
&lt;br /&gt;
=== Real Media files ===&lt;br /&gt;
&lt;br /&gt;
* Realmedia files (.rm, .rpm, etc) are proprietary (ie, copyrighted) file formats, created by RealNetworks. Because of this, VLC can&#039;t support them at present.&lt;br /&gt;
&lt;br /&gt;
=== QuickTime Files (.mov) ===&lt;br /&gt;
&lt;br /&gt;
* Mov file doesn&#039;t play, but plays ok in QuickTime&lt;br /&gt;
** open the url in QuickTime player&lt;br /&gt;
** let it decide which datarate is best for your connection&lt;br /&gt;
** let it play for a few seconds, then pause it&lt;br /&gt;
** open the stream info, copy the url&lt;br /&gt;
** open &amp;amp; save that one in VLC&lt;br /&gt;
&lt;br /&gt;
=== Flash Video Files (.flv) ===&lt;br /&gt;
&lt;br /&gt;
* Flash Video support has recently been added (provided through ffmpeg) - to view .flv files you will need version 0.8.4a. Download and install the latest version [http://www.videolan.org/vlc/ here].&lt;br /&gt;
* VLC still has problems with a few .flv files. If you have problems playing a file in VLC you might be able to change it to an avi using [[ffmpeg]]. See [[Fixing .flv to .avi with Ffmpeg]].&lt;br /&gt;
* VLC 0.8.6 provided enhanced Flash Video support on all platforms, so it is probably worth to update if you experience problems with prior releases.&lt;br /&gt;
&lt;br /&gt;
=== Other Files ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238663}}&lt;br /&gt;
* Make sure that VLC supports that file - look at the [http://www.videolan.org/vlc/features.html list of supposted formats]&lt;br /&gt;
&lt;br /&gt;
* Make sure that the file isn&#039;t corrupted&lt;br /&gt;
&lt;br /&gt;
== VLC and Other Programs ==&lt;br /&gt;
&lt;br /&gt;
=== AMR ===&lt;br /&gt;
&lt;br /&gt;
* To use [http://en.wikipedia.org/wiki/Adaptive_Multi-Rate AMR], you&#039;ll need to compile vlc and ffmpeg with amr support yourself. This is because the amr license is not compatible with the vlc license.&lt;br /&gt;
&lt;br /&gt;
=== ratDVD ===&lt;br /&gt;
&lt;br /&gt;
* VLC does not support [http://en.wikipedia.org/wiki/RatDVD ratDVD] and is not going to be, both for political and technical reasons.&lt;br /&gt;
&lt;br /&gt;
== Problems Playing DVDs ==&lt;br /&gt;
&lt;br /&gt;
===Unable to play any DVDs===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; To play DVDs with VLC in linux, you need to install the libdvdcss package&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure you have access rigths to your DVD player. In linux, you can use chmod to edit access rights to your DVD block device:&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; chmod 666 /dev/dvd&lt;br /&gt;
** The videolan FAQ seems to suggest you need write access to this device - is this true? If you know, please edit this entry.&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure VLC knows where your DVD drive is located (/dev/dvd usually).  Go to Settings | Preferences | Input/Codecs | General and under &amp;quot;Default devices&amp;quot; make sure your dvd drive path is entered in the &amp;quot;Default DVD&amp;quot; box.  When you go to open a DVD, you should see something like &amp;quot;dvd:///dev/dvd&amp;quot; as the [[media resource locator]] in the &amp;quot;Open:&amp;quot; box near the top of the Open dialog.&lt;br /&gt;
&lt;br /&gt;
=== Playing DVDs from other Region Codes ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239426}}&lt;br /&gt;
* The ability to play DVDs from all regions depends mostly on your DVD drive, and testing it is usually the quickest way to find out if your DVD drive can do it. Most newer DVD drives are RPC2 drives, which don&#039;t allow raw access to the drive untill the drive firmware has done a regioncheck. VLC uses libdvdcss and it needs raw access to the DVD drive to crack the encryption key. So with these drives it is impossible to circumvent the region protection. (This goes for all software. You will need to flash your drives firmware, but sometimes there is no alternate firmware available for your drive). On other RPC2 drives that DO allow raw access, it might take VLC a long time to crack the key. So just pop the disc in your drive and try it out, while you get a coffee. RPC1 drives should &#039;always&#039; work regardless of the regioncode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Poor Quality Video and Audio ==&lt;br /&gt;
&lt;br /&gt;
=== The video runs but the picture is distorted ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238431}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; There is probably a problem with the output layer. There are several ways of troubleshooting it.&lt;br /&gt;
** First, try with another output plugin, for instance:&lt;br /&gt;
**: % vlc -V sdl&lt;br /&gt;
**: % vlc -V x11&lt;br /&gt;
** Second, change your screen depth and/or definition. It quite often helps.&lt;br /&gt;
** Lastly, if running Unix, have a look at your XFree86 video driver. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Windows:&#039;&#039; See [[WindowsFAQ-1.1.x#Why_does_VLC_only_give_black.2C_white_or_garbled_.28or_other_visual_erros.29_video_output.3F]]&lt;br /&gt;
&lt;br /&gt;
=== Video is choppy ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238474}}&lt;br /&gt;
* Your system may be too slow to decode all pictures. Sometimes, your CPU (computer) really isn&#039;t fast enough, but often the situation can be improved by changing your system configuration to be a bit kinder to VLC.&lt;br /&gt;
** Quit other programs running in the background&lt;br /&gt;
** Turn on DMA on your DVD device:&lt;br /&gt;
*** &#039;&#039;Linux:&#039;&#039;&lt;br /&gt;
***: &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; hdparm -d1 /dev/dvd&lt;br /&gt;
*** &#039;&#039;Windows:&#039;&#039; go to the System section of the control panel, and go to the Hardware manager (it is sometimes in a separate tab, and sometimes, you have to go to the Advanced tab. Then, right-click on your DVD player, and check the DMA checkbox. &lt;br /&gt;
** Upgrade to the latest driver for your video board.&lt;br /&gt;
** &#039;&#039;Linux:&#039;&#039; you can additionally upgrade your drivers to the latest XFree86 version. If supported, check that the xvideo plug-in is effectively used with:&lt;br /&gt;
**: % vlc -vvvv&lt;br /&gt;
&lt;br /&gt;
=== Audio and video are out of sync ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238571}}&lt;br /&gt;
* If you are [[transcoding]] a file, use the [[audio-sync]] option.&lt;br /&gt;
* You can manually set the audio offset while playing (so you can put the audio back in sync). The default keys to increase/decrease the offset are Ctrl+K and Ctrl+L in Windows, and f and g in Mac.&lt;br /&gt;
* &#039;&#039;Linux/Unix:&#039;&#039; Try using another audio output plugin and, under Unix, kill esd or artsd if they are running. If the problem is due to the input file, have a look at the &amp;quot;Audio desynchronization compensation&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
== Problems with Streaming ==&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;main input error: no suitable access module for `rtsp://...&#039;&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
vlc needs livemedia from &#039;&#039;&#039;live555.com&#039;&#039;&#039; to read rtsp stream this way. &lt;br /&gt;
&lt;br /&gt;
You can check you have it by :&lt;br /&gt;
&lt;br /&gt;
   vlc -l | grep live&lt;br /&gt;
&lt;br /&gt;
It should read&lt;br /&gt;
&lt;br /&gt;
  livedotcom            live.com (RTSP/RTP/SDP) demuxer&lt;br /&gt;
  livedotcom            RTSP/RTP access and demux&lt;br /&gt;
&lt;br /&gt;
If not, you have to install &#039;&#039;&#039;livemedia&#039;&#039;&#039; and point your compilation to this lib directory :&lt;br /&gt;
&lt;br /&gt;
   ./configure &#039;&#039;&#039;--enable-livedotcom --with-livedotcom-tree=/usr/local/lib/live/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Streaming playlist continuously between files (sout-keep not working)===&lt;br /&gt;
&lt;br /&gt;
add the gather module to the sout chain, for example&lt;br /&gt;
    vlc *mpeg --sout-keep --sout &#039;#gather:transcode{plapla}:rtp{plapla}&#039;&lt;br /&gt;
&lt;br /&gt;
===Streaming 1 playlist item continuously and change input without stream break===&lt;br /&gt;
&lt;br /&gt;
you can use this kind of a vlm.conf file with the --sout-keep option&lt;br /&gt;
  new output1 broadcast enabled loop&lt;br /&gt;
  setup output1 input &amp;quot;inputfile1.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;inputfile2.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;/path/to/inputfile3.mpeg&amp;quot;&lt;br /&gt;
  setup output1 option sout-keep&lt;br /&gt;
  setup output1 option input-repeat=-1&lt;br /&gt;
  setup output1 output #gather:transcode{etc...}:std{plapla}&lt;br /&gt;
 &lt;br /&gt;
  control output1 play 2&lt;br /&gt;
&lt;br /&gt;
you then chan telnet into vlm and just command&lt;br /&gt;
  control output1 play &amp;lt;playlistnumber&amp;gt;&lt;br /&gt;
to change the streamed input.&lt;br /&gt;
&lt;br /&gt;
===Streaming to Windows Media Player===&lt;br /&gt;
&lt;br /&gt;
See [[Windows Media Player]] for details.&lt;br /&gt;
&lt;br /&gt;
== Problems converting between file formats (transcoding) ==&lt;br /&gt;
&lt;br /&gt;
=== Missing Audio and/or Video ===&lt;br /&gt;
&lt;br /&gt;
* Certain containers (aka muxers) can only hold certain types of video and audio - look at [http://www.videolan.org/streaming/features.html Streaming features]&lt;br /&gt;
&lt;br /&gt;
== Streaming/Transcoding Wizard ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Transcode / Save to file ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Partial Extract &amp;quot;From&amp;quot; &amp;quot;To&amp;quot; does not work, allone &amp;quot;To&amp;quot; don´t too.&lt;br /&gt;
: I&#039;ve tested it too with the 0.8.6c version, already specifying the time data in seconds, and this parameter has no effect.&lt;br /&gt;
&lt;br /&gt;
== VLC Crashes ==&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238592}}&lt;br /&gt;
* If VLC crashes, the following steps will help determine the cause.&lt;br /&gt;
** Increase the verbosity level (either in the preferences or with a -vvvv command line option) and look at the debug messages (in the terminal or in the Messages window).&lt;br /&gt;
* If you are convinced that it is a bug in VLC, have a look at the [http://www.videolan.org/support/bug-reporting.html bug reporting page].&lt;br /&gt;
&lt;br /&gt;
=== When using DirectShow (eg Webcam) ===&lt;br /&gt;
&lt;br /&gt;
{{forum|12394}}&lt;br /&gt;
* There was a bug a while back when you tried to stream using a directshow/webcam it would reboot the computer. The fix was to specify the resolution on the command line or in the &amp;quot;Advanced&amp;quot; section when opening the directshow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Problems ==&lt;br /&gt;
&lt;br /&gt;
=== I only want one VLC player! ===&lt;br /&gt;
&lt;br /&gt;
* To use the same VLC player for all the media files, go to Settings, Preferences, Advanced. The following options should give behavior similar to WMP: minimize # of threads, allow only one running instance, VLC is started from file association, allow only &amp;quot;on&amp;quot; running instance when started from file (typo in v0.8.5).&lt;br /&gt;
&lt;br /&gt;
=== Licensing, legal issues and logo use ===&lt;br /&gt;
&lt;br /&gt;
* Information on this is avaliable on the main videolan website, [http://videolan.org videolan.org]. Also read the [http://www.videolan.org/doc/faq/en/index.html#id238663 Legal concerns] section of the [http://www.videolan.org/doc/faq/en/index.html FAQ].&lt;br /&gt;
* This is a wiki site: it is editable by all, so it is best to check to official website.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Strange Behaviour ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238992}}&lt;br /&gt;
* The first thing to do is to reset the VLC preferences in the preferences dialog of the application and restart VLC. If VLC doesn&#039;t even start anymore, delete VLC&#039;s configuration file ([[#Configuration File|where is it?]]). Then restart VLC. If it does not get any better, read the rest of this page or FAQ page, or ask for help at the [[forum]].&lt;br /&gt;
&lt;br /&gt;
=== Subtitles Problem ===&lt;br /&gt;
&lt;br /&gt;
* In the File | Open File dialog, select &amp;quot;Use a subtitles file&amp;quot;, and enter both the video&#039;s filename and the video&#039;s subtitle filename.&lt;br /&gt;
* If you are having displaying the subtitles, the problem might be an encoding problem. Choose the right encoding for your language and it should fix your problem. You&#039;ll find the ISOs here: [http://alis.isoc.org/codage/iso8859/jeuxiso.en.htm]. Once you find a text encoding method that works well for you enter it in Preferences, Input / Codecs, Other codecs, Subtitles then press Save and restart VLC. Uncheck the &amp;quot;Formatted Subtitles&amp;quot; may help if the subtitles only display as little squares. If you have a specialized language like Hebrew, Arabic, Chinese or Japanese changing the font to a Unicode font will be helpful. For Polish subtitles choose CP 1250 ISO code.&lt;br /&gt;
&lt;br /&gt;
=== VLC hangs when opening Matroska (mkv) files ===&lt;br /&gt;
&lt;br /&gt;
* This might occur when using VLC to view an mkv file in a directory that has a large number of mkv files. (eg. in an Azureus download directory)&lt;br /&gt;
VLC will attempt to preload all the mkv files in the directory and will hang, especially if some mkv files are not fully downloaded yet (thus seem to be broken).&lt;br /&gt;
* The solution is to set the mkv option: --mkv-preload-local-dir to false&lt;br /&gt;
Preferences -&amp;gt; Input / Codecs -&amp;gt; Demuxers -&amp;gt; Matroska -&amp;gt; Preload Directory (uncheck the checkbox)&lt;br /&gt;
(See also http://wiki.videolan.org/Matroska)&lt;br /&gt;
&lt;br /&gt;
=== Coarse volume control ===&lt;br /&gt;
&lt;br /&gt;
Volume control, specially with Hotkeys, is too coarse.&lt;br /&gt;
*To have a finer volume control, try the following option on the command line:&lt;br /&gt;
 &amp;lt;code&amp;gt;--volume-step=1&amp;lt;/code&amp;gt;&lt;br /&gt;
:See also [[VLC command-line help]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17677</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17677"/>
		<updated>2010-11-18T13:00:51Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
== Compatibility issues ==&lt;br /&gt;
&lt;br /&gt;
If your input streams already matches the encoding that you desire for your output stream, then you don&#039;t have to transcode at all (just leave out the transcode settings on the command line, and it will thence not transcode).  In the GUI this is called &amp;quot;keep the original track&amp;quot; (I think).&lt;br /&gt;
&lt;br /&gt;
Note that when you decide your transcoding settings, only some container formats (muxers) can support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.  If your current format is incompatible with the muxer you desire, then you must transcode it to something compatible, or choose a different muxer.  If you choose an incompatible stream for a given muxer, it may silently fail.  You can look for error messages in the [[Basic_Troubleshooting|messages window]] to help you debug the failures.&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  &lt;br /&gt;
&lt;br /&gt;
See also {{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17675</id>
		<title>Documentation:Streaming HowTo/Receive and Save a Stream</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17675"/>
		<updated>2010-11-18T00:13:59Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Save a stream with VLC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
===Receive an unicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Receive a multicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://@239.255.12.42&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;239.255.12.42&#039;&#039;&#039; is the multicast IP address you want to join.&lt;br /&gt;
&lt;br /&gt;
===Receive an HTTP/FTP/MMS stream===&lt;br /&gt;
&lt;br /&gt;
Use one of the following command lines:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;http://example/stream.xyz&#039;&#039;&#039; is the HTTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv ftp://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;ftp://example/stream.xyz&#039;&#039;&#039; is the FTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039; is the MMS address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a RTP stream available through RTSP===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039; is the address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a stream described by an SDP file===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://server.example.org/stream.sdp&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Save a stream with VLC ==&lt;br /&gt;
&lt;br /&gt;
VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC&amp;amp;nbsp;: you can do it via the graphical interface (Media [menu] -&amp;amp;gt; streaming) or use the [http://www.howtogeek.com/howto/2686/how-to-copy-a-dvd-with-vlc-1.0/ record button], or you can add to the command line the following argument: &lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;--sout file/muxer:stream.xyz&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where: &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;muxer&#039;&#039;&#039; is one of the formats supported by VLC&#039;s stream output, i.e.&amp;amp;nbsp;: &lt;br /&gt;
**&#039;&#039;&#039;ogg&#039;&#039;&#039; for OGG format, &lt;br /&gt;
**&#039;&#039;&#039;ps&#039;&#039;&#039; MPEG2-PS format, &lt;br /&gt;
**&#039;&#039;&#039;ts&#039;&#039;&#039; for MPEG2-TS format. &lt;br /&gt;
*and &#039;&#039;&#039;stream.xyz&#039;&#039;&#039; is the name of the file you want to save the stream to, with the right extension.&lt;br /&gt;
&lt;br /&gt;
For example: --sout=file/ps:go.mpg &lt;br /&gt;
&lt;br /&gt;
This is short hand for the more verbose --sout=&amp;quot;#std{access=file,mux=ps,dst=go.mpg}&amp;quot; &lt;br /&gt;
&lt;br /&gt;
NB that you must choose a muxer that supports your stream type. See [[Transcode#Transcoding_with_the_Wizard]] &lt;br /&gt;
&lt;br /&gt;
It can also be quite helpful to look at the settings VLC uses when it records using its record button. For example, in the logs you might see something like this: &lt;br /&gt;
&lt;br /&gt;
...: Using record output `std{access=file,mux=&#039;ps&#039;,dst=&#039;C:\vlc-record-2010__E-.mpg&#039;}&#039; &lt;br /&gt;
&lt;br /&gt;
Which gives you a hint/clue as to how to record your current stream. In this case this would translate into --sout &amp;quot;#std{access=file... on the command line.&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with a set-top-box==&lt;br /&gt;
&lt;br /&gt;
Some set-top-boxes with Ethernet cards can receive MPEG2-TS streams over UDP and support multicast.&lt;br /&gt;
&lt;br /&gt;
Set-top-boxes known to work with VLC are :&lt;br /&gt;
*[http://www.pace.co.uk Pace] set top boxes. (Pace Micro DSL 4000)&lt;br /&gt;
*[http://www.aminocom.com Aminocom] set top boxes. (all the models with mpeg2)&lt;br /&gt;
*tuxia / gct-allwell (mpeg4 and mpeg2) sigma designs8174 chipset&lt;br /&gt;
*i3micro mood200 (mpeg4 and mpeg2 in transport streams)&lt;br /&gt;
* ps3 media server streams using VLC (or mencoder) to the PS3&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Crashdump&amp;diff=17655</id>
		<title>Crashdump</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Crashdump&amp;diff=17655"/>
		<updated>2010-11-17T20:34:25Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;crashdump&#039;&#039;&#039; is the file VLC&#039;s Windows builds generate when VLC crashes. It is stored to &#039;&#039;&#039;%appdata%\vlc&#039;&#039;&#039; folder and its content can be send to VLC server during next startup if you want that. Content of the file is something like this:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[version]&lt;br /&gt;
OS=6.0.6002.2.Service Pack 2&lt;br /&gt;
VLC=1.1.2 The Luggage&lt;br /&gt;
&lt;br /&gt;
[exceptions]&lt;br /&gt;
c0000005 at 6861e792&lt;br /&gt;
&lt;br /&gt;
[context]&lt;br /&gt;
EDI:00000000&lt;br /&gt;
ESI:0257c840&lt;br /&gt;
EBX:0000001e&lt;br /&gt;
EDX:00000008&lt;br /&gt;
ECX:00000018&lt;br /&gt;
EAX:ffffffe0&lt;br /&gt;
EBP:02f8cb00&lt;br /&gt;
EIP:6861e792&lt;br /&gt;
ESP:02f8cad8&lt;br /&gt;
&lt;br /&gt;
[stacktrace]&lt;br /&gt;
#EIP|base|module&lt;br /&gt;
6861e792|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
6862fe8f|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
6861cbfa|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
70b62590|C:\softa\vlc-1.1.2\plugins\libhotkeys_plugin.dll&lt;br /&gt;
686567db|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
68656b3e|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
68648dc5|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
686568a9|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
68656b3e|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
64032e5d|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
641faa20|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
6420f1f0|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
641d3a24|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
641dab80|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
6466f260|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
645df034|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
645e1255|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
644207fe|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
7789fd72|C:\Windows\system32\USER32.dll&lt;br /&gt;
7789fe4a|C:\Windows\system32\USER32.dll&lt;br /&gt;
778a018d|C:\Windows\system32\USER32.dll&lt;br /&gt;
778a022b|C:\Windows\system32\USER32.dll&lt;br /&gt;
6470c1ad|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
6441bb63|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
646feca6|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
646fee4b|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
646704c3|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
64023147|C:\softa\vlc-1.1.2\plugins\libqt4_plugin.dll&lt;br /&gt;
6866127a|C:\softa\vlc-1.1.2\libvlccore.dll&lt;br /&gt;
764a2599|C:\Windows\system32\msvcrt.dll&lt;br /&gt;
764a26b3|C:\Windows\system32\msvcrt.dll&lt;br /&gt;
765ad0e9|C:\Windows\system32\kernel32.dll&lt;br /&gt;
779e19bb|C:\Windows\system32\ntdll.dll&lt;br /&gt;
779e198e|C:\Windows\system32\ntdll.dll&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So crashdump doesn&#039;t reveal the played file or other programs you might be using. You can check the content of crashdump file with any text editor. &lt;br /&gt;
&lt;br /&gt;
File send operation is done via FTP, so if your firewall blocks FTP connections, then the crashdump cannot be send to VLC developers.&lt;br /&gt;
&lt;br /&gt;
See [[/Report_bugs#Mac_OS_X_users]] for OS X users.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17650</id>
		<title>OldFAQ</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=OldFAQ&amp;diff=17650"/>
		<updated>2010-11-17T20:17:58Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Error Messages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
Answers to some common problems people encounter with VLC. More help is available in the&lt;br /&gt;
* [http://www.videolan.org/doc/ Documentation]&lt;br /&gt;
* [http://www.videolan.org/doc/faq/en/videolan-faq-en.html FAQ]&lt;br /&gt;
* [[Forum]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing VLC ==&lt;br /&gt;
&lt;br /&gt;
=== On Mac OS 9 ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* Sorry, VLC will not work on OS 9, and probably never will. However, Mac OS X is supported - [[Unsupported|Find out Why]]&lt;br /&gt;
&lt;br /&gt;
=== Compiling VLC ===&lt;br /&gt;
&lt;br /&gt;
==== How do I compile VLC? ====&lt;br /&gt;
&lt;br /&gt;
* Look at [http://developers.videolan.org/vlc/ how to compile VLC]. There are pre-compiled (binary / executable) versions [http://www.videolan.org/vlc/ here].&lt;br /&gt;
&lt;br /&gt;
==== Mozilla Firefox Plugin ====&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Debian:&#039;&#039; All you need is to download the vlc plugin package - mozilla-plugin-vlc ([http://packages.debian.org/stable/graphics/mozilla-plugin-vlc stable release])&lt;br /&gt;
* &#039;&#039;All Linux:&#039;&#039; To make the firefox plugin with the vlc player, you will first need the Firefox Development package (from: [http://packages.ubuntu.com/breezy/devel/firefox-dev ubuntu] ...). Then, when you compile, run ./configure with --enable-mozilla, and if needed with --with-mozilla-sdk-path=&#039;&#039;/path_to_firefox_sdk&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;Missing header file ffmpeg/avcodec.h&amp;quot; and &amp;quot;Missing header file postproc/postprocess.h&amp;quot; Errors ====&lt;br /&gt;
&lt;br /&gt;
* Make sure that you have all the libraries you need.&lt;br /&gt;
** &#039;&#039;&#039;on ubuntu&#039;&#039;&#039;: &amp;quot;apt-get install libavcodec-dev libpostproc-dev&amp;quot; will install the needed files (worked on edgy).&lt;br /&gt;
* When you run ./configure for [[ffmpeg]], make sure that at least the following flags are set (descriptions of these avaliable from ./configure --help )&lt;br /&gt;
 ./configure --enable-shared --enable-shared-pp --enable-pp --enable-gpl&lt;br /&gt;
* The path of ffmpeg is not set. Check if you can locate the file &#039;&#039;&#039;libavcodec.pc&#039;&#039;&#039; on your computer, and export PKG_CONFIG_PATH to where you found it before running ./configure. For example&lt;br /&gt;
 export PKG_CONFIG_PATH=/home/you/ffmpeg/&lt;br /&gt;
&lt;br /&gt;
With vlc-086f, FFmpeg SVN-r13060, on Slamd64 12.0.0, some other changes must be made.  These are most likely due to changes in libpostproc.&lt;br /&gt;
&lt;br /&gt;
The ./configure flags for ffmpeg become&lt;br /&gt;
  ./configure --enable-postproc --enable-shared --enable-gpl&lt;br /&gt;
&lt;br /&gt;
Then you must set a symbolic link for postproc.  This took me a long time to spot.&lt;br /&gt;
&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)locate postprocess.h&lt;br /&gt;
 /usr/local/include/libpostproc/postprocess.h&lt;br /&gt;
 root @ svr (/usr/src/vlc-0.8.6f)cd /usr/local/include/&lt;br /&gt;
 root @ svr (/usr/local/include)ln -s libpostproc postproc&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;cc1: error: invalid option `tune=opteron&#039;&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* One user writes: &amp;quot;From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don&#039;t know if this is the correct way to proceed but was the only way for me to get results fast.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* This is not true on all versions of gcc.  Try to compile on your platform before making the above changes.&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)gcc --version&lt;br /&gt;
 gcc (GCC) 4.1.2&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)uname -a&lt;br /&gt;
 Linux p01 2.6.24.3 #2 SMP Tue Apr 8 12:01:03 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep tune= config.log&lt;br /&gt;
 configure:37114: checking whether gcc accepts -mtune=athlon64&lt;br /&gt;
 configure:37125: gcc -c -Wsign-compare -Wall  -pipe -mtune=athlon64  -DSYS_LINUX conftest.c &amp;gt;&amp;amp;5&lt;br /&gt;
&lt;br /&gt;
 root @ p01 (/usr/src/vlc-0.8.6f)grep cpu= config.log&lt;br /&gt;
 build_cpu=&#039;x86_64&#039;&lt;br /&gt;
 host_cpu=&#039;x86_64&#039;&lt;br /&gt;
 target_cpu=&#039;x86_64&#039;&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;/usr/bin/ld: cannot find -lX11&amp;quot; Error on 64-bit systems ====&lt;br /&gt;
&lt;br /&gt;
* In configure, there is an x_libraries variable there that is set to &amp;quot;/usr/X11R6/lib&amp;quot; (around line 16371). Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.&lt;br /&gt;
&lt;br /&gt;
==== &amp;quot;syntax error before &amp;quot;pthread_spinlock_t&amp;quot;&amp;quot; on debian-Etch or CentOS ====&lt;br /&gt;
&lt;br /&gt;
* If you have errors about &#039;&#039;pthread_spin*&#039;&#039; in the file &#039;&#039;vlc_threads_funcs.h&#039;&#039;, try this fix :&lt;br /&gt;
 su&lt;br /&gt;
 sed -e &#039;s/define\s*_POSIX_SPIN_LOCKS\s*/define _POSIX_SPIN_LOCKS -1 \/\/ wrong: /g&#039; -i /usr/include/bits/posix_opt.h&lt;br /&gt;
 exit&lt;br /&gt;
source : [http://forum.videolan.org/viewtopic.php?f=13&amp;amp;t=43930#p139570 this post] from Rémi Denis-Courmont.&lt;br /&gt;
&lt;br /&gt;
=== Installing Skins ===&lt;br /&gt;
&lt;br /&gt;
* Although all information is given on the [http://www.videolan.org/vlc/skins.php VLC Download skin site], you may miss the note to change preferences to &#039;&#039;skinnable interface&#039;&#039;. There is an [http://forum.videolan.org/viewtopic.php?p=85603#p85603 article on the forum] which describes the how-to. In short: there is a drop-down option (interface module) in the settings dialog (Interface &amp;amp;rarr; General) which defaults to &#039;&#039;Standard&#039;&#039;. Change this and restart.&lt;br /&gt;
&lt;br /&gt;
== Problems Starting VLC ==&lt;br /&gt;
&lt;br /&gt;
=== VLC does not launch on my Mac anymore. What to do? ===&lt;br /&gt;
&lt;br /&gt;
* Please have a look at the [[FAQ_on_MacOSX_only_issues|specific FAQ]], which covers multiple solutions to this issue.&lt;br /&gt;
&lt;br /&gt;
== Error Messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages can be viewed by selecting Messages from the Tools menu.&lt;br /&gt;
&lt;br /&gt;
=== main private error: no sout mux module matched &amp;quot;ts&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* This can be an error if &#039;&#039;&#039;libdvbpsi&#039;&#039;&#039; was not installed when vlc was compiled. To fix this error, install libdvbpsi; then re-compile vlc. [http://developers.videolan.org/libdvbpsi/ libdvbpsi]&lt;br /&gt;
&lt;br /&gt;
=== main dialogs provider error: no dialogs provider module matched &amp;quot;any&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* The solution is found in [http://forum.videolan.org/viewtopic.php?t=14733 the forum]&lt;br /&gt;
&lt;br /&gt;
== Problems playing types of files ==&lt;br /&gt;
&lt;br /&gt;
=== WMV files ===&lt;br /&gt;
&lt;br /&gt;
* Starting with VLC media player 0.8.6, the playback of WMV3-encoded videos is available on all platforms. Please note, that encrypted / DRM-protected video-clips still cannot be played. That is due to the nature of DRM and is not about to change, so please do not ask.&lt;br /&gt;
&lt;br /&gt;
=== Real Media files ===&lt;br /&gt;
&lt;br /&gt;
* Realmedia files (.rm, .rpm, etc) are proprietary (ie, copyrighted) file formats, created by RealNetworks. Because of this, VLC can&#039;t support them at present.&lt;br /&gt;
&lt;br /&gt;
=== QuickTime Files (.mov) ===&lt;br /&gt;
&lt;br /&gt;
* Mov file doesn&#039;t play, but plays ok in QuickTime&lt;br /&gt;
** open the url in QuickTime player&lt;br /&gt;
** let it decide which datarate is best for your connection&lt;br /&gt;
** let it play for a few seconds, then pause it&lt;br /&gt;
** open the stream info, copy the url&lt;br /&gt;
** open &amp;amp; save that one in VLC&lt;br /&gt;
&lt;br /&gt;
=== Flash Video Files (.flv) ===&lt;br /&gt;
&lt;br /&gt;
* Flash Video support has recently been added (provided through ffmpeg) - to view .flv files you will need version 0.8.4a. Download and install the latest version [http://www.videolan.org/vlc/ here].&lt;br /&gt;
* VLC still has problems with a few .flv files. If you have problems playing a file in VLC you might be able to change it to an avi using [[ffmpeg]]. See [[Fixing .flv to .avi with Ffmpeg]].&lt;br /&gt;
* VLC 0.8.6 provided enhanced Flash Video support on all platforms, so it is probably worth to update if you experience problems with prior releases.&lt;br /&gt;
&lt;br /&gt;
=== Other Files ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238663}}&lt;br /&gt;
* Make sure that VLC supports that file - look at the [http://www.videolan.org/vlc/features.html list of supposted formats]&lt;br /&gt;
&lt;br /&gt;
* Make sure that the file isn&#039;t corrupted&lt;br /&gt;
&lt;br /&gt;
== VLC and Other Programs ==&lt;br /&gt;
&lt;br /&gt;
=== AMR ===&lt;br /&gt;
&lt;br /&gt;
* To use [http://en.wikipedia.org/wiki/Adaptive_Multi-Rate AMR], you&#039;ll need to compile vlc and ffmpeg with amr support yourself. This is because the amr license is not compatible with the vlc license.&lt;br /&gt;
&lt;br /&gt;
=== ratDVD ===&lt;br /&gt;
&lt;br /&gt;
* VLC does not support [http://en.wikipedia.org/wiki/RatDVD ratDVD] and is not going to be, both for political and technical reasons.&lt;br /&gt;
&lt;br /&gt;
== Problems Playing DVDs ==&lt;br /&gt;
&lt;br /&gt;
===Unable to play any DVDs===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239006}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; To play DVDs with VLC in linux, you need to install the libdvdcss package&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure you have access rigths to your DVD player. In linux, you can use chmod to edit access rights to your DVD block device:&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; chmod 666 /dev/dvd&lt;br /&gt;
** The videolan FAQ seems to suggest you need write access to this device - is this true? If you know, please edit this entry.&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; Make sure VLC knows where your DVD drive is located (/dev/dvd usually).  Go to Settings | Preferences | Input/Codecs | General and under &amp;quot;Default devices&amp;quot; make sure your dvd drive path is entered in the &amp;quot;Default DVD&amp;quot; box.  When you go to open a DVD, you should see something like &amp;quot;dvd:///dev/dvd&amp;quot; as the [[media resource locator]] in the &amp;quot;Open:&amp;quot; box near the top of the Open dialog.&lt;br /&gt;
&lt;br /&gt;
=== Playing DVDs from other Region Codes ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|239426}}&lt;br /&gt;
* The ability to play DVDs from all regions depends mostly on your DVD drive, and testing it is usually the quickest way to find out if your DVD drive can do it. Most newer DVD drives are RPC2 drives, which don&#039;t allow raw access to the drive untill the drive firmware has done a regioncheck. VLC uses libdvdcss and it needs raw access to the DVD drive to crack the encryption key. So with these drives it is impossible to circumvent the region protection. (This goes for all software. You will need to flash your drives firmware, but sometimes there is no alternate firmware available for your drive). On other RPC2 drives that DO allow raw access, it might take VLC a long time to crack the key. So just pop the disc in your drive and try it out, while you get a coffee. RPC1 drives should &#039;always&#039; work regardless of the regioncode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Poor Quality Video and Audio ==&lt;br /&gt;
&lt;br /&gt;
=== The video runs but the picture is distorted ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238431}}&lt;br /&gt;
* &#039;&#039;Linux:&#039;&#039; There is probably a problem with the output layer. There are several ways of troubleshooting it.&lt;br /&gt;
** First, try with another output plugin, for instance:&lt;br /&gt;
**: % vlc -V sdl&lt;br /&gt;
**: % vlc -V x11&lt;br /&gt;
** Second, change your screen depth and/or definition. It quite often helps.&lt;br /&gt;
** Lastly, if running Unix, have a look at your XFree86 video driver. &lt;br /&gt;
&lt;br /&gt;
=== Video is choppy ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238474}}&lt;br /&gt;
* Your system may be too slow to decode all pictures. Sometimes, your CPU (computer) really isn&#039;t fast enough, but often the situation can be improved by changing your system configuration to be a bit kinder to VLC.&lt;br /&gt;
** Quit other programs running in the background&lt;br /&gt;
** Turn on DMA on your DVD device:&lt;br /&gt;
*** &#039;&#039;Linux:&#039;&#039;&lt;br /&gt;
***: &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; hdparm -d1 /dev/dvd&lt;br /&gt;
*** &#039;&#039;Windows:&#039;&#039; go to the System section of the control panel, and go to the Hardware manager (it is sometimes in a separate tab, and sometimes, you have to go to the Advanced tab. Then, right-click on your DVD player, and check the DMA checkbox. &lt;br /&gt;
** Upgrade to the latest driver for your video board.&lt;br /&gt;
** &#039;&#039;Linux:&#039;&#039; you can additionally upgrade your drivers to the latest XFree86 version. If supported, check that the xvideo plug-in is effectively used with:&lt;br /&gt;
**: % vlc -vvvv&lt;br /&gt;
&lt;br /&gt;
=== Audio and video are out of sync ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238571}}&lt;br /&gt;
* If you are [[transcoding]] a file, use the [[audio-sync]] option.&lt;br /&gt;
* You can manually set the audio offset while playing (so you can put the audio back in sync). The default keys to increase/decrease the offset are Ctrl+K and Ctrl+L in Windows, and f and g in Mac.&lt;br /&gt;
* &#039;&#039;Linux/Unix:&#039;&#039; Try using another audio output plugin and, under Unix, kill esd or artsd if they are running. If the problem is due to the input file, have a look at the &amp;quot;Audio desynchronization compensation&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
== Problems with Streaming ==&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;main input error: no suitable access module for `rtsp://...&#039;&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
vlc needs livemedia from &#039;&#039;&#039;live555.com&#039;&#039;&#039; to read rtsp stream this way. &lt;br /&gt;
&lt;br /&gt;
You can check you have it by :&lt;br /&gt;
&lt;br /&gt;
   vlc -l | grep live&lt;br /&gt;
&lt;br /&gt;
It should read&lt;br /&gt;
&lt;br /&gt;
  livedotcom            live.com (RTSP/RTP/SDP) demuxer&lt;br /&gt;
  livedotcom            RTSP/RTP access and demux&lt;br /&gt;
&lt;br /&gt;
If not, you have to install &#039;&#039;&#039;livemedia&#039;&#039;&#039; and point your compilation to this lib directory :&lt;br /&gt;
&lt;br /&gt;
   ./configure &#039;&#039;&#039;--enable-livedotcom --with-livedotcom-tree=/usr/local/lib/live/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Streaming playlist continuously between files (sout-keep not working)===&lt;br /&gt;
&lt;br /&gt;
add the gather module to the sout chain, for example&lt;br /&gt;
    vlc *mpeg --sout-keep --sout &#039;#gather:transcode{plapla}:rtp{plapla}&#039;&lt;br /&gt;
&lt;br /&gt;
===Streaming 1 playlist item continuously and change input without stream break===&lt;br /&gt;
&lt;br /&gt;
you can use this kind of a vlm.conf file with the --sout-keep option&lt;br /&gt;
  new output1 broadcast enabled loop&lt;br /&gt;
  setup output1 input &amp;quot;inputfile1.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;inputfile2.mpeg&amp;quot;&lt;br /&gt;
  setup output1 input &amp;quot;/path/to/inputfile3.mpeg&amp;quot;&lt;br /&gt;
  setup output1 option sout-keep&lt;br /&gt;
  setup output1 option input-repeat=-1&lt;br /&gt;
  setup output1 output #gather:transcode{etc...}:std{plapla}&lt;br /&gt;
 &lt;br /&gt;
  control output1 play 2&lt;br /&gt;
&lt;br /&gt;
you then chan telnet into vlm and just command&lt;br /&gt;
  control output1 play &amp;lt;playlistnumber&amp;gt;&lt;br /&gt;
to change the streamed input.&lt;br /&gt;
&lt;br /&gt;
===Streaming to Windows Media Player===&lt;br /&gt;
&lt;br /&gt;
See [[Windows Media Player]] for details.&lt;br /&gt;
&lt;br /&gt;
== Problems converting between file formats (transcoding) ==&lt;br /&gt;
&lt;br /&gt;
=== Missing Audio and/or Video ===&lt;br /&gt;
&lt;br /&gt;
* Certain containers (aka muxers) can only hold certain types of video and audio - look at [http://www.videolan.org/streaming/features.html Streaming features]&lt;br /&gt;
&lt;br /&gt;
== Streaming/Transcoding Wizard ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Transcode / Save to file ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Partial Extract &amp;quot;From&amp;quot; &amp;quot;To&amp;quot; does not work, allone &amp;quot;To&amp;quot; don´t too.&lt;br /&gt;
: I&#039;ve tested it too with the 0.8.6c version, already specifying the time data in seconds, and this parameter has no effect.&lt;br /&gt;
&lt;br /&gt;
== VLC Crashes ==&lt;br /&gt;
&lt;br /&gt;
=== General ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238592}}&lt;br /&gt;
* If VLC crashes, the following steps will help determine the cause.&lt;br /&gt;
** Increase the verbosity level (either in the preferences or with a -vvvv command line option) and look at the debug messages (in the terminal or in the Messages window).&lt;br /&gt;
* If you are convinced that it is a bug in VLC, have a look at the [http://www.videolan.org/support/bug-reporting.html bug reporting page].&lt;br /&gt;
&lt;br /&gt;
=== When using DirectShow (eg Webcam) ===&lt;br /&gt;
&lt;br /&gt;
{{forum|12394}}&lt;br /&gt;
* There was a bug a while back when you tried to stream using a directshow/webcam it would reboot the computer. The fix was to specify the resolution on the command line or in the &amp;quot;Advanced&amp;quot; section when opening the directshow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Problems ==&lt;br /&gt;
&lt;br /&gt;
=== I only want one VLC player! ===&lt;br /&gt;
&lt;br /&gt;
* To use the same VLC player for all the media files, go to Settings, Preferences, Advanced. The following options should give behavior similar to WMP: minimize # of threads, allow only one running instance, VLC is started from file association, allow only &amp;quot;on&amp;quot; running instance when started from file (typo in v0.8.5).&lt;br /&gt;
&lt;br /&gt;
=== Licensing, legal issues and logo use ===&lt;br /&gt;
&lt;br /&gt;
* Information on this is avaliable on the main videolan website, [http://videolan.org videolan.org]. Also read the [http://www.videolan.org/doc/faq/en/index.html#id238663 Legal concerns] section of the [http://www.videolan.org/doc/faq/en/index.html FAQ].&lt;br /&gt;
* This is a wiki site: it is editable by all, so it is best to check to official website.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Strange Behaviour ===&lt;br /&gt;
&lt;br /&gt;
{{faqlink|238992}}&lt;br /&gt;
* The first thing to do is to reset the VLC preferences in the preferences dialog of the application and restart VLC. If VLC doesn&#039;t even start anymore, delete VLC&#039;s configuration file ([[#Configuration File|where is it?]]). Then restart VLC. If it does not get any better, read the rest of this page or FAQ page, or ask for help at the [[forum]].&lt;br /&gt;
&lt;br /&gt;
=== Subtitles Problem ===&lt;br /&gt;
&lt;br /&gt;
* In the File | Open File dialog, select &amp;quot;Use a subtitles file&amp;quot;, and enter both the video&#039;s filename and the video&#039;s subtitle filename.&lt;br /&gt;
* If you are having displaying the subtitles, the problem might be an encoding problem. Choose the right encoding for your language and it should fix your problem. You&#039;ll find the ISOs here: [http://alis.isoc.org/codage/iso8859/jeuxiso.en.htm]. Once you find a text encoding method that works well for you enter it in Preferences, Input / Codecs, Other codecs, Subtitles then press Save and restart VLC. Uncheck the &amp;quot;Formatted Subtitles&amp;quot; may help if the subtitles only display as little squares. If you have a specialized language like Hebrew, Arabic, Chinese or Japanese changing the font to a Unicode font will be helpful. For Polish subtitles choose CP 1250 ISO code.&lt;br /&gt;
&lt;br /&gt;
=== VLC hangs when opening Matroska (mkv) files ===&lt;br /&gt;
&lt;br /&gt;
* This might occur when using VLC to view an mkv file in a directory that has a large number of mkv files. (eg. in an Azureus download directory)&lt;br /&gt;
VLC will attempt to preload all the mkv files in the directory and will hang, especially if some mkv files are not fully downloaded yet (thus seem to be broken).&lt;br /&gt;
* The solution is to set the mkv option: --mkv-preload-local-dir to false&lt;br /&gt;
Preferences -&amp;gt; Input / Codecs -&amp;gt; Demuxers -&amp;gt; Matroska -&amp;gt; Preload Directory (uncheck the checkbox)&lt;br /&gt;
(See also http://wiki.videolan.org/Matroska)&lt;br /&gt;
&lt;br /&gt;
=== Coarse volume control ===&lt;br /&gt;
&lt;br /&gt;
Volume control, specially with Hotkeys, is too coarse.&lt;br /&gt;
*To have a finer volume control, try the following option on the command line:&lt;br /&gt;
 &amp;lt;code&amp;gt;--volume-step=1&amp;lt;/code&amp;gt;&lt;br /&gt;
:See also [[VLC command-line help]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17649</id>
		<title>VideoLan VideoConference</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VideoLan_VideoConference&amp;diff=17649"/>
		<updated>2010-11-17T13:59:31Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;VideoLan VideoConference&#039;&#039;&#039; (VLVC) is a plugin for the [[VLC media player]].It adds videoconferencing functions, it can connect from 2 to 10 people so that they can see and hear each others with the help of a computer and a webcam. This software is free and is supported on [[Windows]], [[Linux]] and [[Mac OS]]. It can be downloaded on the Internet and it aims to be used by private individuals and professionals as well.&lt;br /&gt;
&lt;br /&gt;
It received good reviews [http://forums.whirlpool.net.au/forum-replies-archive.cfm/1081016.html].&lt;br /&gt;
&lt;br /&gt;
==Modes==&lt;br /&gt;
VLVC will allow four kinds of videoconferencing modes, thus covering most of the users&#039; needs.&lt;br /&gt;
* Chatroom mode : All users can hear and see each others, everybody can speak freely.&lt;br /&gt;
* Conference mode : This mode has one single user, the server, who transmits his sound and video streams to all other users. In other words, he is the only one who can be heard and seen.&lt;br /&gt;
* Amphitheatre mode : This mode is still under development. It is an advanced version of the Conference mode that allows the administrator (the server) to grant and revoke the right of speech to one single user at a time.&lt;br /&gt;
* Meeting mode : This mode is under development too. It is similar to the Amphitheatre mode, but it can grant and revoke the rights of speech to multiple users at a time.&lt;br /&gt;
&lt;br /&gt;
==The team==&lt;br /&gt;
The project was created in 2003 by a group of students of Epitech, it was then taken over in 2005. Considering the good results of VLVC as a school project, new students have joined the team to take over the work.&lt;br /&gt;
&lt;br /&gt;
===Founders of the project===&lt;br /&gt;
* Arnaud Deredec : Former project leader&lt;br /&gt;
* Julien Arnaud : Former communication supervisor&lt;br /&gt;
* Julien Cupillard : Former development supervisor&lt;br /&gt;
* Florian Gustin : Former member in charge of external relationships&lt;br /&gt;
* Guillaume Martin : Former system administrator&lt;br /&gt;
* Floren Nguyen : Former technical developer&lt;br /&gt;
* Thomas Delon : Project leader&lt;br /&gt;
* Romain Lavocat : Communication supervisor&lt;br /&gt;
* William Lienard : Development supervisor&lt;br /&gt;
* Julien Passeri : Member in charge of external relationships&lt;br /&gt;
* Sylvestre Ho Tam Chay : Technical developer&lt;br /&gt;
* David Yu : Technical developer&lt;br /&gt;
* Mathavarajan Sugumaran : Technical developer&lt;br /&gt;
&lt;br /&gt;
==See also ==&lt;br /&gt;
&lt;br /&gt;
* [[VideoLAN]]&lt;br /&gt;
* [[VLC media player]]&lt;br /&gt;
&lt;br /&gt;
VLM: (a stream scheduler) within VLC.&lt;br /&gt;
&lt;br /&gt;
Also this might be helpful: http://wiki.videolan.org/Mosaic&lt;br /&gt;
&lt;br /&gt;
 *Current status of this project is unknown. There appears to be some code and documentation here [http://sourceforge.net/projects/vlvc/] [http://vlvc.svn.sourceforge.net/viewvc/vlvc/].  Last work apparently done in 2007.  Note that the downloadable stuff seems based on a more recent SVN version than their repository does?&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Stream_to_a_website&amp;diff=17648</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=17648"/>
		<updated>2010-11-17T13:12:20Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* 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.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.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>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17647</id>
		<title>Documentation:Streaming HowTo/Receive and Save a Stream</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17647"/>
		<updated>2010-11-17T13:06:35Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: note long hand&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
===Receive an unicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Receive a multicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://@239.255.12.42&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;239.255.12.42&#039;&#039;&#039; is the multicast IP address you want to join.&lt;br /&gt;
&lt;br /&gt;
===Receive an HTTP/FTP/MMS stream===&lt;br /&gt;
&lt;br /&gt;
Use one of the following command lines:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;http://example/stream.xyz&#039;&#039;&#039; is the HTTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv ftp://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;ftp://example/stream.xyz&#039;&#039;&#039; is the FTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039; is the MMS address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a RTP stream available through RTSP===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039; is the address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a stream described by an SDP file===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://server.example.org/stream.sdp&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Save a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC : you can do it via the graphical interface, or you can add to the command line the following argument:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;--sout file/muxer:stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;muxer&#039;&#039;&#039; is one of the formats supported by VLC&#039;s stream output, i.e. :&lt;br /&gt;
**&#039;&#039;&#039;ogg&#039;&#039;&#039; for OGG format,&lt;br /&gt;
**&#039;&#039;&#039;ps&#039;&#039;&#039; MPEG2-PS format,&lt;br /&gt;
**&#039;&#039;&#039;ts&#039;&#039;&#039; for MPEG2-TS format.&lt;br /&gt;
* and &#039;&#039;&#039;stream.xyz&#039;&#039;&#039; is the name of the file you want to save the stream to, with the right extension.&lt;br /&gt;
&lt;br /&gt;
For example: --sout=file/ps:go.mpg&lt;br /&gt;
&lt;br /&gt;
This is short hand for the more verbose --sout=&amp;quot;#std{access=file,mux=ps,dst=go.mpg}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
NB that you must choose a muxer that supports your stream type.  See [[Transcode#Transcoding_with_the_Wizard]]&lt;br /&gt;
&lt;br /&gt;
It can also be quite helpful to look at the settings VLC uses when it records using its record button.&lt;br /&gt;
For example, in the logs you might see something like this:&lt;br /&gt;
&lt;br /&gt;
...: Using record output `std{access=file,mux=&#039;ps&#039;,dst=&#039;C:\vlc-record-2010__E-.mpg&#039;}&#039;&lt;br /&gt;
&lt;br /&gt;
Which gives you a hint/clue as to how to record your current stream.  In this case this would translate into  --sout &amp;quot;#std{access=file... on the command line.&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with a set-top-box==&lt;br /&gt;
&lt;br /&gt;
Some set-top-boxes with Ethernet cards can receive MPEG2-TS streams over UDP and support multicast.&lt;br /&gt;
&lt;br /&gt;
Set-top-boxes known to work with VLC are :&lt;br /&gt;
*[http://www.pace.co.uk Pace] set top boxes. (Pace Micro DSL 4000)&lt;br /&gt;
*[http://www.aminocom.com Aminocom] set top boxes. (all the models with mpeg2)&lt;br /&gt;
*tuxia / gct-allwell (mpeg4 and mpeg2) sigma designs8174 chipset&lt;br /&gt;
*i3micro mood200 (mpeg4 and mpeg2 in transport streams)&lt;br /&gt;
* ps3 media server streams using VLC (or mencoder) to the PS3&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17646</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17646"/>
		<updated>2010-11-17T13:05:11Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Compatibility issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  &lt;br /&gt;
&lt;br /&gt;
=== Compatibility issues ===&lt;br /&gt;
&lt;br /&gt;
Note however, that only some container formats (muxers) can only support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.  If your current format is incompatible with the muxer then you must transcode it to something compatible, or choose a different muxer.  If you choose an incompatible stream for a given muxer, it will silently fail.  You can look for error messages in the messages window to help you debug the failure.  If your stream is already compatible with the mux you desire then you don&#039;t necessarily have to transcode it at all, but can just &amp;quot;keep the original track&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17645</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17645"/>
		<updated>2010-11-17T13:00:48Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* mux compatibility */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  &lt;br /&gt;
&lt;br /&gt;
=== Compatibility issues ===&lt;br /&gt;
&lt;br /&gt;
Note however, that only some container formats (muxes) can only support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.  If you choose an incompatible video codec for a given mux, it will silently fail, though you can look for error messages in the messages window to help you debug.  If your stream is already compatible with the mux you desire then you don&#039;t have to transcode it at all, but can just &amp;quot;keep the original track&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17644</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17644"/>
		<updated>2010-11-17T12:59:29Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* = mux compatibility */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  &lt;br /&gt;
&lt;br /&gt;
=== mux compatibility ===&lt;br /&gt;
Note however, that only some container formats (muxes) can only support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.  If you choose an incompatible option it will silently fail, though you can look for error messages in the messages window to help you debug.  If your stream is already compatible with the mux you desire then you don&#039;t have to transcode it at all, but can just &amp;quot;keep the original track&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17643</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17643"/>
		<updated>2010-11-17T12:59:14Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Transcoding with the Wizard */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  &lt;br /&gt;
&lt;br /&gt;
=== mux compatibility ==&lt;br /&gt;
Note however, that only some container formats (muxes) can only support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.  If you choose an incompatible option it will silently fail, though you can look for error messages in the messages window to help you debug.  If your stream is already compatible with the mux you desire then you don&#039;t have to transcode it at all, but can just &amp;quot;keep the original track&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17642</id>
		<title>How to merge and transcode multiple videos</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17642"/>
		<updated>2010-11-17T12:52:14Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: note moved&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Moved to [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=17641</id>
		<title>VLC HowTo/Merge videos together</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=17641"/>
		<updated>2010-11-17T12:51:27Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Merge &amp;amp; Transcode */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Merge &amp;amp; Transcode==&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged into a single output file, the general way is this (no transcoding is necessary if all streams match):&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc file1.ps file2.ps file3.ps --sout &amp;quot;#gather:std{access=file,mux=ts,dst=all.ts}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
NB that whenever you use sout, your video and audio codecs must &amp;quot;be appropriate&amp;quot; for the mux you use (in this case, ps works with a ts mux, so we&#039;re ok). See [[Transcode#Transcoding_with_the_Wizard]]&lt;br /&gt;
&lt;br /&gt;
If you want to write your files out to a mux that doesn&#039;t support the current audio or video encoding, or if you are wanting to join streams that do not have matching video/audio, then it is recommended to transcode as well.  Here is an example.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;&amp;quot;PATH_TO_VLC&amp;quot; -vvv FILE1.EXT FILE2.EXT FILE3.EXT ETC.ETC --sout-keep --sout=#gather:transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.mpg} --sout-all&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next edit the path to vlc, input files, and transcode peramiters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
See also [[Documentation:Modules/gather]]&lt;br /&gt;
&lt;br /&gt;
Or you can use file appending:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3  vlc://quit --sout-file-append --sout=file/ps:go.ps&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Non Interactive Mode==&lt;br /&gt;
&lt;br /&gt;
To do any of this in &amp;quot;non interactive&amp;quot; mode, add &#039;&#039;&#039;-I dummy&#039;&#039;&#039;  and also &amp;quot;vlc://quit&amp;quot; to the end of your list of inputs.  See [[Transcode]] for more detail.&lt;br /&gt;
&lt;br /&gt;
==Other options==&lt;br /&gt;
&lt;br /&gt;
Overall, none of the ways VLC offers to combine streams appears to merge them with correct time signatures&amp;lt;ref&amp;gt; even when replayed in VLC (causing seeking errors), so a non VLC option might work better.  Please update if you find one.  Straight concatenation works at times. See also https://spreadsheets.google.com/ccc?key=0AjWmZ0umsuZHdHNzZVhuMTkxTHdYbUdCQzF3cE51Snc&amp;amp;hl=en for a list of several various 3rd party &amp;quot;video joining&amp;quot; utilities.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=17640</id>
		<title>VLC HowTo/Merge videos together</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=17640"/>
		<updated>2010-11-17T12:48:46Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: cleanup&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Merge &amp;amp; Transcode==&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged into a single output file, the general way is this (no transcoding is necessary if all streams match):&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc file1.ps file2.ps file3.ps --sout &amp;quot;#gather:std{access=file,mux=ts,dst=all.ts}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
NB that whenever you use sout, your video and audio codecs must &amp;quot;be appropriate&amp;quot; for the mux you use (in this case, ps works with a ts mux, so we&#039;re ok).&lt;br /&gt;
&lt;br /&gt;
If you want to write your files out to a mux that doesn&#039;t support the current audio or video encoding, or if you are wanting to join streams that do not have matching video/audio, then it is recommended to transcode as well.  Here is an example.&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;&amp;quot;PATH_TO_VLC&amp;quot; -vvv FILE1.EXT FILE2.EXT FILE3.EXT ETC.ETC --sout-keep --sout=#gather:transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.mpg} --sout-all&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next edit the path to vlc, input files, and transcode peramiters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
See also [[Documentation:Modules/gather]]&lt;br /&gt;
&lt;br /&gt;
Or you can use file appending:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3  vlc://quit --sout-file-append --sout=file/ps:go.ps&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Non Interactive Mode==&lt;br /&gt;
&lt;br /&gt;
To do any of this in &amp;quot;non interactive&amp;quot; mode, add &#039;&#039;&#039;-I dummy&#039;&#039;&#039;  and also &amp;quot;vlc://quit&amp;quot; to the end of your list of inputs.  See [[Transcode]] for more detail.&lt;br /&gt;
&lt;br /&gt;
==Other options==&lt;br /&gt;
&lt;br /&gt;
Overall, none of the ways VLC offers to combine streams appears to merge them with correct time signatures&amp;lt;ref&amp;gt; even when replayed in VLC (causing seeking errors), so a non VLC option might work better.  Please update if you find one.  Straight concatenation works at times. See also https://spreadsheets.google.com/ccc?key=0AjWmZ0umsuZHdHNzZVhuMTkxTHdYbUdCQzF3cE51Snc&amp;amp;hl=en for a list of several various 3rd party &amp;quot;video joining&amp;quot; utilities.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_a_File&amp;diff=17639</id>
		<title>Documentation:Streaming HowTo/Stream a File</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Stream_a_File&amp;diff=17639"/>
		<updated>2010-11-17T11:46:34Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Stream a file with VLC==&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12&#039;&#039;&#039;&lt;br /&gt;
where:&lt;br /&gt;
* &#039;&#039;&#039;video1.xyz&#039;&#039;&#039; is the file you want to stream,&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;
If you want to stream the file continuously, add the &#039;&#039;&#039;--loop&#039;&#039;&#039; option.&lt;br /&gt;
&lt;br /&gt;
Of course, you can add more options (like transcoding, or streaming to a TCP port, etc.), but this should get you started.&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17637</id>
		<title>How to merge and transcode multiple videos</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17637"/>
		<updated>2010-11-17T01:35:21Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Merge &amp;amp; Transcode in Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Merge &amp;amp; Transcode in Windows==&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file create a batch script with the following line in it:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 C:\Program Files\VideoLAN\vlc\vlc.exe -vvv pirate1.avi pirate2.avi  --sout-keep&lt;br /&gt;
 --sout=#gather:transcode{vcodec=divx3,vb=1024,scale=1,acodec=mp3,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.avi} --sout-all&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PATH_TO_VLC&#039;&#039;&#039; is &#039;&#039;vlc&#039;&#039; on linux, &#039;&#039;C:\Program Files\VideoLAN\vlc\vlc.exe&#039;&#039; on Windows, but that can change depending on the installation.&lt;br /&gt;
&lt;br /&gt;
Edit the path to vlc, input files, and transcode parameters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
If all streams match, no transcoding is necessary.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;vlc file1.ps file2.ps --sout file/ts:out.ts --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
See also [[Documentation:Modules/gather]]&lt;br /&gt;
&lt;br /&gt;
You could also append them to a same file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;vlc file1.ps file2.ps file3.ps.3  --sout-file-append --sout=file/ps:go.ps&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17636</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17636"/>
		<updated>2010-11-16T23:20:18Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Transcoding with the Wizard */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format.  Note however, that only some container formats can support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.  If you choose an incompatible option it will silently fail, though you can look for error messages in the log window.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=17635</id>
		<title>VLC HowTo/Merge videos together</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=17635"/>
		<updated>2010-11-16T23:08:24Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: note many more ways to concat a file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Merge &amp;amp; Transcode in Windows==&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file create a batch script with the following line in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;PATH_TO_VLC&amp;quot; -vvv FILE1.EXT FILE2.EXT FILE3.EXT ETC.ETC --sout-keep --sout=#gather:transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.mpg} --sout-all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next edit the path to vlc, input files, and transcode peramiters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
No transcoding is necessary if all streams match&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3 --sout &amp;quot;#gather:std{access=file,mux=ts,dst=out.ts}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Or you can use file appending&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3  vlc://quit --sout-file-append --sout=file/ps:go.ps&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To do this in &amp;quot;non interactive&amp;quot; mode, add &#039;&#039;&#039;-I dummy&#039;&#039;&#039;  and also &amp;quot;vlc://quit&amp;quot; to the end of your list of inputs.  See [[Transcode]] for more detail.&lt;br /&gt;
&lt;br /&gt;
Overall, none of the ways VLC offers to combine streams seems to merge them with correct times when replayed in VLC, so a non VLC option might work better.  Please update if you find one.  Straight concatenation works at times. See also https://spreadsheets.google.com/ccc?key=0AjWmZ0umsuZHdHNzZVhuMTkxTHdYbUdCQzF3cE51Snc&amp;amp;hl=en for a list of various &amp;quot;video joining&amp;quot; utilities.&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17634</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17634"/>
		<updated>2010-11-16T23:04:10Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Non-Interactive Merge/Transcode (Windows) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format. Only some container formats can support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file, see [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Modules/gather&amp;diff=17633</id>
		<title>Documentation:Modules/gather</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Modules/gather&amp;diff=17633"/>
		<updated>2010-11-16T22:57:25Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module|name=gather|type=Stream output|description=Recyle video and audio elementary streams when possible}}&lt;br /&gt;
&lt;br /&gt;
Makes it possible to stream a playlist without any noticeable interruption on input change on the client side.&lt;br /&gt;
The audio and video streams must all have the same characteristics (codecs, bitrate, dimensions, etc.).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 % &#039;&#039;&#039;vlc playlist.m3u --sout &amp;quot;#gather:std{access=http,mux=asfh,dst=:8080}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If your playlist items use different codecs or have different sizes, it is advised to [[Documentation:Modules/transcode|transcode]]. For example:&lt;br /&gt;
 % &#039;&#039;&#039;vlc playlist.m3u --sout &amp;quot;#transcode{vcodec=DIV3,vb=512,width=640,height=480,acodec=mp3,ab=128,samplerate=44100,channels=2}:gather:std{access=http,mux=asfh,dst=:8080}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is unclear whether using --sout-keep automatically sets gather automatically or not http://forum.videolan.org/viewtopic.php?f=14&amp;amp;t=80695&lt;br /&gt;
&lt;br /&gt;
See also [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
{{Stub}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17632</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=17632"/>
		<updated>2010-11-16T22:56:39Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Non-Interactive Merge/Transcode (Windows) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Transcoding is the process of taking a video file and changing it to a different format or bitrate.&lt;br /&gt;
&lt;br /&gt;
Transcoding in VLC copies the movie to a new file in a different format, so you end up with both  the original and new files. This means you need to have enough space on your hard drive to store this extra file. You should also have a reasonably fast computer, as transcoding can be very slow.&lt;br /&gt;
&lt;br /&gt;
In VLC, transcoding is exactly the same as [[streaming]] accross a network, except that the output is sent to a file instead of a network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Wizard ==&lt;br /&gt;
&lt;br /&gt;
VLC includes a transcoding and streaming wizard. To transcode a file, just select the transcode option. You will then be asked what format to convert to: you can give a video [[codec]], an audio codec and a [[container]] format. Only some container formats can support some codecs - look [http://www.videolan.org/streaming/features.html here] to see what supports what.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch02.html}}&lt;br /&gt;
&lt;br /&gt;
== Transcoding with the Command Prompt ==&lt;br /&gt;
&lt;br /&gt;
The most flexible way to transcode with vlc is using a [[command prompt]] to start vlc. Transcoding works the same as [[streaming]]. For example, the following command changes an [[asf]] file to an [[MPEG-2]] file: &lt;br /&gt;
:vlc &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039;&lt;br /&gt;
The access=file instructs vlc to store the output in a file (and not stream it), and the dst is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
* Note 1: If you are running VLC on [[Mac OS X]], you should use clivlc instead of VLC to avoid possible Bus error problems.&lt;br /&gt;
* Note 2: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Transcoding takes quite a while, so it&#039;s advisable to use an option like &#039;&#039;&#039;--stop-time=30&#039;&#039;&#039; to only encode the first 30 seconds - this means you can check the file has transcoded correctly, and that the output is of a suitable quality. (Note: On [[Mac OS X]] this trick doesn&#039;t seem to work. Just press ctrl-c after a while, VLC will properly write out the already transcoded segment)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transcode statement can contain &#039;&#039;&#039;vcodec&#039;&#039;&#039; and &#039;&#039;&#039;vb&#039;&#039;&#039; to change the video codec and &#039;&#039;&#039;acodec&#039;&#039;&#039; and &#039;&#039;&#039;ab&#039;&#039;&#039; to change the audio codec. If vcodec is missing, the video codec will stay the same (same for acodec).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common additional options to use are &#039;&#039;&#039;audio-sync&#039;&#039;&#039; (to make sure the audio is in sync correctly) and &#039;&#039;&#039;deinterlace&#039;&#039;&#039; (to increase quality slightly on interlaced video).&lt;br /&gt;
===Under MS Windows===&lt;br /&gt;
the syntax on windows is slightly different:&lt;br /&gt;
&lt;br /&gt;
:C:\Program Files\VideoLAN\VLC&amp;gt;vlc -vvv &amp;quot;D:\688497.flv&amp;quot; --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst=&amp;quot;D:\asd.mpg&amp;quot;}&lt;br /&gt;
(Note: old VLC releases, maybe up to 0.8.6* included, use &amp;quot;url&amp;quot; instead of &amp;quot;dst&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
(Note: due to command line parsing, at times, especially within single and double quote blocks, a backslash may have to be escaped by using a double backslash so that a filename would be D:\\path\\to\\file.mpg)&lt;br /&gt;
&lt;br /&gt;
===Completely non-interactive transcoding===&lt;br /&gt;
For completely non-interactive transcoding (such as the case necessary when running under [[Mac OS X]]), the above example could be rewritten as&lt;br /&gt;
:vlc -I dummy &amp;quot;C:\Movies\Your File.asf&amp;quot; :sout=&#039;#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file, mux=ps,dst=&amp;quot;C:\Movies\Your File Output.ps.mpg&amp;quot;}&#039; vlc://quit&lt;br /&gt;
The two extra options are&lt;br /&gt;
;-I dummy: Disables the graphical interface&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;vlc://quit&amp;lt;/nowiki&amp;gt;: Quit VLC after transcoding&lt;br /&gt;
If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing &#039;no DVD menus&#039; option when opening the disc.&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&lt;br /&gt;
== Canvas and Padding ==&lt;br /&gt;
&#039;&#039;&#039;The canvas and padding options changed since Version 0.9. Most examples in the wiki are broken.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
* aspect=4:3 : Aspect ratio&lt;br /&gt;
* padd: &lt;br /&gt;
** true: Pad with black bars &lt;br /&gt;
** false: crop video&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;transcode{vcodec=mp2v,vfilter=croppadd{cropttop=20,cropbottom=30,paddleft=100}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
crop or pad top, left, right or bottom in pixels.&lt;br /&gt;
&lt;br /&gt;
Avoid using width and hight parameters! These are apllied before the vfilter and might result in unwanted results.&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Windows)==&lt;br /&gt;
To transcode several files without user interaction create a batch file in the folder where the files are contained and this line to the batch file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for %%a in (*.FILE_EXT) do cmd /c &amp;quot;PATH_TO_VLC&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cmd /c makes the script wait to finish transcoding before starting the next transcode.&lt;br /&gt;
&lt;br /&gt;
An alternative method is to use VB Script. This example will transcode all files from one folder to another. It will also wait for each file to finish transcoding before starting the next. Create the script transcode.vbs, in the VLC installation folder, default &amp;quot;C:\Program Files\VideoLAN\VLC&amp;quot;. Change the strSource and strTarget in the example to match your requirements. Start a &amp;quot;DOS Box&amp;quot;, Start - Run - cmd then change to the VLC folder and run the script &amp;quot;cscript transcode.vbs&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
This example was tested on Microsoft Windows Script host 5.6 running on XP Pro SP2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; based on code from:http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/516001349831&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
&#039;&lt;br /&gt;
Dim objFSO, objShell, strSource, strTarget, strOldName, strNewName&lt;br /&gt;
&#039;&lt;br /&gt;
set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; Set up starting folders&lt;br /&gt;
&#039;&lt;br /&gt;
strSource = &amp;quot;O:\&amp;quot;&lt;br /&gt;
strTarget = &amp;quot;N:\&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
call RecurseDir(strSource, strTarget)&lt;br /&gt;
&#039;&lt;br /&gt;
&#039; // Recursively copy all files and folders&lt;br /&gt;
&#039;&lt;br /&gt;
Sub RecurseDir(strSource, strTarget)&lt;br /&gt;
	wscript.echo &amp;quot;source: &amp;quot; &amp;amp; strSource &amp;amp; &amp;quot; target: &amp;quot;&amp;amp; strTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Dim strTempSource, strTempTarget&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempSource = objFSO.GetFolder(strSource)&lt;br /&gt;
&#039;&lt;br /&gt;
	Wscript.Echo &amp;quot;Begin Value: &amp;quot; &amp;amp; strTarget&lt;br /&gt;
&#039;    &lt;br /&gt;
	If Not objFSO.FolderExists(strTarget) Then&lt;br /&gt;
&#039;        Wscript.Echo &amp;quot;No Folder! Creating folder [&amp;quot; &amp;amp; strTarget &amp;amp; &amp;quot;]&amp;quot;&lt;br /&gt;
		objFSO.CreateFolder(strTarget)&lt;br /&gt;
	Else&lt;br /&gt;
		Wscript.Echo &amp;quot;Folder exists! &amp;quot; &amp;amp; strTempTarget&lt;br /&gt;
	End If&lt;br /&gt;
&#039;&lt;br /&gt;
	Set strTempTarget = objFSO.GetFolder(strTarget)&lt;br /&gt;
&#039; ** Copy files from current directory to target&lt;br /&gt;
	For each file in strTempSource.files&lt;br /&gt;
		strOldName = strSource &amp;amp; &amp;quot;\&amp;quot; &amp;amp; file.name&lt;br /&gt;
		strNewName = strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; Mid(file.name, 1, InstrRev(file.name, &amp;quot;.&amp;quot;)) &amp;amp; &amp;quot;ts&amp;quot;&lt;br /&gt;
&#039;&lt;br /&gt;
		If Not objFSO.FileExists(strNewName) Then&lt;br /&gt;
			Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;
&#039;&lt;br /&gt;
			Wscript.Echo &amp;quot;Transcoding file: &amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot; to &amp;quot; &amp;amp; strNewName&lt;br /&gt;
&#039;		&lt;br /&gt;
			Select Case Right(strOldName, 3) &lt;br /&gt;
				Case &amp;quot;avi&amp;quot; &lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
				Case &amp;quot;mp4&amp;quot;&lt;br /&gt;
					wscript.echo &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;&lt;br /&gt;
					objShell.Run &amp;quot;vlc file://&amp;quot;&amp;quot;&amp;quot; &amp;amp; strOldName &amp;amp; &amp;quot;&amp;quot;&amp;quot; :sout=#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=&amp;quot;&amp;quot;&amp;quot; &amp;amp; strNewName &amp;amp; &amp;quot;&amp;quot;&amp;quot;}} vlc://quit&amp;quot;, 1, True&lt;br /&gt;
			End Select &lt;br /&gt;
&#039;&lt;br /&gt;
			Set objShell = Nothing&lt;br /&gt;
		End If&lt;br /&gt;
	Next&lt;br /&gt;
&#039; ** For each subfolder of current dir, copy files to target and recurse its subdirs&lt;br /&gt;
	For each subdir in strTempSource.subfolders&lt;br /&gt;
	  Wscript.Echo subdir.path&lt;br /&gt;
  	call RecurseDir(subdir.path, strTempTarget &amp;amp; &amp;quot;\&amp;quot; &amp;amp; subdir.name)&lt;br /&gt;
	Next&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Non-Interactive Batch Transcoding (Linux)==&lt;br /&gt;
To transcode several files without user interaction create a bash script in the folder where the files are contained and add these lines to the bash script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
vcodec=&amp;quot;VIDEO_CODEC&amp;quot; &lt;br /&gt;
acodec=&amp;quot;AUDIO_CODEC&amp;quot; &lt;br /&gt;
bitrate=&amp;quot;VIDEO_BITRATE&amp;quot; &lt;br /&gt;
arate=&amp;quot;AUDIO_BITRATE&amp;quot; &lt;br /&gt;
ext=&amp;quot;OUTPUT_EXT&amp;quot; &lt;br /&gt;
mux=&amp;quot;MUXER&amp;quot; &lt;br /&gt;
vlc=&amp;quot;PATH_TO_VLC&amp;quot; &lt;br /&gt;
fmt=&amp;quot;INPUT_EXT&amp;quot; &lt;br /&gt;
&lt;br /&gt;
for a in *$fmt; do &lt;br /&gt;
$vlc -I dummy -vvv &amp;quot;$a&amp;quot; --sout &amp;quot;#transcode{vcodec=$vcodec,vb=$bitrate,acodec=$acodec,ab=$arate,channels=6}:standard{mux=$mux,dst=\&amp;quot;$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit &lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Non-Interactive Merge/Transcode (Windows)===&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file create a batch script with the following line in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;PATH_TO_VLC&amp;quot; -vvv FILE1.EXT FILE2.EXT FILE3.EXT ETC.ETC --sout-keep --sout=#gather{} --sout=#transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.mpg} --sout-all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
===Example script===&lt;br /&gt;
&#039;&#039;&#039;The canvas and cropping must be adjusted for VLC versions newer then 0.9.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As an example, here is a bash script that will take a &amp;lt;tt&amp;gt;.mpg&amp;lt;/tt&amp;gt; file as generated by an DVB capture device and transcode it into an MPEG4 file using the h.264 codec. Copy it to a file, for example &amp;lt;tt&amp;gt;dvb2mp4&amp;lt;/tt&amp;gt;, and make it executable. It should work on any operating system that has bash, including windows if [http://www.cygwin.com Cygwin] is installed. It uses the cropping parameters proposed at [[Wikipedia:Overscan_amounts]] adapted so that the dimensions are divisible by 16 for better encoding.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Transcode DVB TV signals to h.264-encoded MP4 files using VLC&lt;br /&gt;
# Wout.Mertens@gmail.com&lt;br /&gt;
&lt;br /&gt;
#### Defaults, please edit for your settings ####&lt;br /&gt;
&lt;br /&gt;
# VLC location, here is the Mac OS X example&lt;br /&gt;
VLC=/Applications/VLC.app/Contents/MacOS/clivlc&lt;br /&gt;
# Other possibilities: (Remove the # to activate)&lt;br /&gt;
#VLC=/usr/bin/vlc&lt;br /&gt;
#VLC=/usr/local/bin/vlc&lt;br /&gt;
&lt;br /&gt;
# 16:9 or 4:3&lt;br /&gt;
aspect=16:9&lt;br /&gt;
&lt;br /&gt;
# PAL (Europe) or NTSC (US)&lt;br /&gt;
src=PAL&lt;br /&gt;
&lt;br /&gt;
# video bitrate&lt;br /&gt;
bitrate=1024&lt;br /&gt;
&lt;br /&gt;
# audio bitrate&lt;br /&gt;
arate=128&lt;br /&gt;
&lt;br /&gt;
# cropping?&lt;br /&gt;
crop=yes&lt;br /&gt;
&lt;br /&gt;
# Deinterlace?&lt;br /&gt;
deint=yes&lt;br /&gt;
&lt;br /&gt;
#### Program, do not change below this line ####&lt;br /&gt;
usage() {&lt;br /&gt;
	cat 1&amp;gt;&amp;amp;2 &amp;lt;&amp;lt;EOF&lt;br /&gt;
Usage: $0 [-swpncC] [-b &amp;lt;rate&amp;gt;] [-a &amp;lt;rate&amp;gt;] &amp;lt;DVB source .mpg&amp;gt; &amp;lt;MP4 output file&amp;gt;&lt;br /&gt;
	-s	4:3 aspect ratio (default=$aspect)&lt;br /&gt;
	-w	16:9 aspect ratio&lt;br /&gt;
	-p	PAL (720x576) input (default=$src)&lt;br /&gt;
	-n	NTSC (720x480) input&lt;br /&gt;
	-c	Crop borders (default=$crop)&lt;br /&gt;
	-C	Do not crop borders&lt;br /&gt;
	-d	Perform de-interlacing (default=$deint)&lt;br /&gt;
	-D	Do not perform de-interlacing&lt;br /&gt;
	-b	video bitrate kb/s (default=$bitrate)&lt;br /&gt;
	-a	audio bitrate kb/s (default=$arate)&lt;br /&gt;
EOF&lt;br /&gt;
	exit 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
error() {&lt;br /&gt;
	echo &amp;quot;ERROR: $*&amp;quot; 1&amp;gt;&amp;amp;2&lt;br /&gt;
	exit 2&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
while getopts &#039;swpncCb:a:h&#039; opt; do&lt;br /&gt;
	case $opt in&lt;br /&gt;
		s) aspect=4:3 ;;&lt;br /&gt;
		w) aspect=16:9 ;;&lt;br /&gt;
		p) src=PAL ;;&lt;br /&gt;
		n) src=NTSC ;;&lt;br /&gt;
		c) crop=yes ;;&lt;br /&gt;
		C) crop=no ;;&lt;br /&gt;
		d) deint=yes ;;&lt;br /&gt;
		D) deint=no ;;&lt;br /&gt;
		b) bitrate=$OPTARG ;;&lt;br /&gt;
		a) arate=$OPTARG ;;&lt;br /&gt;
		h) usage ;;&lt;br /&gt;
		*) echo &amp;quot;Unknown option $opt&amp;quot; 1&amp;gt;&amp;amp;2; usage ;;&lt;br /&gt;
	esac&lt;br /&gt;
done&lt;br /&gt;
shift $(( $OPTIND - 1 ))&lt;br /&gt;
&lt;br /&gt;
[ $# -ne 2 ] &amp;amp;&amp;amp; usage&lt;br /&gt;
&lt;br /&gt;
infile=&amp;quot;$1&amp;quot;&lt;br /&gt;
outfile=&amp;quot;$2&amp;quot;&lt;br /&gt;
case $outfile in&lt;br /&gt;
	*.mp4|*.MP4) : ;;&lt;br /&gt;
	*) outfile=&amp;quot;$outfile.mp4&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
[ -r &amp;quot;$infile&amp;quot; ] || error &amp;quot;Can&#039;t read from $infile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$src,$aspect,$crop&amp;quot; in&lt;br /&gt;
	PAL,16:9,yes) sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=960,height=544&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,yes)  sizestr=&amp;quot;cropleft=31,cropright=31,croptop=16,cropbottom=16,width=720,height=544&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,yes) sizestr=&amp;quot;cropleft=30,cropright=30,croptop=17,cropbottom=17,width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,yes) sizestr=&amp;quot;cropleft=26,cropright=26,croptop=17,cropbottom=17,width=608,height=448&amp;quot; ;;&lt;br /&gt;
	PAL,16:9,no) sizestr=&amp;quot;width=1024,height=576&amp;quot; ;;&lt;br /&gt;
	PAL,4:3,no) sizestr=&amp;quot;width=768,height=576&amp;quot; ;;&lt;br /&gt;
	NTSC,16:9,no) sizestr=&amp;quot;width=800,height=448&amp;quot; ;;&lt;br /&gt;
	NTSC,4:3,no) sizestr=&amp;quot;width=608,height=448&amp;quot; ;;&lt;br /&gt;
	*) error &amp;quot;Could not handle $src,$aspect,$crop. This shouldn&#039;t happen!&amp;quot; ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$deint&amp;quot; = &amp;quot;yes&amp;quot; ]; then&lt;br /&gt;
	deintstr=&amp;quot;,deinterlace=enable&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
	deintstr=&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Let&#039;s do it&lt;br /&gt;
echo &amp;quot;Input file: $infile&amp;quot;&lt;br /&gt;
echo &amp;quot;Output file: $outfile&amp;quot;&lt;br /&gt;
echo &amp;quot;Encoding at $bitrate+$arate kb/s, input $src, $aspect, cropping $crop, de-interlace $deint&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &#039;&amp;gt;&amp;gt;&amp;gt;&#039; $VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
echo&lt;br /&gt;
$VLC -I dummy &amp;quot;$infile&amp;quot; --sout &amp;quot;#transcode{$sizestr$deintstr,vcodec=h264,vb=$bitrate,acodec=mp4a,ab=$arate}:standard{mux=mp4,dst=\&amp;quot;$outfile\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Modules/gather&amp;diff=17631</id>
		<title>Documentation:Modules/gather</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Modules/gather&amp;diff=17631"/>
		<updated>2010-11-16T22:56:00Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: more examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module|name=gather|type=Stream output|description=Recyle video and audio elementary streams when possible}}&lt;br /&gt;
&lt;br /&gt;
Makes it possible to stream a playlist without any noticeable interruption on input change on the client side.&lt;br /&gt;
The audio and video streams must all have the same characteristics (codecs, bitrate, dimensions, etc.).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 % &#039;&#039;&#039;vlc playlist.m3u --sout &amp;quot;#gather:std{access=http,mux=asfh,dst=:8080}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If your playlist items use different codecs or have different sizes, it is advised to [[Documentation:Modules/transcode|transcode]]. For example:&lt;br /&gt;
 % &#039;&#039;&#039;vlc playlist.m3u --sout &amp;quot;#transcode{vcodec=DIV3,vb=512,width=640,height=480,acodec=mp3,ab=128,samplerate=44100,channels=2}:gather:std{access=http,mux=asfh,dst=:8080}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
or another like it&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;&amp;quot;PATH_TO_VLC&amp;quot; -vvv FILE1.EXT FILE2.EXT FILE3.EXT ETC.ETC --sout-keep --sout=#gather{} --sout=#transcode{vcodec=h264,vb=1024,scale=1,acodec=mp4a,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.mpg} --sout-all&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
no transcoding is necessary if all streams match&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3 --sout &amp;quot;#gather:std{access=file,mux=ts,dst=out.ts}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is unclear whether using --sout-keep automatically sets gather automatically or not http://forum.videolan.org/viewtopic.php?f=14&amp;amp;t=80695&lt;br /&gt;
&lt;br /&gt;
See also [[How_to_Merge_and_Transcode_Multiple_Videos]]&lt;br /&gt;
&lt;br /&gt;
{{Stub}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17630</id>
		<title>How to merge and transcode multiple videos</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17630"/>
		<updated>2010-11-16T22:25:54Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: note more ways&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Merge &amp;amp; Transcode in Windows==&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file create a batch script with the following line in it:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 C:\Program Files\VideoLAN\vlc\vlc.exe -vvv pirate1.avi pirate2.avi  --sout-keep --sout=#gather{} &lt;br /&gt;
 --sout=#transcode{vcodec=divx3,vb=1024,scale=1,acodec=mp3,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.avi} --sout-all&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PATH_TO_VLC&#039;&#039;&#039; is &#039;&#039;vlc&#039;&#039; on linux, &#039;&#039;C:\Program Files\VideoLAN\vlc\vlc.exe&#039;&#039; on Windows, but that can change depending on the installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next edit the path to vlc, input files, and transcode peramiters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
See also [[Documentation:Modules/gather]]&lt;br /&gt;
&lt;br /&gt;
You can also append them to a file:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3  --sout-file-append --sout=file/ps:go.ps&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
or possibly, if all streams match, even&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;vlc go.ps.1 go.ps.2 --sout file/ts:out.ts --sout-keep&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Modules/gather&amp;diff=17629</id>
		<title>Documentation:Modules/gather</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Modules/gather&amp;diff=17629"/>
		<updated>2010-11-16T22:03:17Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Module|name=gather|type=Stream output|description=Recyle video and audio elementary streams when possible}}&lt;br /&gt;
&lt;br /&gt;
Makes it possible to stream a playlist without any noticeable interruption on input change on the client side.&lt;br /&gt;
The audio and video streams must all have the same characteristics (codecs, bitrate, dimensions, etc.).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 % &#039;&#039;&#039;vlc playlist.m3u --sout &amp;quot;#gather:std{access=http,mux=asfh,dst=:8080}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If your playlist items use different codecs or have different sizes, it is advised to [[Documentation:Modules/transcode|transcode]]. For example:&lt;br /&gt;
 % &#039;&#039;&#039;vlc playlist.m3u --sout &amp;quot;#transcode{vcodec=DIV3,vb=512,width=640,height=480,acodec=mp3,ab=128,samplerate=44100,channels=2}:gather:std{access=http,mux=asfh,dst=:8080}&amp;quot; --sout-keep&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc go.ps.1 go.ps.2 go.ps.3 --sout &amp;quot;#gather:std{access=file,mux=ts,dst=out.ts}&amp;quot; --sout-keep&#039;&#039;&#039; no transcoding necessary if all streams match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Stub}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17628</id>
		<title>How to merge and transcode multiple videos</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=How_to_merge_and_transcode_multiple_videos&amp;diff=17628"/>
		<updated>2010-11-16T21:55:24Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Merge &amp;amp; Transcode in Windows==&lt;br /&gt;
&lt;br /&gt;
If you have more than one source files that need to be merged and transcoded resulting in a single out put file create a batch script with the following line in it:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 C:\Program Files\VideoLAN\vlc\vlc.exe -vvv pirate1.avi pirate2.avi  --sout-keep --sout=#gather{} &lt;br /&gt;
 --sout=#transcode{vcodec=divx3,vb=1024,scale=1,acodec=mp3,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.avi} --sout-all&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PATH_TO_VLC&#039;&#039;&#039; is &#039;&#039;vlc&#039;&#039; on linux, &#039;&#039;C:\Program Files\VideoLAN\vlc\vlc.exe&#039;&#039; on Windows, but that can change depending on the installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next edit the path to vlc, input files, and transcode peramiters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
See also [[Documentation:Modules/gather]]&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Advanced_Use_of_VLC&amp;diff=17627</id>
		<title>Documentation:Advanced Use of VLC</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Advanced_Use_of_VLC&amp;diff=17627"/>
		<updated>2010-11-16T14:17:33Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: note only local&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation play howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Use the command line==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TODO: completely outdated&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
All standard operations of VLC should be available from the GUI. However, some complex operations can only be done from the command line and there are situations in which you don&#039;t need or want a GUI. Here is the complete description of VLC&#039;s command line and how to use it.&lt;br /&gt;
&lt;br /&gt;
You need to be quite comfortable with command line usage to use this.&lt;br /&gt;
&lt;br /&gt;
 Note: Windows users have to use the &#039;&#039;--option-name=&amp;quot;value&amp;quot;&#039;&#039; syntax instead of the &#039;&#039;--option-name value&#039;&#039; syntax.&lt;br /&gt;
&lt;br /&gt;
===Getting help===&lt;br /&gt;
&lt;br /&gt;
VLC uses a modular structure. The core mainly manages communication between modules. All the multimedia processing is done by modules. There are input modules, demultiplexers, decoders, video output modules, ...&lt;br /&gt;
&lt;br /&gt;
This chapter will only describe the &amp;quot;general&amp;quot; options, i.e. the core options. Each module adds new options. For example, the HTTP input module will add options for caching, proxy, authentication, ...&lt;br /&gt;
&lt;br /&gt;
By using &#039;&#039;&#039;vlc --help&#039;&#039;&#039;, you will get the basic core options. &#039;&#039;&#039;vlc --longhelp&#039;&#039;&#039; will give all the basic options (core + modules). Adding &#039;&#039;&#039;--advanced&#039;&#039;&#039; will give the &amp;quot;advanced options&amp;quot; (for advanced users). So &#039;&#039;&#039;vlc --longhelp --advanced&#039;&#039;&#039; will give you all options. You can also append &#039;&#039;&#039;--help-verbose&#039;&#039;&#039; if you want more detailed help.&lt;br /&gt;
&lt;br /&gt;
Also, you might want to get debug informations. To do this, use &#039;&#039;&#039;-v&#039;&#039;&#039; or &#039;&#039;&#039;-vv&#039;&#039;&#039; (this will show lower severity messages). If your console supports it, you can add &#039;&#039;&#039;--color to get messages in color.&lt;br /&gt;
&lt;br /&gt;
===Opening streams===&lt;br /&gt;
&lt;br /&gt;
The following commands start VLC and start reading the given element(s)&lt;br /&gt;
&lt;br /&gt;
====Opening a file====&lt;br /&gt;
&lt;br /&gt;
Start VLC with:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc my_file&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
VLC should be able to recognize the file type. If it does not, you can force demultiplexer and decoder (see below).&lt;br /&gt;
&lt;br /&gt;
A list of all video and audio codecs supported by VLC is available on the [http://www.videolan.org/vlc/features.html VLC features list].&lt;br /&gt;
&lt;br /&gt;
====Opening a DVD or VCD, or an audio CD====&lt;br /&gt;
&lt;br /&gt;
Start VLC with:&lt;br /&gt;
&lt;br /&gt;
For a DVD with menus:&lt;br /&gt;
 % &#039;&#039;&#039;vlc dvd://[device][@raw_device][@[title][:[chapter][:angle]]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In most cases, &#039;&#039;&#039;vlc dvd://&#039;&#039;&#039; or &#039;&#039;&#039;vlc dvd://[device]&#039;&#039;&#039; will do. [device] is for example &#039;&#039;&#039;/dev/dvd&#039;&#039;&#039; on GNU/Linux or &#039;&#039;&#039;D:&#039;&#039;&#039; on Windows (complete path to your DVD drive).&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
(DVD without menus):&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc dvdsimple://[device][@raw_device][@[title][:[chapter][:angle]]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
(VCD):&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc vcd://[device][@{E|P|E|T|S}[number]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
(Audio CD):&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc cdda://[device][@[track]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Receiving a network stream====&lt;br /&gt;
&lt;br /&gt;
To receive an unicast RTP/UDP stream (sent by VLC&#039;s stream output), start VLC with:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc  rtp://@:5004&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If 5004 is the port to which packets are sent. 1234 is another commonly used port number. you use the default port (1234), &#039;&#039;&#039;vlc rtp://&#039;&#039;&#039; will do.&lt;br /&gt;
For more information, look at the Streaming Howto.&lt;br /&gt;
&lt;br /&gt;
To receive an multicast UDP/RTP stream (sent by VLC&#039;s stream output), start VLC with:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc rtp://@multicast_address:port&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To receive a SSM (source specific multicast) stream, you can use:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc rtp://server_address@multicast_address:port&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This only works on OSs that support SSM (Windows XP and Linux).&lt;br /&gt;
&lt;br /&gt;
To receive a HTTP stream, start VLC with:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc http://www.example.org/your_file.mpg&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To receive a RTSP stream, start VLC with:&amp;lt;/para&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc rtsp://www.example.org/your_stream&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Modules selection===&lt;br /&gt;
&lt;br /&gt;
VLC always tries to select the most appropriate interface, input and output modules, among the ones available on the system, according to the stream it is given to read. However, you may wish to force the use of a specific module with the following options.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--intf  &amp;lt;module&amp;gt;&#039;&#039;&#039; allows you to select the interface module.&lt;br /&gt;
*&#039;&#039;&#039;--extraintf  &amp;lt;module&amp;gt;&#039;&#039;&#039; allows you to select extra interface modules that will be launched in addition to the main one. This is mainly useful for special &#039;&#039;control&#039;&#039; interfaces, like HTTP, RC (Remote Control), ... (see below)&lt;br /&gt;
*&#039;&#039;&#039;--aout  &amp;lt;module&amp;gt;&#039;&#039;&#039; allows you to select the audio output module.&lt;br /&gt;
*&#039;&#039;&#039;--vout  &amp;lt;module&amp;gt;&#039;&#039;&#039; allows you to select the video output module.&lt;br /&gt;
*&#039;&#039;&#039;--memcpy  &amp;lt;module&amp;gt;&#039;&#039;&#039; allows you to choose a memory copy module. You should probably never touch that.&lt;br /&gt;
&lt;br /&gt;
You can get a listing of the available modules by using &#039;&#039;&#039;vlc -l&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Stream Output===&lt;br /&gt;
&lt;br /&gt;
The Stream output system allows vlc to become a streaming server.&lt;br /&gt;
&lt;br /&gt;
For more details on the stream output system, please have a look at the [[Documentation:Streaming HowTo|Streaming HowTo]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Other Options===&lt;br /&gt;
&lt;br /&gt;
====Audio options====&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--noaudio&#039;&#039;&#039; disables audio output.  Note that if you are streaming (ex: to a file) this has no effect (streaming copies the audio verbatim).  Use --sout-xxx instead (ex: --no-sout-audio)&lt;br /&gt;
*&#039;&#039;&#039;--mono&#039;&#039;&#039; forces VLC to treat the stream in mono audio.&lt;br /&gt;
*&#039;&#039;&#039;--volume &amp;lt;integer&amp;gt;&#039;&#039;&#039; sets the level of audio output (between 0 and 1024).  Also only applies to local playback (like --noaudio).&lt;br /&gt;
*&#039;&#039;&#039;--aout-rate &amp;lt;integer&amp;gt;&#039;&#039;&#039; sets the audio output frequency (Hz). By default, VLC will try to autodetect this.&lt;br /&gt;
*&#039;&#039;&#039;--desync &amp;lt;integer&amp;gt;&#039;&#039;&#039; compensates desynchronization of audio (ms). (If audio and video streams are not synchronized, use this setting to delay the audio stream)&lt;br /&gt;
*&#039;&#039;&#039;--audio-filter &amp;lt;string&amp;gt;&#039;&#039;&#039; adds audio filters to the processing chain. Available filters are visual (visualizer with spectrum analyzer and oscilloscope), headphone (virtual headphone  patialization) and normalizer (volume normalizer)&lt;br /&gt;
&lt;br /&gt;
====Video options====&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--novideo&#039;&#039;&#039; disables video output.&lt;br /&gt;
*&#039;&#039;&#039;--grayscale&#039;&#039;&#039; turns video output into grayscale mode.&lt;br /&gt;
*&#039;&#039;&#039;--fullscreen&#039;&#039;&#039; ( or &#039;&#039;&#039;-f&#039;&#039;&#039;) sets fullscreen video.&lt;br /&gt;
*&#039;&#039;&#039;--nooverlay&#039;&#039;&#039; disables hardware acceleration for the video output.&lt;br /&gt;
*&#039;&#039;&#039;--width, --height &amp;lt;integer&amp;gt;&#039;&#039;&#039; sets the video window dimensions. By default, the video window size will be adjusted to match the video dimensions.&lt;br /&gt;
*&#039;&#039;&#039;--start-time &amp;lt;integer&amp;gt;&#039;&#039;&#039; starts the video here; the integer is the number of seconds from the beginning (e.g. 1:30 is written as 90)&lt;br /&gt;
*&#039;&#039;&#039;--stop-time &amp;lt;integer&amp;gt;&#039;&#039;&#039; stops the video here; the integer is the number of seconds from the beginning (e.g. 1:30 is written as 90)&lt;br /&gt;
*&#039;&#039;&#039;--zoom &amp;lt;float&amp;gt;&#039;&#039;&#039; adds a zoom factor.&lt;br /&gt;
*&#039;&#039;&#039;--aspect-ratio &amp;lt;mode&amp;gt;&#039;&#039;&#039; forces source aspect ratio. Modes are 4x3, 16x9, ...&lt;br /&gt;
*&#039;&#039;&#039;--spumargin  &amp;lt;integer&amp;gt;&#039;&#039;&#039; forces SPU subtitles postion.&lt;br /&gt;
*&#039;&#039;&#039;--video-filter &amp;lt;string&amp;gt;&#039;&#039;&#039; adds video filters to the processing chain. You can add several filters, separated by commas&lt;br /&gt;
*&#039;&#039;&#039;--sub-filter &amp;lt;string&amp;gt;&#039;&#039;&#039; adds video subpictures filter to the processing chain.&lt;br /&gt;
&lt;br /&gt;
====Desktop/Screen grab options====&lt;br /&gt;
&lt;br /&gt;
You can see the various options for &amp;quot;grabbing the desktop&amp;quot; (VLC&#039;s built-in screen grabber capture device) by using the GUI. See http://forum.videolan.org/viewtopic.php?f=4&amp;amp;t=46971&lt;br /&gt;
&lt;br /&gt;
====Playlist options====&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--random&#039;&#039;&#039; plays files randomly forever.&lt;br /&gt;
*&#039;&#039;&#039;--loop&#039;&#039;&#039; loops playlist on end.&lt;br /&gt;
*&#039;&#039;&#039;--repeat&#039;&#039;&#039; repeats current item until another item is forced&lt;br /&gt;
*&#039;&#039;&#039;--play-and-stop&#039;&#039;&#039; stops the playlist after each played item.&lt;br /&gt;
&lt;br /&gt;
====Network options====&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--server-port &amp;lt;integer&amp;gt;&#039;&#039;&#039; sets server port.&lt;br /&gt;
*&#039;&#039;&#039;--iface  &amp;lt;string&amp;gt;&#039;&#039;&#039; specifies the network interface to use.&lt;br /&gt;
*&#039;&#039;&#039;--iface-addr  &amp;lt;string&amp;gt;&#039;&#039;&#039; specifies your network interface IP address.&lt;br /&gt;
*&#039;&#039;&#039;--mtu  &amp;lt;integer&amp;gt;&#039;&#039;&#039; specifies the MTU of the network interface.&lt;br /&gt;
*&#039;&#039;&#039;--ipv6&#039;&#039;&#039; forces IPv6.&lt;br /&gt;
*&#039;&#039;&#039;--ipv4&#039;&#039;&#039; forces IPv4.&lt;br /&gt;
&lt;br /&gt;
====CPU options====&lt;br /&gt;
&lt;br /&gt;
You should probably not touch these options unless you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--nommx&#039;&#039;&#039; disables the use of MMX CPU extensions.&lt;br /&gt;
*&#039;&#039;&#039;--no3dn&#039;&#039;&#039; disables the use of 3D Now! CPU extensions.&lt;br /&gt;
*&#039;&#039;&#039;--nommxext&#039;&#039;&#039; disables the use of MMX Ext CPU extensions.&lt;br /&gt;
*&#039;&#039;&#039;--nosse&#039;&#039;&#039; disables the use of SSE CPU extensions.&lt;br /&gt;
*&#039;&#039;&#039;--noaltivec&#039;&#039;&#039; disables the use of Altivec CPU extensions.&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous options====&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--quiet&#039;&#039;&#039;  deactivates all console messages.&lt;br /&gt;
*&#039;&#039;&#039;--color&#039;&#039;&#039; displays color messages.&lt;br /&gt;
*&#039;&#039;&#039;--search-path  &amp;lt;string&amp;gt;&#039;&#039;&#039; specifies interface default search path.&lt;br /&gt;
*&#039;&#039;&#039;--plugin-path  &amp;lt;string&amp;gt;&#039;&#039;&#039; specifies plugin search path.&lt;br /&gt;
*&#039;&#039;&#039;--no-plugins-cache&#039;&#039;&#039; disables the plugin cache (plugins cache speeds up startup)&lt;br /&gt;
*&#039;&#039;&#039;--dvd  &amp;lt;string&amp;gt;&#039;&#039;&#039; specifies the default DVD device.&lt;br /&gt;
*&#039;&#039;&#039;--vcd  &amp;lt;string&amp;gt;&#039;&#039;&#039; specifies the default VCD device.&lt;br /&gt;
*&#039;&#039;&#039;--program  &amp;lt;integer&amp;gt;&#039;&#039;&#039; specifies program (SID) (for streams with several programs, like satellite ones).&lt;br /&gt;
*&#039;&#039;&#039;--audio-type  &amp;lt;integer&amp;gt;&#039;&#039;&#039; specifies the default audio type to use with dvds.&lt;br /&gt;
*&#039;&#039;&#039;--audio-channel  &amp;lt;integer&amp;gt;&#039;&#039;&#039; specifies the default audio channel to use with dvds.&lt;br /&gt;
*&#039;&#039;&#039;--spu-channel  &amp;lt;integer&amp;gt;&#039;&#039;&#039; specifies the default subtitle channel to use with dvds.&lt;br /&gt;
*&#039;&#039;&#039;--version&#039;&#039;&#039; gives you information about the current VLC version.&lt;br /&gt;
*&#039;&#039;&#039;--module  &amp;lt;module&amp;gt; &#039;&#039;&#039; displays help about specified module. (Shortcut: &#039;&#039;&#039;-p&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
===Item-specific options===&lt;br /&gt;
&lt;br /&gt;
There are many options that are related to items (like &#039;&#039;&#039;--novideo&#039;&#039;&#039;, &#039;&#039;&#039;--codec&#039;&#039;&#039;, &#039;&#039;&#039;--fullscreen&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
For all of these, you have the possibility to make them item-specific, using &amp;quot;:&amp;quot; instead of &amp;quot;--&amp;quot; and putting the option just after the concerned item.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc file1.mpg :fullscreen file2.mpg&#039;&#039;&#039;&lt;br /&gt;
will play file1.mpg in fullscreen mode and file2.mpg in the default mode (which is generally no fullscreen), whereas&lt;br /&gt;
 % &#039;&#039;&#039;vlc --fullscreen file1.mpg file2.mpg&#039;&#039;&#039;&lt;br /&gt;
will play both files in fullscreen mode&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc --fullscreen file1.mpg :sub-file=file1.srt :no-fullscreen file2.mpg :filter=distort&#039;&#039;&#039;&lt;br /&gt;
will play file1.mpg in windowed (no-fullscreen) mode with the subtitles file file1.srt and will play file2.mpg with video filter distort enabled in fullscreen mode (item-specific options override global options)&lt;br /&gt;
&lt;br /&gt;
==Advanced use of filters==&lt;br /&gt;
&lt;br /&gt;
===Filters===&lt;br /&gt;
&lt;br /&gt;
These are the old style VLC filters. They only apply to on screen display and thus cannot be streamed.&lt;br /&gt;
&lt;br /&gt;
====Deinterlacing video filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;deinterlace&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--deinterlace-mode {discard,blend,mean,bob,linear}&#039;&#039;&#039; choose a deinterlacing mode.&lt;br /&gt;
&lt;br /&gt;
====Invert video filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;invert&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Image properties filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;adjust&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--contrast &amp;lt;float&amp;gt;&#039;&#039;&#039; Image contrast in the 0-2 range.&lt;br /&gt;
*&#039;&#039;&#039;--brightness &amp;lt;float&amp;gt;&#039;&#039;&#039; Image brightness in the 0-2 range.&lt;br /&gt;
*&#039;&#039;&#039;--hue &amp;lt;integer&amp;gt;&#039;&#039;&#039; Image hue in the 0-360 range.&lt;br /&gt;
*&#039;&#039;&#039;--saturation &amp;lt;float&amp;gt;&#039;&#039;&#039; Image saturation in the 0-3 range.&lt;br /&gt;
*&#039;&#039;&#039;-gamma &amp;lt;float&amp;gt;&#039;&#039;&#039; Image gamma in the 0-10 range.&lt;br /&gt;
&lt;br /&gt;
====Wall video filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;wall&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This filter splits the output in several windows.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--wall-cols &amp;lt;integer&amp;gt;&#039;&#039;&#039; Number of columns.&lt;br /&gt;
*&#039;&#039;&#039;--wall-rows &amp;lt;integer&amp;gt;&#039;&#039;&#039; Number of rows.&lt;br /&gt;
*&#039;&#039;&#039;--wall-active &amp;lt;string&amp;gt;&#039;&#039;&#039; Select the windows you want to display. To select windows 2 and 4 you would write &#039;&#039;&#039;--wall-active 2,4&#039;&#039;&#039;. When this option isn&#039;t specified, all windows are displayed.&lt;br /&gt;
&lt;br /&gt;
====Video transformation filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;transform&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--transform-type {90,180,270,hflip,vflip}&#039;&#039;&#039; Select rotation angle or symmetry.&lt;br /&gt;
&lt;br /&gt;
====Distort video filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;distort&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Clone video filter====&lt;br /&gt;
&lt;br /&gt;
This filter clones the output window.&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;clone&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--clone-count &amp;lt;integer&amp;gt;&#039;&#039;&#039; Number of clones.&lt;br /&gt;
*&#039;&#039;&#039;--clone-vout-list &amp;lt;string&amp;gt;&#039;&#039;&#039; Comma separated string of video output modules.&lt;br /&gt;
&lt;br /&gt;
====Crop video filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;crop&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--crop-geometry &amp;lt;string&amp;gt;&#039;&#039;&#039; Set the geometry of the zone to crop. This is set as &amp;lt;width&amp;gt; x &amp;lt;height&amp;gt; + &amp;lt;left offset&amp;gt; + &amp;lt;top offset&amp;gt;.&lt;br /&gt;
*&#039;&#039;&#039;--autocrop&#039;&#039;&#039; Enable automatic black border cropping.&lt;br /&gt;
&lt;br /&gt;
====Motion blur filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;motionblur&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;blur-factor &amp;lt;integer&amp;gt;&#039;&#039;&#039; Blur factor in the 1-127 range.&lt;br /&gt;
&lt;br /&gt;
====Video pictures blending====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;blend&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Video scaling filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;scale&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Subpictures Filters===&lt;br /&gt;
&lt;br /&gt;
These are the new VLC filters. They can be streamed.&lt;br /&gt;
&lt;br /&gt;
====Time display sub filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;time&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--time-format &amp;lt;string&amp;gt;&#039;&#039;&#039; Time format string. You can use the following special characters %Y = year, %m = month, %d = day, %H = hour, %M = minute, %S = second.&lt;br /&gt;
*&#039;&#039;&#039;--time-x &amp;lt;integer&amp;gt;&#039;&#039;&#039; X offset from the left in pixels.&lt;br /&gt;
*&#039;&#039;&#039;--time-y &amp;lt;integer&amp;gt;&#039;&#039;&#039; Y offset from the top in pixels.&lt;br /&gt;
&lt;br /&gt;
====Marquee display sub filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;marq&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--marq-marquee &amp;lt;string&amp;gt;&#039;&#039;&#039; Marquee text to display.&lt;br /&gt;
*&#039;&#039;&#039;--marq-x &amp;lt;integer&amp;gt;&#039;&#039;&#039; X offset from the left in pixels.&lt;br /&gt;
*&#039;&#039;&#039;--marq-y &amp;lt;integer&amp;gt;&#039;&#039;&#039; Y offset from the top in pixels.&lt;br /&gt;
*&#039;&#039;&#039;--marq-timeout &amp;lt;timeout&amp;gt;&#039;&#039;&#039; Defines the time the marquee must remain displayed in milliseconds. Default value is 0 (remain forever).&lt;br /&gt;
&lt;br /&gt;
====Logo video filter====&lt;br /&gt;
&lt;br /&gt;
Module name: &#039;&#039;&#039;logo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This filter can be used both as an old style filter or a subpictures filter.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;--logo-file &amp;lt;string&amp;gt;&#039;&#039;&#039; Full path of the PNG file to use.&lt;br /&gt;
*&#039;&#039;&#039;--logo-x &amp;lt;integer&amp;gt;&#039;&#039;&#039; X offset from the left in pixels.&lt;br /&gt;
*&#039;&#039;&#039;--logo-y &amp;lt;integer&amp;gt;&#039;&#039;&#039; Y offset from the top in pixels.&lt;br /&gt;
*&#039;&#039;&#039;--logo-transparency &amp;lt;integer&amp;gt;&#039;&#039;&#039; You can set the logo transparency value here (from 0 for full transparency to 255 for full opacity).&lt;br /&gt;
&lt;br /&gt;
Note: You can move the logo by left-clicking on it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The HTTP interface==&lt;br /&gt;
&lt;br /&gt;
VLC ships with a little HTTP server integrated. It is used both to stream using HTTP, and for the HTTP remote control interface.&lt;br /&gt;
&lt;br /&gt;
To start VLC with the HTTP interface, use:&lt;br /&gt;
 % &#039;&#039;&#039;vlc -I http [--http-src /directory/] [--http-host host:port]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want to have both the &amp;quot;normal&amp;quot; interface and the HTTP interface, use &#039;&#039;&#039;vlc --extraintf http&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The HTTP interface will start listening at host:port (&amp;lt;all interfaces&amp;gt;:8080 if omitted), and will reproduce the structure of /directory at http://host:port/ ( vlc_source_path/share/http if omitted ).&lt;br /&gt;
&lt;br /&gt;
Use a browser to go to http://your_host_machine:port. You should be taken to the main page.&lt;br /&gt;
&lt;br /&gt;
VLC is shipped with a set of files that should be enough for generic needs. It is also possible to customize pages. See [[Documentation:Play_HowTo/Building_Pages_for_the_HTTP_Interface]].&lt;br /&gt;
&lt;br /&gt;
Available pages for 1.0.3 :&lt;br /&gt;
&lt;br /&gt;
* http://host:port - Main Interface&lt;br /&gt;
* http://host:port/vlm.html - VLM Interface&lt;br /&gt;
* http://host:port/mosaic.html - Mosaic Wizard&lt;br /&gt;
* http://host:port/flash.html - Flash based remote playback&lt;br /&gt;
&lt;br /&gt;
==Other control interfaces==&lt;br /&gt;
&lt;br /&gt;
VLC includes a number of so-called interfaces that are not really interfaces, but means of controlling VLC. Nevertheless, they are enabled by setting them as interface or extra interface, either in the Preferences, in General/Interface, or using &#039;&#039;&#039;-I&#039;&#039;&#039; or &#039;&#039;&#039;--extraintf&#039;&#039;&#039; on the command line.&lt;br /&gt;
&lt;br /&gt;
===Hotkeys===&lt;br /&gt;
&lt;br /&gt;
This module allows you to control VLC and playback via hotkeys. It is always enabled by default. You can use hotkeys in the video output window, you can&#039;t in the audio dummy interface.&lt;br /&gt;
&lt;br /&gt;
Hotkeys can be hacked by:&lt;br /&gt;
 % &#039;&#039;&#039;vlc --key-&amp;lt;function&amp;gt; &amp;amp;lt;code&amp;amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Code is composed by modifiers keys (Alt, Shift, Ctrl, Meta,Command) separated by a dash (-) and terminated by a key (a...z, +, =, -, &#039;,&#039;, +, &amp;amp;lt;, &amp;amp;gt;, `, /, ;, &#039;, \, [, ], *, Left, Right, Up, Down, Space, Enter, F1...F12, Home, End, Menu, Esc, Page Up, Page Down, Tab, Backspace, Mouse Wheel Up and Mouse Wheel Down). Main controls are available from hotkeys, such as : fullscreen, play-pause, faster, slower, next, prev, stop, quit, vol-up, etc. (use the &#039;&#039;&#039;--longhelp&#039;&#039;&#039; option for full list of functions).&lt;br /&gt;
For example, for binding fullscreen to Ctrl-f, run:&lt;br /&gt;
 % &#039;&#039;&#039;vlc --key-fullscreen &#039;Ctrl-f&#039; &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The list of the default hotkeys is available [[HotKeys|here]].&lt;br /&gt;
&lt;br /&gt;
===RC and RTCI===&lt;br /&gt;
&lt;br /&gt;
These two interfaces allow you to control VLC from a command shell (possibly using a remote connexion or a Unix socket).&lt;br /&gt;
&lt;br /&gt;
Start VLC with &#039;&#039;&#039;-I rc&#039;&#039;&#039; or &#039;&#039;&#039;--extraintf rc&#039;&#039;&#039;. When you get the &#039;&#039;&#039;Remote control interface initialized, `h&#039; for help&#039;&#039;&#039; message, press h and Enter to get help about available commands.&lt;br /&gt;
&lt;br /&gt;
To be able to remote connect to your VLC using a TCP socket (telnet-like connexion), use &#039;&#039;&#039;--rc-host your_host:port&#039;&#039;&#039;. Then, by connecting (using telnet or netcat) to the host on the given port, you will get the command shell.&lt;br /&gt;
&lt;br /&gt;
To use a UNIX socket (local socket, this does not work for Windows), use &#039;&#039;&#039;--rc-unix /path/to/socket&#039;&#039;&#039;. Commands can then be passed using this UNIX socket.&lt;br /&gt;
&lt;br /&gt;
The RTCI interface gives you more advanced options, such as marquee control for the marquee subpicture filter (See filter section).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Ncurses===&lt;br /&gt;
&lt;br /&gt;
This is a text interface, using ncurses library.&lt;br /&gt;
&lt;br /&gt;
Start VLC with &#039;&#039;&#039;-I ncurses&#039;&#039;&#039; or &#039;&#039;&#039;--extraintf ncurses&#039;&#039;&#039;. You will then get something like that:&lt;br /&gt;
&lt;br /&gt;
http://www.videolan.org/doc/play-howto/en/images/play-howto/intf-ncurses-playlist.jpg The ncurses interface&lt;br /&gt;
&lt;br /&gt;
Press h to get the list of all available commands, with a short description.&lt;br /&gt;
&lt;br /&gt;
There is also a filebrowser available for the ncurses interface in order to add playlist items. Press &#039;B&#039; to use it.&lt;br /&gt;
&lt;br /&gt;
http://www.videolan.org/doc/play-howto/en/images/play-howto/intf-ncurses-filebrowser.jpg The ncurses filebrowser&lt;br /&gt;
&lt;br /&gt;
You can set the filebrowser starting point by launching vlc with the &#039;&#039;&#039;--browse-dir&#039;&#039;&#039; option:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -I ncurses --browse-dir /filebrowser/starting/point/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Gestures===&lt;br /&gt;
&lt;br /&gt;
Gestures provide a simple mouse gestures control. TODO&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The Mozilla plugin==&lt;br /&gt;
&lt;br /&gt;
VLC can also be embedded in a web browser! The following browsers are supported [http://www.mozilla.org/ Mozilla], [http://www.mozilla.org/products/firefox/ Firefox] and [http://www.apple.com/macosx/features/safari Safari].&lt;br /&gt;
&lt;br /&gt;
===Install the plugin===&lt;br /&gt;
&lt;br /&gt;
====GNU/Linux Debian====&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;mozilla-plugin-vlc&#039;&#039; package:&lt;br /&gt;
&lt;br /&gt;
 # &#039;&#039;&#039;apt-get update&#039;&#039;&#039;&lt;br /&gt;
 # &#039;&#039;&#039;apt-get install mozilla-plugin-vlc&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
Quit Firefox or Mozilla.&lt;br /&gt;
&lt;br /&gt;
Select the Mozilla Plugin option when installing VLC Media Player. The installer will then automatically detect your browser and install the plugin. &lt;br /&gt;
&lt;br /&gt;
Restart Firefox or Mozilla.&lt;br /&gt;
&lt;br /&gt;
====MacOS X====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;The Mozilla/Safari plugin for MacOS X is only available from vlc version 0.8.5.1 and onwards.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Quit Safari browser.&lt;br /&gt;
&lt;br /&gt;
Download the Mozilla/safari plugin package from [http://www.videolan.org/vlc/download-macosx.html MacOS X download page].&lt;br /&gt;
&lt;br /&gt;
Run the installer from the dmg image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Compile the sources yourself====&lt;br /&gt;
&lt;br /&gt;
Please look at the [http://developers.videolan.org developers page] for information on how to do this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Use the mozilla plugin===&lt;br /&gt;
&lt;br /&gt;
If you open a link to a video file handled by the VLC plugin (To get the list of handled types, browse to &#039;&#039;&#039;about:plugins&#039;&#039;&#039;) or a page with an embedded video, the plugin should open and read the&lt;br /&gt;
video.&lt;br /&gt;
&lt;br /&gt;
See the [[Documentation:WebPlugin|documentation]] for building page for this plugin.&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
&lt;br /&gt;
=Snapshot Tool=&lt;br /&gt;
Did you know you can use special codes to automatically generate filenames in the [[SnapshotTool|Snaphot Tool]]?&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17621</id>
		<title>Documentation:Streaming HowTo/Receive and Save a Stream</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Streaming_HowTo/Receive_and_Save_a_Stream&amp;diff=17621"/>
		<updated>2010-11-16T01:07:26Z</updated>

		<summary type="html">&lt;p&gt;RogerDPack: /* Save a stream with VLC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightMenu|documentation streaming howto toc}}&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
===Receive an unicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Receive a multicast stream===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtp://@239.255.12.42&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;239.255.12.42&#039;&#039;&#039; is the multicast IP address you want to join.&lt;br /&gt;
&lt;br /&gt;
===Receive an HTTP/FTP/MMS stream===&lt;br /&gt;
&lt;br /&gt;
Use one of the following command lines:&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;http://example/stream.xyz&#039;&#039;&#039; is the HTTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv ftp://example/stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;ftp://example/stream.xyz&#039;&#039;&#039; is the FTP address of the stream;&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;mms://viptvr.yacast.fr/encoderfranceinfo&#039;&#039;&#039; is the MMS address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a RTP stream available through RTSP===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039;&lt;br /&gt;
where &#039;&#039;&#039;rtsp://www.hardradio.com/tonbeme.mov&#039;&#039;&#039; is the address of the stream.&lt;br /&gt;
&lt;br /&gt;
===Receive a stream described by an SDP file===&lt;br /&gt;
&lt;br /&gt;
 % &#039;&#039;&#039;vlc -vvv http://server.example.org/stream.sdp&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Save a stream with VLC==&lt;br /&gt;
&lt;br /&gt;
VLC can save the stream to the disk. In order to do this, use the Stream Output of VLC : you can do it via the graphical interface, or you can add to the command line the following argument:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;--sout file/muxer:stream.xyz&#039;&#039;&#039;&lt;br /&gt;
where:&lt;br /&gt;
*&#039;&#039;&#039;muxer&#039;&#039;&#039; is one of the formats supported by VLC&#039;s stream output, i.e. :&lt;br /&gt;
**&#039;&#039;&#039;ogg&#039;&#039;&#039; for OGG format,&lt;br /&gt;
**&#039;&#039;&#039;ps&#039;&#039;&#039; MPEG2-PS format,&lt;br /&gt;
**&#039;&#039;&#039;ts&#039;&#039;&#039; for MPEG2-TS format.&lt;br /&gt;
* and &#039;&#039;&#039;stream.xyz&#039;&#039;&#039; is the name of the file you want to save the stream to, with the right extension.&lt;br /&gt;
&lt;br /&gt;
For example: --sout=file/ps:go.mpg&lt;br /&gt;
&lt;br /&gt;
When it fails for some reason, it can be very useful to look for error messages in the Tools -&amp;gt; Messages window.&lt;br /&gt;
It can also be quite helpful to look at the messages when VLC records using the record button.&lt;br /&gt;
For example, in the logs you might see something like this:&lt;br /&gt;
&lt;br /&gt;
stream_out_record debug: Using record output `std{access=file,mux=&#039;ps&#039;,dst=&#039;C:\Users\packrd\Videos\vlc-record-2010-11-15-17h28m42s-dvd___E-.mpg&#039;}&#039;&lt;br /&gt;
&lt;br /&gt;
Which gives you a hint/clue as to how to record your current stream.  In this case this would translate into  --sout &amp;quot;#std{access=file...&lt;br /&gt;
&lt;br /&gt;
==Receive a stream with a set-top-box==&lt;br /&gt;
&lt;br /&gt;
Some set-top-boxes with Ethernet cards can receive MPEG2-TS streams over UDP and support multicast.&lt;br /&gt;
&lt;br /&gt;
Set-top-boxes known to work with VLC are :&lt;br /&gt;
*[http://www.pace.co.uk Pace] set top boxes. (Pace Micro DSL 4000)&lt;br /&gt;
*[http://www.aminocom.com Aminocom] set top boxes. (all the models with mpeg2)&lt;br /&gt;
*tuxia / gct-allwell (mpeg4 and mpeg2) sigma designs8174 chipset&lt;br /&gt;
*i3micro mood200 (mpeg4 and mpeg2 in transport streams)&lt;br /&gt;
* ps3 media server streams using VLC (or mencoder) to the PS3&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>RogerDPack</name></author>
	</entry>
</feed>