Appending two Videos

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
caalip
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2008 06:50

Appending two Videos

Postby caalip » 17 Jul 2008 21:32

Hi,

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

Thanks,
Grae

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Appending two Videos

Postby thannoy » 18 Jul 2008 00:06

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.

caalip
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2008 06:50

Re: Appending two Videos

Postby caalip » 23 Jul 2008 00:24

Thanks,

Thanks, a lot, I will look into that.

God Bless You,
Grae

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Appending two Videos

Postby thannoy » 23 Jul 2008 09:42

Oh, so have a look to "--sout-file-append" instead of "--sout-all". (Today my memory is better :-) )

zms
New Cone
New Cone
Posts: 1
Joined: 23 Jul 2010 09:36

Re: Appending two Videos

Postby zms » 23 Jul 2010 09:53

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests