VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    Converting a PAL avi to NTSC mpeg2 and keep the original pitch, I use 'Timestretch'.
    FrameServing from VirtualDub to Quenc, if I elect 'DVD' (which includes the audio) the output fails.
    If I elect 'No Audio' I get a good .m2v file.
    I note that the audio from the input is now 46034Hz;I'm guessing that this is the problem?
    How can I get Quenc to take the audio and keep the pitch.

    AVISource("C:\PAL.avi")
    LanczosResize(720,368,2,0,572,320)
    AddBorders(0,56,0,56)
    AssumeFPS(23.976, true)
    TimeStretch(pitch=(100.0*25.0)/23.976)
    Quote Quote  
  2. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    Lose assumefps and timestretch from your script and convert the pal avi to ntsc resolution elementary video stream. Run that stream through dgpulldown 25->29.97

    Encode audio separately with aften, ffmpeg, besweet ...etc.

    You will now have a video stream and audio stream in sync and ready to author to dvd (assuming that is your intent).

    Yes it is more steps but it will work flawlessly.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  3. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    Thank you freebird73717 - that did it.
    Quote Quote  
  4. Man of Steel freebird73717's Avatar
    Join Date
    Dec 2003
    Location
    Smallville, USA
    Search PM
    You're welcome.
    Donadagohvi (Cherokee for "Until we meet again")
    Quote Quote  
  5. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by sambat
    I note that the audio from the input is now 46034Hz
    That's because of AssumeFPS() 'true' parameter for audio. You could restore the sample rate after it:
    ResampleAudio(48000)
    but it's better to remove 'true' and to do everything in one step by changing tempo and keeping unchanged pitch and sample rate:
    TimeStretch(tempo = (100.0*24000.0)/(25.0*1001.0))

    P.S. Added back the missing '(', it had been accidentally removed when I'd tried to correct division into lines in the text box.
    Quote Quote  
  6. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    Thank you Alex_ander.
    I take it that the audio is stretched, but the pitch is unchanged?

    Why are the numbers 24 and 25 - and not 23.976 and 25?
    Quote Quote  
  7. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Here 24000.0/1001.0 is the preferred way of representing 23.976. Probably in AssumeFPS it should be used the same way as in TimeStretch. Sorry for the typo, I've just looked into my saved test script: '(' was in its place.
    And yes, pitch is not changed (hopefully, it had been corrected at creating the sped-up PAL version, then you want to keep it). In case you feel the pitch is not correct in PAL, simply resample audio to 48000 without using TimeStretch (keeping 'true' in AssumeFPS).
    Quote Quote  



Similar Threads

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