Results 1 to 5 of 5

Thread: vb.net and ffmpeg to join mulitple videos

  1. #1
    Lively Member
    Join Date
    Dec 09
    Posts
    105

    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\
    If youre a graphic designer and got some spare time to work on freeware projects pm me. Mainly GUI and game sprites.

  2. #2
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 05
    Location
    Netherlands
    Posts
    514

    Re: vb.net and ffmpeg to join mulitple videos


  3. #3
    Lively Member
    Join Date
    Dec 09
    Posts
    105

    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..?
    If youre a graphic designer and got some spare time to work on freeware projects pm me. Mainly GUI and game sprites.

  4. #4
    PowerPoster jcis's Avatar
    Join Date
    Jan 03
    Location
    Argentina
    Posts
    4,321

    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
    Lively Member
    Join Date
    Dec 09
    Posts
    105

    Re: vb.net and ffmpeg to join mulitple videos

    why use "type"
    If youre a graphic designer and got some spare time to work on freeware projects pm me. Mainly GUI and game sprites.

Posting Permissions

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