AviSynth / AviSynthPlus

AviSynth with improvements
http://avs-plus.net
930 stars 74 forks source link

After upgrading to 3.7.3, does the GetChannel function need to be changed? There is no sound output. #381

Open lyturn opened 6 months ago

lyturn commented 6 months ago

This is my script.


SetWorkingDir("c:\AviSynth+\plugins64+\")

v1 = FFmpegSource2("D:\video\v1.mp4",atrack=-2).TurnRight() v2 = FFmpegSource2("D:\video\v2.mp4",atrack=-2).TurnRight() a1=DirectShowSource("D:\video\v1.mp4") a2=DirectShowSource("D:\video\v2.mp4")

b=BlankClip(length=5307,width=2160,height=1920,fps=29,channels=2,color=$000000) xpos = 1080 ypos = 0 k=Overlay(b,v1)

video=Overlay(k,v2,x=xpos,y=ypos)

mono1=GetChannel(a1, 1).AmplifydB(7) mono2=GetChannel(a2, 2).AmplifydB(2)

audio=mergechannels(mono1,mono2)

AudioDub(video,audio)

pinterf commented 6 months ago

Are you sure that DirectShowSource returns the audio properly? I found this one but otherwise dunno: http://avisynth.nl/index.php/Internal_functions#OPT_UseWaveExtensible

qyot27 commented 6 months ago

Could DSS and the re-introduced audio cache be having some kind of conflict? Seeing as 3.7.2 is apparently fine and 3.7.3 isn't.

I certainly couldn't reproduce this with FFMS2 or Colorbars on Linux.

pinterf commented 6 months ago

Audio channel flags perhaps, haven't tried yet, could you reproduce it with arbitrary stereo source?

pinterf commented 5 months ago

Could not reproduce either. I've got sound. Need more info.