AssumeSampleRate
From Avisynth wiki
Revision as of 12:31, 14 January 2016 by Raffriff42 (Talk | contribs)
AssumeSampleRate(clip clip, int samplerate)
Changes the sample rate of the current clip without changing the number of samples.
- This changes the pitch, playback speed and running time of the audio.
- It will also affect synchronization with the video.
Examples
# Let's say that this video is 25fps, audio 44100hz. AviSource("video_audio.avi") # Play video at half speed: AssumeFPS(FrameRate/2) # Play audio at half speed: AssumeSampleRate(AudioRate/2) # Video and audio are now in sync.
See Also
- AssumeFPS: sync_audio
- If true, the audio sample rate is changed by the same amount; the pitch of the resulting audio is shifted.
- If false (the default), the audio is unchanged; this means the audio will lose synchronization over time.