AssumeSampleRate

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (added category)
Line 18: Line 18:
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]
 +
[[Category:Audio_filters]]

Revision as of 16:22, 8 November 2015

AssumeSampleRate(clip clip, samplerate int)

AssumeSampleRate (exists starting from v2.07) changes the sample rate (playback speed) of the current sample. If used alone, it will cause desync with the video.

Examples:

# Let's say that this video is 25fps, 44100hz video clip.
AviSource("video_audio.avi")

# Play audio at half speed:
AssumeSampleRate(22050) 

# Play video at half speed:
AssumeFPS(12.5)

# Video and audio is now in sync, and plays in slow-motion.
Personal tools