Log in

View Full Version : Real-time Audio Processing


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.

Are_
23rd December 2015, 01:57
Maybe ViperSynth does support that, but unfortunately this is VapourSynth forum, and VapourSynth does not support audio (it somewhat does, but it may be not possible to filter it to your needs).

MysteryX
23rd December 2015, 02:48
ViperSynth... VapourSynth... almost the same, I'm getting there.

feisty2
23rd December 2015, 05:31
http://forum.doom9.org/showthread.php?t=171555

jackoneill
23rd December 2015, 10:16
VapourSynth can process 10 bit video. However, there is no official support for audio, and no filters for processing audio.

MysteryX
23rd December 2015, 17:45
OK. I got the 10-bit working with AviSynth for now. By the time I ever get a 10-bit screen and graphic card, VapourSynth may have evolved to support audio and do a better job for this task.

Mystery Keeper
25th December 2015, 20:46
MysteryX, VapourSynth is not made with audio processing in mind in the first place. Personally, I support this design. There is software for video processing and software for audio processing mixing (or muxing) them together is a separate task too.