Difference between revisions of "How to merge and transcode multiple videos"

From VideoLAN Wiki
Jump to navigation Jump to search
(note more ways)
Line 8: Line 8:
  
 
'''PATH_TO_VLC''' is ''vlc'' on linux, ''C:\Program Files\VideoLAN\vlc\vlc.exe'' on Windows, but that can change depending on the installation.
 
'''PATH_TO_VLC''' is ''vlc'' on linux, ''C:\Program Files\VideoLAN\vlc\vlc.exe'' on Windows, but that can change depending on the installation.
 
  
  
Line 14: Line 13:
  
 
See also [[Documentation:Modules/gather]]
 
See also [[Documentation:Modules/gather]]
 +
 +
You can also append them to a file:
 +
 +
'''vlc go.ps.1 go.ps.2 go.ps.3  --sout-file-append --sout=file/ps:go.ps'''
 +
 +
or possibly, if all streams match, even
 +
 +
'''vlc go.ps.1 go.ps.2 --sout file/ts:out.ts --sout-keep'''

Revision as of 22:25, 16 November 2010

Merge & Transcode in Windows

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:


C:\Program Files\VideoLAN\vlc\vlc.exe -vvv pirate1.avi pirate2.avi  --sout-keep --sout=#gather{} 
--sout=#transcode{vcodec=divx3,vb=1024,scale=1,acodec=mp3,ab=192,channels=6}:standard{access=file,mux=ts,dst=out.avi} --sout-all

PATH_TO_VLC is vlc on linux, C:\Program Files\VideoLAN\vlc\vlc.exe on Windows, but that can change depending on the installation.


Next edit the path to vlc, input files, and transcode peramiters to meet your needs.

See also Documentation:Modules/gather

You can also append them to a file:

vlc go.ps.1 go.ps.2 go.ps.3 --sout-file-append --sout=file/ps:go.ps

or possibly, if all streams match, even

vlc go.ps.1 go.ps.2 --sout file/ts:out.ts --sout-keep