MysteryX
23rd December 2015, 00:08
I'm looking for a solution to shift video playback audio from 440hz to 432hz. I have this solution using AviSynth.
PluginPath=""
LoadPlugin(PluginPath+"LSMASHSource.dll")
LoadPlugin(PluginPath+"TimeStretch.dll")
Import(PluginPath+"UUSize4.avsi")
SetMTMode(3,4)
file = "Video.mp4"
LWLibavVideoSource(file, cache=false, threads=1)
AudioDub(LWLibavAudioSource(file, cache=false))
SetMTMode(2)
UUSize4(mod=4)
ResampleAudio(48000)
TimeStretchPlugin(pitch = 100.0 * 0.98181819915771484)
There are a few problems.
1. Buffering is not always fast enough and it sometimes lag
2. Audio and video sometimes go out of sync
3. It doesn't work for 10-bit videos. There might be a way to read 10-bit videos and display it as 8-bit, but on 10-bit displays, there will be no way to read and display 10-bit.
And now I thought: perhaps ViperSynth provides better options? Is there a better way to do it with ViperSynth, and does it support 10-bit video processing?
I haven't done any ViperSynth scripting yet.
PluginPath=""
LoadPlugin(PluginPath+"LSMASHSource.dll")
LoadPlugin(PluginPath+"TimeStretch.dll")
Import(PluginPath+"UUSize4.avsi")
SetMTMode(3,4)
file = "Video.mp4"
LWLibavVideoSource(file, cache=false, threads=1)
AudioDub(LWLibavAudioSource(file, cache=false))
SetMTMode(2)
UUSize4(mod=4)
ResampleAudio(48000)
TimeStretchPlugin(pitch = 100.0 * 0.98181819915771484)
There are a few problems.
1. Buffering is not always fast enough and it sometimes lag
2. Audio and video sometimes go out of sync
3. It doesn't work for 10-bit videos. There might be a way to read 10-bit videos and display it as 8-bit, but on 10-bit displays, there will be no way to read and display 10-bit.
And now I thought: perhaps ViperSynth provides better options? Is there a better way to do it with ViperSynth, and does it support 10-bit video processing?
I haven't done any ViperSynth scripting yet.