View Single Post
Old 20th July 2019, 16:44   #3217  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
Quote:
Originally Posted by manolito View Post
If you rather stick with the speedup routine, but you would like to add audio pitch correction (so audio will play faster, but at its original pitch), you can do this by using the AviSynth TimeStretch command.
You did not ask for this, but I figured that it would be good to have all the possible NTSC to PAL conversion options explained in one place. So here comes how to use PAL speedup with pitch correction...

AviSynth has an internal TimeStretch function which lets you alter the pitch or the tempo of an audio stream. We will use the "tempo" parameter here.

In AVStoDVD you need to select "PAL speedup" under "Preferences", under "View/Edit Title Settings->AviSynth" the script must be edited like this: The line
Quote:
AssumeFPS("pal_film", sync_audio=true).ResampleAudio(48000)
must be edited so it will become
Quote:
AssumeFPS("pal_film").ResampleAudio(48000)
TimeStretch(tempo = 25.0/(24000.0/1001.0)*100.0)
(Instead of "ResampleAudio(48000)" there could be "SSRC(48000)" present in this line. Just leave it as it is...)

Some important notes about the different TimeStretch versions:
Classic AviSynth 2.60 comes with a rather outdated version of the TimeStretch plugin which does not support audio streams with more than two channels. There are several ways to deal with this:

1. Keep AVS 2.60, but download and install the external TimeStretch plugin by Wilbert. You can find it here:
https://forum.doom9.org/showthread.p...72#post1722472
Extract TimeStretch.dll into your AviSynth\Plugins folder. To make the external plugin coexist with the internal function, it must be called with "timestretchplugin()" instead of "timestretch()". Make sure your VC++ redistributables are installed. Get the latest versions here:
https://github.com/abbodi1406/vcredist/releases

2. Upgrade to AviSynth 2.61 Alpha. Don't worry about the "Alpha" label, it is stable. Download the stripped-down version here:
https://www.sendspace.com/file/gvkxp1
No installation required, just extract the files into the corresponding folders overwriting the existing files.

3. If you are adventurous you can upgrade to the latest AVS+. The current AVStoDVD version supports it. Only use the latest release from here:
https://github.com/AviSynth/AviSynthPlus/releases
Note: The installer defaults to installing both the 32-bit and the 64-bit versions. AVStoDVD can only use the 32-bit version, so you could probably uncheck the option to install the 64-bit version (unless you have other software which can use the 64-bit version).


Cheers
manolito

Last edited by manolito; 20th February 2020 at 00:39.
manolito is offline   Reply With Quote