VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I am trying to insert a jpg image for 50 frames, in the beginning of my collection QuickTime videos, using this technique.

    https://forum.videohelp.com/topic99389.html#still2vid

    I do not understand why they suggest the BlankClip since I don’t see the connection.

    This is what I have tried but I just can not get this to work. I tried many different approaches but nothing seems to work.

    #Test on how to insert image
    #The QuickTime Videos are from my Nikon S2 640 X 480
    a = QTInput("C:\Documents and Settings\Administrator\Desktop\gymnastics_vid\DSCN 3076.MOV", color = 2, quality = 100, audio = false, mode = 0, raw = "yuyv", info = 0, dither = 0)
    b = QtInput("C:\Documents and Settings\Administrator\Desktop\gymnastics_vid\DSCN 3075.MOV", color = 2, quality = 100, audio = false, mode = 0, raw = "yuyv", info = 0, dither = 0)
    the_audio=DirectShowSource ("C:\Documents and Settings\Administrator\Desktop\video_editing\Junio rV.mp3")


    clip1=AudioDub(a+b ,the_audio)

    #I do not understand why I need to create a BlankClip here
    BlankClip(length=100, width=640, height=480, fps=15, pixel_type="yuyv", color=$123456)
    the_image=ImageSource("C:\Documents and Settings\Administrator\Desktop\video_editing\brand .jpg", end=50, fps=15)

    Return UnalignedSplice(the_image,clip1)

    Soopafresh, I started programming with this language because of your great instructions. https://forum.videohelp.com/topic313020.html

    You rock, where ever you are.

    Thanks,
    Lex
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    This is my second attempt.

    test_clip=QTInput("C:\Documents and Settings\Administrator\Desktop\gymnastics_vid\DSCN 3076.MOV", color = 2, quality = 100, audio = false, mode = 0, raw = "yuyv", info = 0, dither = 0)
    #test_clip=avisource("C:\1script.avs.AVI")
    logo = imagesource("C:\Documents and Settings\Administrator\Desktop\video_editing\brand .jpg", end=200).converttoyv12().assumefps(test_clip)

    logo = audiodub(logo, blankclip(test_clip, length=200))

    logo + test_clip

    This works with the .avi but not the Quicktime/.mov file. Is it possible to get this to work with the Quicktime/.mov file?

    Lex
    Quote Quote  
  3. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    [SOLUTION, SOLVED] A conversation with myself

    test_clip=QTInput("C:\Documents and Settings\Administrator\Desktop\gymnastics_vid\DSCN 3076.MOV", color = 2, quality = 100, audio = true, mode = 0, raw = "RGB", info = 0, dither = 0)
    logo = imagesource("C:\Documents and Settings\Administrator\Desktop\video_editing\brand .jpg", end=100).ConvertToYUY2 ().assumefps(test_clip)

    logo = audiodub(logo, blankclip(test_clip, length=logo.FrameCount()))
    Return test_clip+logo + test_clip
    #you can arange this any how you like.
    #and even add different like quictime files

    What I learned. When you concat video using plus "+" you need to check that they both have video and/or audio, same frame rate fps, color mode, and dimension. I hope I am correct about this.

    Thanks again I love this language.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!