Page 1 of 1

Appending two Videos

Posted: 17 Jul 2008 21:32
by caalip
Hi,

Is it possible to append to videos into one video using vlc?

Thanks,
Grae

Re: Appending two Videos

Posted: 18 Jul 2008 00:06
by thannoy
Yes it is. I done it few days ago using the command line. I was not on the computer I am currently using, So just a sum up of my thought:

Code: Select all

vlc file1 file2 --sout-all --sout '#standard{access=file,mux=ts,dst=outputFile.ts}'
For me, both file1 and file2 where in the same format and size. Maybe you will need to
1- transcode before storing into the file, then use this kind of sout chain:

Code: Select all

--sout '#transcode{...}:standard{...}'
2- create another output file format (modify "mux" value)

For 1 and 2, you can search for "sout" or "transcode" in the forum and wiki (http://wiki.videolan.org) to find very good examples.
A page exists on the wiki with the complete and accurate documentation about streaming.

Re: Appending two Videos

Posted: 23 Jul 2008 00:24
by caalip
Thanks,

Thanks, a lot, I will look into that.

God Bless You,
Grae

Re: Appending two Videos

Posted: 23 Jul 2008 09:42
by thannoy
Oh, so have a look to "--sout-file-append" instead of "--sout-all". (Today my memory is better :-) )

Re: Appending two Videos

Posted: 23 Jul 2010 09:53
by zms
Hi,

I have tried to append two mp4 videos using the following command
vlc "input.mp4" "endframe3.mp4" --sout=#gather{} --sout-keep --sout '#transcode{vcodec=h264,venc=x264{keyint=250,min-keyint=10,scenecut=40,bframes=1,bpyramid=1,qp=51,qpmin=0,ratetol=800,vbv-bufsize=250,vbv-maxrate=910,qblur=7.500000,partitions=all,weightb=1,me=dia,merange=31,subme=1,dct-decimate=0,nr=199,deadzone-inter=0,deadzone-intra=0,aud=1},interlace,audio-sync,scale=1,high-priority=1,vb=1600,acodec=mpga,ab=128,samplerate=44100,channels=2,height=480,width=640,fps=25}:std{access=file,
mux=ts,dst="output12345.ts"}' --sout-file-append vlc:quit
The two files are getting appended but it in the Stream and Media Info, it is showing four streams - two video streams and two audio streams (one video and audio stream from each file).

But my requirement is that after appending, only two streams should be present in the output file (one video and one audio).

Is it possible to achieve it using vlc?

Please guide me

Thanks,
PVK