<?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=Fenugrec</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=Fenugrec"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Fenugrec/"/>
	<updated>2026-11-04T14:52:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Transcode_multiple_videos&amp;diff=12500</id>
		<title>VLC HowTo/Transcode multiple videos</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Transcode_multiple_videos&amp;diff=12500"/>
		<updated>2008-09-28T02:14:50Z</updated>

		<summary type="html">&lt;p&gt;Fenugrec: vlc://quit ref&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Idea ==&lt;br /&gt;
The idea is to use VLC to do some batch work to encode or transcode multiple files one after each other, without having to care about it. &lt;br /&gt;
&lt;br /&gt;
You may want to transcode all your videotheque to another format to play them on an [[IPod]], a [[Play on Zune|Zune]], a PS3 or a [[Play on Xbox|Xbox]].&lt;br /&gt;
&lt;br /&gt;
== Codecs / Muxers ==&lt;br /&gt;
&lt;br /&gt;
You have to choose the correct codecs for the device you want to transcode for.&lt;br /&gt;
&lt;br /&gt;
We choose here [[H.264]] with [[AAC]] in a [[MPEG-2#TS|MPEG-2/TS]] muxer as an example.&lt;br /&gt;
&lt;br /&gt;
== Command Lines ==&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
 for %%a in (*.VOB) do &amp;quot;C:\Program Files\VideoLAN\VLC\vlc&amp;quot; -I dummy -vvv %%a --sout=#transcode{vcodec=h264,vb=1024,acodec=mp4a,ab=192,channels=2,deinterlace}:standard{access=file,mux=ts,dst=%%a.mpg} vlc://quit&lt;br /&gt;
&lt;br /&gt;
For example, to transcode a batch of m4a files (potentially in multiple subdirectories of a single common root directory) to mp3 files (512kb/s encoding with 44100 sampling frequency) you could use the following code in a Windows XP command prompt:&lt;br /&gt;
 @ECHO OFF&lt;br /&gt;
 REM ########################################################################&lt;br /&gt;
 REM # A Windows XP cmd.com script to batch convert m4a files to mp3.       #&lt;br /&gt;
 REM #                                                                      #&lt;br /&gt;
 REM # Copyright (C) 2008 Andrew Boden                                      #&lt;br /&gt;
 REM # (boden@graduate.uwa.edu.au)                                          #&lt;br /&gt;
 REM #                                                                      #&lt;br /&gt;
 REM # This program is free software: you can redistribute it and/or modify #&lt;br /&gt;
 REM # it under the terms of the GNU General Public License as published by #&lt;br /&gt;
 REM # the Free Software Foundation, either version 3 of the License, or    #&lt;br /&gt;
 REM # (at your option) any later version.                                  # &lt;br /&gt;
 REM #                                                                      #&lt;br /&gt;
 REM # This program is distributed in the hope that it will be useful,      #&lt;br /&gt;
 REM # but WITHOUT ANY WARRANTY; without even the implied warranty of       #&lt;br /&gt;
 REM # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        #&lt;br /&gt;
 REM # GNU General Public License for more details.                         #&lt;br /&gt;
 REM #                                                                      #&lt;br /&gt;
 REM # You should have received a copy of the GNU General Public License    #&lt;br /&gt;
 REM # along with this program.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.#&lt;br /&gt;
 REM #                                                                      #&lt;br /&gt;
 REM # Version 1.0 (June 27th 2008)                                         #&lt;br /&gt;
 REM # Uses VideoLAN VLC 0.8.6h (www.videolan.org)                          #&lt;br /&gt;
 REM # Gracefully handles commas and apostrophes in file names.             #&lt;br /&gt;
 REM # Not aware of any other characters needing graceful handling.         #&lt;br /&gt;
 REM # 512kbps encoding with 44100 sampling.                                #&lt;br /&gt;
 REM ########################################################################&lt;br /&gt;
 &lt;br /&gt;
 FOR /R %%G IN (*.m4a) DO (CALL :SUB_VLC &amp;quot;%%G&amp;quot;)&lt;br /&gt;
 FOR /R %%G IN (*.m4a.mp*) DO (CALL :SUB_RENAME &amp;quot;%%G&amp;quot;)&lt;br /&gt;
 GOTO :eof&lt;br /&gt;
 &lt;br /&gt;
 :SUB_VLC&lt;br /&gt;
  SET _firstbit=%1&lt;br /&gt;
  SET _qt=&amp;quot;&lt;br /&gt;
  CALL SET _newnm=%%_firstbit:%_qt%=%%&lt;br /&gt;
  SET _commanm=%_newnm:,=_COMMA_%&lt;br /&gt;
  REM echo %_commanm%&lt;br /&gt;
  CALL &amp;quot;C:\Program Files\VideoLAN\VLC\vlc&amp;quot; -I dummy -vvv %1 --sout=#transcode{acodec=&amp;quot;mpga&amp;quot;,ab=&amp;quot;512&amp;quot;,&amp;quot;channels=2&amp;quot;,samplerate=&amp;quot;44100&amp;quot;}:standard{access=&amp;quot;file&amp;quot;,mux=&amp;quot;mpeg1&amp;quot;,dst=&amp;quot;%_commanm%.mp3&amp;quot;} vlc:quit&lt;br /&gt;
 GOTO :eof&lt;br /&gt;
 &lt;br /&gt;
 :SUB_RENAME&lt;br /&gt;
  SET _origfnm=%1&lt;br /&gt;
  SET _endbit=%_origfnm:*.m4a=%&lt;br /&gt;
  CALL SET _newfilenm=%%_origfnm:.m4a%_endbit%=.mp3%%&lt;br /&gt;
  SET _newfilenm=%_newfilenm:_COMMA_=,%&lt;br /&gt;
  COPY %1 %_newfilenm%&lt;br /&gt;
  DEL %1&lt;br /&gt;
 GOTO :eof&lt;br /&gt;
 &lt;br /&gt;
 :eof&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The same as above, for vlc &amp;gt;= 0.9:&lt;br /&gt;
 @ECHO OFF&lt;br /&gt;
 FOR /R %%G IN (*.m4a) DO (CALL :SUB_VLC &amp;quot;%%G&amp;quot;)&lt;br /&gt;
 FOR /R %%G IN (*.m4a.mp*) DO (CALL :SUB_RENAME &amp;quot;%%G&amp;quot;)&lt;br /&gt;
 GOTO :eof&lt;br /&gt;
 &lt;br /&gt;
 :SUB_VLC&lt;br /&gt;
  SET _firstbit=%1&lt;br /&gt;
  SET _qt=&amp;quot;&lt;br /&gt;
  CALL SET _newnm=%%_firstbit:%_qt%=%%&lt;br /&gt;
  SET _commanm=%_newnm:,=_COMMA_%&lt;br /&gt;
  REM echo %_commanm%&lt;br /&gt;
  CALL &amp;quot;C:\Program Files\VideoLAN\VLC\vlc&amp;quot; -I dummy -vvv %1 --sout=#transcode{acodec=&amp;quot;mp3&amp;quot;,ab=&amp;quot;512&amp;quot;,&amp;quot;channels=2&amp;quot;}:standard{access=&amp;quot;file&amp;quot;,mux=&amp;quot;raw&amp;quot;,dst=&amp;quot;%_commanm%.mp3&amp;quot;} vlc://quit&lt;br /&gt;
 GOTO :eof&lt;br /&gt;
 &lt;br /&gt;
 :SUB_RENAME&lt;br /&gt;
  SET _origfnm=%1&lt;br /&gt;
  SET _endbit=%_origfnm:*.m4a=%&lt;br /&gt;
  CALL SET _newfilenm=%%_origfnm:.m4a%_endbit%=.mp3%%&lt;br /&gt;
  SET _newfilenm=%_newfilenm:_COMMA_=,%&lt;br /&gt;
  COPY %1 %_newfilenm%&lt;br /&gt;
  DEL %1&lt;br /&gt;
 GOTO :eof&lt;br /&gt;
 &lt;br /&gt;
 :eof&lt;br /&gt;
 &lt;br /&gt;
=== Unix / Linux ===&lt;br /&gt;
&lt;br /&gt;
 vcodec=&amp;quot;h264&amp;quot;&lt;br /&gt;
 acodec=&amp;quot;mp4a&amp;quot;&lt;br /&gt;
 bitrate=&amp;quot;1024&amp;quot;&lt;br /&gt;
 arate=&amp;quot;192&amp;quot;&lt;br /&gt;
 ext=&amp;quot;mpg&amp;quot;&lt;br /&gt;
 mux=&amp;quot;ts&amp;quot;&lt;br /&gt;
 vlc=&amp;quot;/usr/bin/vlc&amp;quot;&lt;br /&gt;
 fmt=&amp;quot;VOB&amp;quot;&lt;br /&gt;
 dst=&amp;quot;/home/user/&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;$dst$a.$ext\&amp;quot;,access=file}&amp;quot; vlc://quit&lt;br /&gt;
 done&lt;/div&gt;</summary>
		<author><name>Fenugrec</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Uncommon_uses&amp;diff=12499</id>
		<title>Uncommon uses</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Uncommon_uses&amp;diff=12499"/>
		<updated>2008-09-28T01:47:10Z</updated>

		<summary type="html">&lt;p&gt;Fenugrec: vlc://quit ref&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The modular nature of {{VLC}} allows you to do quite strange and unusual things with it. This page tries to list some funny and insane uses.&lt;br /&gt;
&lt;br /&gt;
== Caca and Goom ==&lt;br /&gt;
&lt;br /&gt;
If you have vlc compiled with both caca and goom you can listen to music with [[caca]] rendering the output of [[goom]]. That means you can show the visualisations from an audio file as colour ASCII art! Try something like this:&lt;br /&gt;
 vlc --audio-filter goom --vout caca somemusic.mp3&lt;br /&gt;
&lt;br /&gt;
Likewise, if you would like to view a video file as colour ASCII art, try the following:&lt;br /&gt;
 vlc --vout caca somevideo.avi&lt;br /&gt;
&lt;br /&gt;
== Pipe data to VLC ==&lt;br /&gt;
&lt;br /&gt;
You can pipe input from standard input to VLC, rather than open a file or stream. VLC accepts data this way if you use a dash as a filename, ie:&lt;br /&gt;
 vlc -&lt;br /&gt;
Piping passes the output of one program into the input of another. An example of this is using [[wikipedia:Cat (Unix)|cat]], which is part of GNU coreutils (ie, on *nix systems). Cat displays the contents of a file to standard output (normally to the screen as text). In this case, we&#039;ll use the pipe character to redirect this into vlc&#039;s standard input, whch will then be played. To wit,&lt;br /&gt;
 cat file.mpg | vlc -&lt;br /&gt;
&lt;br /&gt;
All very sane (though pointless) so far: if you&#039;re looking for madness, read on. You can get input from anywhere. A good place to get input is [[ffmpeg]]. Say you have a [[wikipedia:.flv|.flv]] file (which VLC now supports from version 0.8.4a onwards) and you want to play it in vlc. You could use ffmpeg to transcode it on the fly and pipe the output to vlc. The following command will do this:&lt;br /&gt;
 ffmpeg -i 0.flv -f asf - | vlc -&lt;br /&gt;
A longer version with all the options ffmpeg likes to have is:&lt;br /&gt;
 ffmpeg -i 0.flv -vcodec mpeg4 -ac 1 -ab 64 -acodec mp2 -b 128 -f asf -s cif - | vlc -&lt;br /&gt;
The advantage of this is that you don&#039;t have to make a new file (possibly 100s of MB in size). But you&#039;ll probably need a good computer. Plus, you wont have much control when playing it. You can pipe into ffmpeg too, so I suppose you could pass things along ffmpeg forever, transcoding it a million different ways, and ending up in vlc (please don&#039;t try that, your computer really wouldn&#039;t like it).&lt;br /&gt;
&lt;br /&gt;
== Encoding Lots of Files ==&lt;br /&gt;
&lt;br /&gt;
This command shows how to encode a whole directory of files in Linux, without your input. When complete, it&#039;ll show a message to say it is complete. It&#039;s a single command split over several lines (with \)&lt;br /&gt;
&lt;br /&gt;
 for A in *.avi; do \&lt;br /&gt;
 echo ************************* $A ********************* ;\&lt;br /&gt;
 vlc --sout-all &amp;quot;$A&amp;quot; :sout=&amp;quot;#transcode{...}:\&lt;br /&gt;
 std{access=file,mux=avi,url=~/$A.avi}&amp;quot; \&lt;br /&gt;
 vlc://quit -I dummy ;\&lt;br /&gt;
 done ;\&lt;br /&gt;
 Xdialog --title &#039;Complete&#039; --msgbox &#039;All done&#039; 0 0;&lt;br /&gt;
&lt;br /&gt;
Make sure you really understand this command before using it. It&#039;s also a good idea to make sure you&#039;ve got the right options in the transcode bit, and that it&#039;ll transcode the right files. The output is sent to your home folder in this example.&lt;br /&gt;
&lt;br /&gt;
[[Category:How_To]]&lt;/div&gt;</summary>
		<author><name>Fenugrec</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Shut_down_the_computer_at_the_end_of_the_playlist&amp;diff=12498</id>
		<title>VLC HowTo/Shut down the computer at the end of the playlist</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Shut_down_the_computer_at_the_end_of_the_playlist&amp;diff=12498"/>
		<updated>2008-09-28T01:45:48Z</updated>

		<summary type="html">&lt;p&gt;Fenugrec: vlc://quit ref&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|Switch off your computer automatically, when VLC has finished playing a file}}&lt;br /&gt;
&lt;br /&gt;
= General idea =&lt;br /&gt;
It is not a feature included in {{VLC}} but small scripts can do it for you.&lt;br /&gt;
&lt;br /&gt;
= Quit VLC =&lt;br /&gt;
&lt;br /&gt;
You can quit {{VLC}} after playback is finished, by adding &lt;br /&gt;
&amp;lt;pre&amp;gt;vlc://quit&amp;lt;/pre&amp;gt; to the playlist.&lt;br /&gt;
&lt;br /&gt;
= Shutdown =&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
Make a .bat file. The first command would be launching VLC, the second one is &lt;br /&gt;
&amp;lt;pre&amp;gt;SHUTDOWN -s -t 01&amp;lt;/pre&amp;gt;. &lt;br /&gt;
Add vlc://quit to leave.&lt;br /&gt;
&lt;br /&gt;
Launch {{VLC}} through the shortcut to the bat file.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Make a .sh.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
vlc &amp;amp;&amp;amp; shutdown -h now&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fenugrec</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Transcode&amp;diff=12497</id>
		<title>Transcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Transcode&amp;diff=12497"/>
		<updated>2008-09-28T01:42:47Z</updated>

		<summary type="html">&lt;p&gt;Fenugrec: vlc://quit references&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,url=&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 url is the location of the new (output) file.&lt;br /&gt;
&lt;br /&gt;
(Note: 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;
&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=&lt;br /&gt;
mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,url=&amp;quot;D:\&lt;br /&gt;
asd.mpg&amp;quot;}&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,url=&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 (which is quite impossible without the graphical interface).&lt;br /&gt;
&lt;br /&gt;
{{doc|http://www.videolan.org/doc/streaming-howto/en/ch03.html}}&lt;br /&gt;
&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;
&lt;br /&gt;
===Example script===&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>Fenugrec</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=WAVE&amp;diff=12496</id>
		<title>WAVE</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=WAVE&amp;diff=12496"/>
		<updated>2008-09-28T01:37:25Z</updated>

		<summary type="html">&lt;p&gt;Fenugrec: vlc://quit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mux|id=wav|encoder=y}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WAVE&#039;&#039;&#039; is a way of storing audio, which is normally uncompressed. It is based on [[RIFF]].&lt;br /&gt;
&lt;br /&gt;
== Accepted audio codecs ==&lt;br /&gt;
* [[dummy]]: Uncompressed audio of various types, based on storing integer values of the amplitude of the sound (see [[wikipedia:PCM|PCM]]).&lt;br /&gt;
* [[fl32]]: Floating point 32-bit uncompressed audio, also based on PCM but allowing the values to be stored as floating point data types. This can give better quality audio when the sound becomes quiet.&lt;br /&gt;
&lt;br /&gt;
== Converting to WAVE ==&lt;br /&gt;
&lt;br /&gt;
The commandline for converting any readable input file to a WAVE audio file is the following:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;span style=&amp;quot;color:grey&amp;quot;&amp;gt;vlc&amp;lt;/span&amp;gt; -I dummy -vvv &amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&amp;quot;input.mp3&amp;quot;&amp;lt;/span&amp;gt; --sout=#transcode{acodec=&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fl32&amp;lt;/span&amp;gt;,channels=2,ab=&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;128&amp;lt;/span&amp;gt;}:standard{access=file,mux=wav,dst=&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;&amp;quot;output.wav&amp;quot;&amp;lt;/span&amp;gt;} vlc://quit&lt;br /&gt;
&lt;br /&gt;
Where on Windows you need to add installation directory in front of  &amp;lt;span style=&amp;quot;color:grey&amp;quot;&amp;gt;vlc&amp;lt;/span&amp;gt; (e.g. &amp;quot;C:\Program Files\VideoLAN\VLC\&amp;lt;span style=&amp;quot;color:grey&amp;quot;&amp;gt;vlc&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
As &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;audio codec (acodec)&amp;lt;/span&amp;gt; you can specify one of the above mentioned ones. The bitrate of the output file is specified by the &amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;ab&amp;lt;/span&amp;gt; parameter.&lt;br /&gt;
&lt;br /&gt;
== Source code ==&lt;br /&gt;
{{file|modules/mux/wav.c|output muxer}}&lt;br /&gt;
{{file|modules/demux/wav.c|input demuxer}}&lt;/div&gt;</summary>
		<author><name>Fenugrec</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Make_thumbnails&amp;diff=12495</id>
		<title>VLC HowTo/Make thumbnails</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=VLC_HowTo/Make_thumbnails&amp;diff=12495"/>
		<updated>2008-09-28T01:34:41Z</updated>

		<summary type="html">&lt;p&gt;Fenugrec: changed to vlc://quit for 0.9&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{howto|make a thumbnail}}&lt;br /&gt;
==How to create a thumbnail from a video==&lt;br /&gt;
&lt;br /&gt;
For all those people wanting a thumbnail from a video, use the following command (Windows):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;vlc -V image --start-time 0 --stop-time 1 --image-out-format jpg --image-out-ratio 24 --image-out-prefix snap test.mpg vlc://quit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===What it does:===&lt;br /&gt;
&lt;br /&gt;
When {{VLC}} runs it &#039;plays&#039; the video for one second without actually showing the video on screen, and then quits, leaving us with a file named &#039;snap000000.jpg&#039;, containing an image of the first frame of the video.&lt;br /&gt;
&lt;br /&gt;
===How it works:===&lt;br /&gt;
&lt;br /&gt;
First select the image output with: &#039;&#039;&#039;-V image&#039;&#039;&#039; or &#039;&#039;&#039;--vout image&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Next set the interval (in seconds) you want an image from with: &#039;&#039;&#039;--start-time 0 --stop-time 1&#039;&#039;&#039;&lt;br /&gt;
In my example the first second of the video. In that case you could omit the parameter --start-time. If you want an image from the 5th second fill in: &#039;&#039;&#039;--start-time 5 --stop-time 6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The image format will be .jpg because i provided: &#039;&#039;&#039;--image-out-format jpg&#039;&#039;&#039;. You could specify &#039;&#039;&#039;--image-out-format png&#039;&#039;&#039; to get a .png-image instead.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;--image-out-ratio 24&#039;&#039;&#039; specifies we want one image out of 24. In my case the video contains 24 images per second so this is the right value. If your video has more images per seconds you should increase this value to prevend you get more images as one. If the number is too high (for example 500) it still produces only one image, so the actual value is not so important as long as it is higher then the images per second.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;--image-out-prefix snap&#039;&#039;&#039; specifies the filename must start with &#039;snap&#039;. You can prefix with a path, for example c:\snap and resulting images will be created there.&lt;br /&gt;
&lt;br /&gt;
You can specify &#039;&#039;&#039;--image-out-replace&#039;&#039;&#039;. In that case Vlc produces the file &#039;snap.jpg&#039;. This will prevent VLC from creating multiple images.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;test.mpg&#039;&#039;&#039; specifies the video to play and finally &#039;&#039;&#039;vlc://quit&#039;&#039;&#039; forces vlc to quit when ready.&lt;/div&gt;</summary>
		<author><name>Fenugrec</name></author>
	</entry>
</feed>