AssumeSampleRate (clip, int samplerate)
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, because the playback time is not changed.
- # Let's play 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.
另有:
SSRC (int samplerate, bool "fast")
SSRC Shibata Sample Rate Converter is a resampler. Audio is always converted to float. This filter will result in better audio quality than ResampleAudio.
It uses SSRC by Naoki Shibata, which offers the best resample quality available.
注:变调是一定的