Results 1 to 5 of 5

Thread: vb.net and ffmpeg to join mulitple videos

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    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\

  2. #2
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: vb.net and ffmpeg to join mulitple videos


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    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..?

  4. #4
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Re: vb.net and ffmpeg to join mulitple videos

    why use "type"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width