2009-11-08 13:02:30 UTC
Hi Peppe,
be very careful, because AssumeFPS changes frame rate without inserting frames: it means that video length will be different (from 23.976 to 25 there is actually a speed up of 4%).
I you do not adjust audio accordingly, then you will get (progressive) out of A/V synch.
Anyway, we can elaborate the AVS script a little bit more. Let's suppose that the script is:
Import("C:\Programmi\AV\AVStoDVD Dev\Lib\A2DSource.avsi")
Video = A2DVideoSource("H:\Test.avi", CacheFolder = "C:\Temp\AVStoDVD")
Audio = A2DAudioSource("H:\Test.avi", CacheFolder = "C:\Temp\AVStoDVD")
Video = Video.ConvertToYV12
#Using DGPulldown to upsize FPS
Video = Video.Lanczos4Resize(720,576)
AudioDub(Video, Audio)
we can modify it into:
Import("C:\Programmi\AV\AVStoDVD Dev\Lib\A2DSource.avsi")
Video = A2DVideoSource("H:\Test.avi", CacheFolder = "C:\Temp\AVStoDVD")
Audio = A2DAudioSource("H:\Test.avi", CacheFolder = "C:\Temp\AVStoDVD")
Video = Video.ConvertToYV12
Video = Video.Lanczos4Resize(720,576)
AudioDub(Video, Audio)
AssumeFPS("pal_video",true).ResampleAudio(48000)
Having "true" in AssumeFPS audio synch is preserved and ResampleAudio() adjust the sample rate that AssumeFPS() is altering.
Let me know
Bye
MrC
P.S. Grazie per l'invito! Sicuramente ci farò un pensierino, se passo da quelle parti. Comunque se è vero che ci sono pochi programmi italiani, è anche vero che ci sono pochi utenti competenti italiani. Trovarne uno è sempre un piacere.