leoenc
28th May 2013, 20:03
Hi
Trying to decode a big ProRes source with 10 mono audio tracks, I'm hitting the 2 GB RAM limit by Avisynth. The script is freezing vdub or ffmbc when the RAM fills to about 1.8 GB.
Can I write the following script more RAM friendly?
v = FFVideoSource("source.mov",cachefile = "source.mov.ffindex")
a1 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=1)
a2 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=2)
a3 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=3)
a4 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=4)
a5 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=5)
a6 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=6)
a7 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=7)
a8 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=8)
a9 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=9)
a10 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=10)
ch1 = GetChannel(a1, 1)
ch2 = GetChannel(a2, 1)
ch3 = GetChannel(a3, 1)
ch4 = GetChannel(a4, 1)
ch5 = GetChannel(a5, 1)
ch6 = GetChannel(a6, 1)
ch7 = GetChannel(a7, 1)
ch8 = GetChannel(a8, 1)
ch9 = GetChannel(a9, 1)
ch10 = GetChannel(a10, 1)
a = MergeChannels(ch1, ch2, ch3, ch4, ch5, ch6, ch7, ch8, ch9, ch10)
AudioDub(v, a)
Trying to decode a big ProRes source with 10 mono audio tracks, I'm hitting the 2 GB RAM limit by Avisynth. The script is freezing vdub or ffmbc when the RAM fills to about 1.8 GB.
Can I write the following script more RAM friendly?
v = FFVideoSource("source.mov",cachefile = "source.mov.ffindex")
a1 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=1)
a2 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=2)
a3 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=3)
a4 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=4)
a5 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=5)
a6 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=6)
a7 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=7)
a8 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=8)
a9 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=9)
a10 = FFAudioSource("source.mov", cachefile = "source.mov.ffindex", track=10)
ch1 = GetChannel(a1, 1)
ch2 = GetChannel(a2, 1)
ch3 = GetChannel(a3, 1)
ch4 = GetChannel(a4, 1)
ch5 = GetChannel(a5, 1)
ch6 = GetChannel(a6, 1)
ch7 = GetChannel(a7, 1)
ch8 = GetChannel(a8, 1)
ch9 = GetChannel(a9, 1)
ch10 = GetChannel(a10, 1)
a = MergeChannels(ch1, ch2, ch3, ch4, ch5, ch6, ch7, ch8, ch9, ch10)
AudioDub(v, a)