View Single Post
Old 16th October 2019, 20:04   #2  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,546
I see lots of plugins, maybe try to rename existing plugin folder away and try with only necessary plugins.
Then I would try Assumefps().

Then I would try upmixing using internal AviSynth functions.

Or Jenyok's function itself: this is the old version, you may have to adapt "GetLeft.../GetRight" to channel numbers 1 and 2
Code:
# STEREO to 5.1 audio convertion
#
function UpSoundOnSound(clip clp)
{
# Sound On Sound Profile
# SOS approach Profile with 20ms delay and some attenuation on surround

  a    = KillVideo(clp)
  back = a.soxfilter("filter 100-7000")
  fl   = a.GetLeftChannel()
  fr   = a.GetRightChannel()
  cc   = mixaudio(a.GetRightChannel(), a.GetLeftChannel(), 0.5, 0.5)
  lfe  = ConvertToMono(a).SoxFilter("lowpass 120", "vol -0.5")
  sl   = mixaudio(back.GetLeftChannel(),  back.GetRightChannel(), 0.668, -0.668)
  sr   = mixaudio(back.GetRightChannel(), back.GetLeftChannel(),  0.668, -0.668)
  sl   = DelayAudio(sl, 0.02)
  sr   = DelayAudio(sr, 0.02)

  return (MergeChannels(fl, fr, cc, lfe, sl, sr))
}
I found only an old stereo4.avsi where the location of sox is hardcoded "C:\PROGRAM FILES\AVISYNTH 2.5\PLUGINS\SOXFILTER_11\soxfilter.dll")
and I don't have that folder anymore since I am switching AviSynth versions anyway with Groucho's tool.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 16th October 2019 at 20:13.
Emulgator is offline   Reply With Quote