VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Hi All,

    I'm trying to take material from my set-top recorder and apply some Avisynth filters to it. I demuxed the material with DVD Decrypter and then cut scenes and created my .d2v project with Cuttermaran. The script works fine until I try to add a BlankClip to the mix. I keep getting the following error: "Splice: Video framerate doesn't match"

    I've double-checked the framerate in Cuttermaran and it says it's 29.97, so that's what I'm using for my blank-clip, yet the script keeps erroring out.

    Any suggestions?

    Thanks,
    Trevor

    Code:
    LoadPlugin("C:\Program Files\HCEnc\HC021\DGDecode\DGDecode13.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\NicAudio.dll")
    video=MPEG2source("C:\demuxed\CSI.d2v")
    audio=NicAC3Source("C:\demuxed\CSI.ac3",2)
    mov=AudioDub(video,audio)
    bc=BlankClip(mov, length=120, width=720, height=480, fps=29.97, color=$000000)
    bc+fadeio2(trim(mov,500,1000),20)+fadeio2(trim(mov,1500,2000),20)
    Quote Quote  
  2. How about this:
    LoadPlugin("C:\Program Files\HCEnc\HC021\DGDecode\DGDecode13.dll")
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\NicAudio.dll")
    video=MPEG2source("C:\demuxed\CSI.d2v")
    audio=NicAC3Source("C:\demuxed\CSI.ac3",2)
    video=video.AssumeFPS(29.97)
    mov=AudioDub(video,audio)
    bc=BlankClip(mov, length=120, width=720, height=480, fps=29.97, color=$000000)
    bc+fadeio2(trim(mov,500,1000),20)+fadeio2(trim(mov ,1500,2000),20)
    I don't do this kind of work, so I'm not positive that'll fix it. Also, shouldn't you be using Alligned Splice, rather than the Unaligned Splice you're using?

    http://avisynth.org/mediawiki/UnalignedSplice

    Have you done this kind of thing before?
    Quote Quote  
  3. 29.97 isn't really 29.97. The frame rate in an AVI file is encoded as two integers, a numerator and a denominator. The true NTSC frame rate is 30000/1001 which is 29.9700299700299700... That small difference is probably what's causing the problem. Manono's AssumeFPS(29.97) should fix it.
    Quote Quote  
  4. Member
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Manono's AssumeFPS(29.97) should fix it.
    Thanks guys. I will give this a shot tonight and see what happens.

    Also, shouldn't you be using Alligned Splice, rather than the Unaligned Splice you're using?
    I believe you're correct, Manono. At one point, I was using the alignedsplice (++), but I didn't notice any difference, so I took it out. The clip that I'm using for testing is pretty short, though, so any noticeable sync issues probably wouldn't manifest themselves until I start using the hour-long material. Thanks for the heads-up.

    Have you done this kind of thing before?
    I've done quite a bit of searching on the forum and printing of suggestions/tips from you and others on these things, but this is my first actual script, so it's taking quite awhile to get it working. I really appreciate the help.

    Trevor
    Quote Quote  
  5. Your first script, eh? You believe in jumping right into the deep end, don't you? That's not exactly a beginner's script.

    Yeah, when I asked if you had done this before, I was wondering if you had had audio synch problems when using scripts like that. But if, as you say, the videos are real short and there's not much of a break between the parts with audio, then you might not notice the difference. It's still a good idea to train yourself right when joining clips with audio and using transitions like fades and dissolves with a blankclip. Good luck.
    Quote Quote  
  6. Member
    Join Date
    May 2007
    Location
    United States
    Search Comp PM
    Gentlemen,

    SUCCESS!!!

    Now it's time to start applying all of this to the larger file and see how it turns out. Thanks so much for the help!

    Trevor
    Quote Quote  



Similar Threads

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