<?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=OpenIDUservsv02</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=OpenIDUservsv02"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/OpenIDUservsv02/"/>
	<updated>2026-11-04T17:14:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=VLC_HowTo/Merge_videos_together&amp;diff=30497</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=30497"/>
		<updated>2015-11-20T22:26:43Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUservsv02: an example for windows where many users find this example difficult.&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;
 % &#039;&#039;&#039;&amp;quot;PATH_TO_VLC&amp;quot; -vvv FILE1.mp3 FILE2.mp3 FILE3.mp3 ETC.ETC --sout-keep --sout=#gather:transcode{acodec=mp3,ab=128}:standard{access=file,mux=dummy,dst=out.mp3} --sout-all&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Next edit the path to vlc, input files, and transcode parameters to meet your needs.&lt;br /&gt;
&lt;br /&gt;
For Example in Windows (all input files are in the same directory from where the command is executed):&lt;br /&gt;
 % &#039;&#039;&#039;&amp;quot;C:\Program Files (x86)\VideoLAN\VLC\vlc.exe&amp;quot; -vvv FILE1.mp3 FILE2.mp3 FILE3.mp3 --sout-keep --sout=#gather:transcode{acodec=mp3,ab=128}:standard{access=file,mux=dummy,dst=combinedout.mp3} --sout-all&#039;&#039;&#039;&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;br /&gt;
&lt;br /&gt;
[[Category:How_To]]&lt;/div&gt;</summary>
		<author><name>OpenIDUservsv02</name></author>
	</entry>
</feed>