Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 26th June 2017, 21:40   #1  |  Link
Richard1485
AviSynth monkey
 
Richard1485's Avatar
 
Join Date: Feb 2010
Posts: 307
Stretching Audio: N+1,2,3,etc Frames in AviSynth

I wonder if it's possible to stretch a section of audio and video so that it occupies the same number of frames as the original +1,2,3 etc. The important thing is for the audio to be stretched in as high a quality method as possible so that it occupies its new length; the video can make up the difference by adding duplicates (as long as it is returned in sync along with the audio). At present, I approximate the effect that I want by trimming out a section and doing the following.

Code:
#Assuming a 23.976fps A/V source...
Trim()
ChangeFPS(25000,1001)
AssumeFPS(24000,1001, sync_audio=true)
SSRC(48000)# or ResampleAudio(48000) or whatever
Then I call AlignedSplice() to reinsert the clip. Obviously, I change the numerator and denominator in ChangeFPS() if I want to vary the extent to which the clip is stretched. This works for very short clips but has obvious limitations, not least the fact that the stretched section stands out a bit. Surely it's possible to write a function that stretches longer sections by a frame or so and results in less obvious distortion. Any help with this would be appreciated!
Richard1485 is offline   Reply With Quote
 

Tags
audio, avisynth, stretch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.