-
Aug 21st, 2012, 12:10 PM
#1
Thread Starter
Lively Member
vb.net and ffmpeg to join mulitple videos
Hi,
can you use ffmpeg to join 2 video files together?
I have tried two methods which dont work.
both files are avi and output is avi
ffmpeg -i "concat:RAF153.avi|RAF157.avi" -f avi -acodec copy -vcodec copy output.avi
ffmpeg -i "c:\clips\RAF 153.avi" -i "c:\clips\RAF 157.avi" -f avi -acodec copy -vcodec copy "c:\clips\output.avi"
both dont work.
the ffmpeg was located in c:\clips\
-
Aug 22nd, 2012, 04:08 AM
#2
Re: vb.net and ffmpeg to join mulitple videos
-
Aug 23rd, 2012, 03:53 PM
#3
Thread Starter
Lively Member
Re: vb.net and ffmpeg to join mulitple videos
tried that got it to work.
convert all files to mpg using ffmpeg
then use copy /b to copy all files (concat) to a single mpg
then I convert the mpg to avi
I use "-qscale 6" when converting to mpg
but the final video is not the right length (combined length of other videos)
if i play it using windows media player also i see some clips and sometimes the audio is overlaid on wrong section of video image etc..
so whats wrong?
do ALL the input files have to be the same size and bit rate etc..?
-
Aug 23rd, 2012, 06:08 PM
#4
Re: vb.net and ffmpeg to join mulitple videos
I used this for converting WMV videos to MPG, then concatenating all MPGs and finally convertin back to WMV, in this example i concat the same video file for simplicity, it should work the same for AVIs. Concatenation in DOS is done using Type.
Code:
ffmpeg.exe -i 1.wmv -sameq 1.mpg
copy 1.mpg 2.mpg
type 1.mpg 2.mpg > 3.mpg
ffmpeg.exe -i 3.mpg -sameq Result.wmv
-
Sep 12th, 2012, 06:07 AM
#5
Thread Starter
Lively Member
Re: vb.net and ffmpeg to join mulitple videos
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|