VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Very interesting effect on fundamental operation.

    Source clip:
    http://www.mediafire.com/?z7gphh6g50btpj4

    Code:
    clip = directshowsource("mvi_5433.mov")
    part1 = clip.trim(0, 100)
    part2 = clip.trim(200, 300)
    part3 = clip.trim(400, 500)
    return part1 + dissolve(part2, part3, 100) #Audio stumbled
    #return dissolve(part2, part3, 100) #Audio OK
    This is an exampled script, in dissolve area audio is stumbled.

    Source:
    h264, unkompressed audio 44 kHz/16 bit
    Result:
    xvid, unkompressed audio 44 kHz/16 bit
    Encoding with VirtualDub

    Can anybody help me?

    Thanks.
    P.S. Sorry for my bad english.
    Last edited by egochnpp; 4th Feb 2012 at 03:29. Reason: Error in code
    Quote Quote  
  2. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    What do you mean by 'stumbled'?

    If you mean there is an audio glitch or click, and only at the transition between part1 and the rest, try using a very short (eg 1 frame) dissolve instead of a hard splice for that join.
    Code:
    part23 = dissolve(part2, part3, 50)
    return dissolve(part1, part23, 1)
    On the other hand, if you mean the audio is out of sync during all of the second part, it could be a problem with DirectShowSource, which is not guaranteed to be frame-accurate. In that case, try another source filter like ffms2.
    Quote Quote  
  3. What do you mean by 'stumbled'?
    You can see/hear the part of result of encoding (1,9 MB)
    http://www.mediafire.com/?dwroa1belzfz8d5

    try using a very short (eg 1 frame) dissolve instead of a hard splice for that join.
    Code:
    part23 = dissolve(part2, part3, 50)
     return dissolve(part1, part23, 1)
    This script has the same bad result

    try another source filter like ffms2
    At first sight, FFmpegSource2 works fine. But I remember, this filter adds some artefacts at video. And who is decoding h.264 videostream? I not see the ffdshow icon in tray (default handler for h.264 video) while processing AVS-script with FFmpegSource2().
    If I use directshowsource, I see this icon.
    Last edited by egochnpp; 4th Feb 2012 at 06:35.
    Quote Quote  
  4. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by egochnpp View Post
    At first sight, FFmpegSource2 works fine. But I remember, this filter adds some artefacts at video.
    If it really is giving problems with the video (and you should verify this), you could use it for audio only and continue getting the video from DirectShowSource:
    Code:
    clip = directshowsource("mvi_5433.mov", audio=false)
    clip = clip.AudioDub(FFAudioSource("mvi_5433.mov"))
    And who is decoding h.264 videostream? I not see the ffdshow icon in tray (default handler for h.264 video) while processing AVS-script with FFmpegSource2().
    If I use directshowsource, I see this icon.
    FFmpegSource2 has the ffmpeg decoders built-in, and does not rely on installed codecs.
    Quote Quote  
  5. ...you could use FFAudioSource() for audio only and continue getting the video from DirectShowSource
    Code:
    clip = directshowsource("mvi_5433.mov", audio=false)
    clip = clip.AudioDub(FFAudioSource("mvi_5433.mov"))
    OK, this works very fine, thanks.

    I found other ways to avoid problem:

    1) AviSynth::directshowsource() -> VirtualDub -> LossLess Codec (e.g. HuffYUV ) -> AviSynth::avisource() -> VirtualDub -> XVID, but this way is very long.

    2) mp4cam2avi (this application directly repacks MOV file to AVI without recoding) -> AviSynth::directshowsource() -> VirtualDub -> XVID

    3) Install QuickTime Alternative -> Download QTSource Plugin -> AviSynth::QTInput() -> VirtualDub ->XVID, but this way has low quality of resulting videoclip.
    Last edited by egochnpp; 4th Feb 2012 at 09:42.
    Quote Quote  



Similar Threads

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