Paul-Kun
8th August 2023, 02:13
Hi!
Sorry not exactly a noob, but I Just need to confirm if I'm might be doing something wrong because I have 2 videos that I need to merge, but when I run the avisynth script on my media player, is running completely fine, but when I try to encode it, to something none of the programs that I use for encoding seem to work, but I'm not sure if maybe is the Size of the project or some sort of other limitation, the scripts that I'm currently running are for opening the file using FFMS and changing the channels from 6 to 2, first script is
FFMS2("E:\DISC1\BDMV\STREAM\00109.m2ts", vtrack = -1, atrack = -1)
DownMix()
Normalize()
ConvertAudioTo16bit()
return Last
function DownMix(clip a, float "centergain", float "surroundgain")
{
a.ConvertAudioToFloat()
## 5.1 WAV channel layout:
fl = GetChannel(1)
fr = GetChannel(2)
fc = GetChannel(3)
lf = GetChannel(4) ## (LFE not used)
sl = GetChannel(5)
sr = GetChannel(6)
## add center
gc = Default(centergain, 1.0) * 0.7071
fl = MixAudio(fl, fc, 1.0, gc)
fr = MixAudio(fr, fc, 1.0, gc)
## add surround
gs = Default(surroundgain, 1.0) * 0.7071
fl = MixAudio(fl, sl, 1.0, gs)
fr = MixAudio(fr, sr, 1.0, gs)
return AudioDub(a, MergeChannels(fl, fr))
}
And the second script is
FFMS2("E:\DISC2\BDMV\STREAM\00109.m2ts", vtrack = -1, atrack = -1)
DownMix()
Normalize()
ConvertAudioTo16bit()
return Last
function DownMix(clip a, float "centergain", float "surroundgain")
{
a.ConvertAudioToFloat()
## 5.1 WAV channel layout:
fl = GetChannel(1)
fr = GetChannel(2)
fc = GetChannel(3)
lf = GetChannel(4) ## (LFE not used)
sl = GetChannel(5)
sr = GetChannel(6)
## add center
gc = Default(centergain, 1.0) * 0.7071
fl = MixAudio(fl, fc, 1.0, gc)
fr = MixAudio(fr, fc, 1.0, gc)
## add surround
gs = Default(surroundgain, 1.0) * 0.7071
fl = MixAudio(fl, sl, 1.0, gs)
fr = MixAudio(fr, sr, 1.0, gs)
return AudioDub(a, MergeChannels(fl, fr))
}
Note Drive E is not a disc drive but a hard drive.
And to merge it, since I wouldn't allow me to merge it directly from a single avisynth script I was using a 3rd one that is
v1 = AviSource("C:\Users\Paul-Kun\Desktop\justice 1.avs")
v2 = AviSource("C:\Users\Paul-Kun\Desktop\justice 2.avs")
v1+v2
Since this a Blu-ray the size of the files are pretty big at 30GB each and merging them in such a way is really resource intensive I don't know if there is any other way as I was trying to find other ways but nothing that I could use.
Sorry not exactly a noob, but I Just need to confirm if I'm might be doing something wrong because I have 2 videos that I need to merge, but when I run the avisynth script on my media player, is running completely fine, but when I try to encode it, to something none of the programs that I use for encoding seem to work, but I'm not sure if maybe is the Size of the project or some sort of other limitation, the scripts that I'm currently running are for opening the file using FFMS and changing the channels from 6 to 2, first script is
FFMS2("E:\DISC1\BDMV\STREAM\00109.m2ts", vtrack = -1, atrack = -1)
DownMix()
Normalize()
ConvertAudioTo16bit()
return Last
function DownMix(clip a, float "centergain", float "surroundgain")
{
a.ConvertAudioToFloat()
## 5.1 WAV channel layout:
fl = GetChannel(1)
fr = GetChannel(2)
fc = GetChannel(3)
lf = GetChannel(4) ## (LFE not used)
sl = GetChannel(5)
sr = GetChannel(6)
## add center
gc = Default(centergain, 1.0) * 0.7071
fl = MixAudio(fl, fc, 1.0, gc)
fr = MixAudio(fr, fc, 1.0, gc)
## add surround
gs = Default(surroundgain, 1.0) * 0.7071
fl = MixAudio(fl, sl, 1.0, gs)
fr = MixAudio(fr, sr, 1.0, gs)
return AudioDub(a, MergeChannels(fl, fr))
}
And the second script is
FFMS2("E:\DISC2\BDMV\STREAM\00109.m2ts", vtrack = -1, atrack = -1)
DownMix()
Normalize()
ConvertAudioTo16bit()
return Last
function DownMix(clip a, float "centergain", float "surroundgain")
{
a.ConvertAudioToFloat()
## 5.1 WAV channel layout:
fl = GetChannel(1)
fr = GetChannel(2)
fc = GetChannel(3)
lf = GetChannel(4) ## (LFE not used)
sl = GetChannel(5)
sr = GetChannel(6)
## add center
gc = Default(centergain, 1.0) * 0.7071
fl = MixAudio(fl, fc, 1.0, gc)
fr = MixAudio(fr, fc, 1.0, gc)
## add surround
gs = Default(surroundgain, 1.0) * 0.7071
fl = MixAudio(fl, sl, 1.0, gs)
fr = MixAudio(fr, sr, 1.0, gs)
return AudioDub(a, MergeChannels(fl, fr))
}
Note Drive E is not a disc drive but a hard drive.
And to merge it, since I wouldn't allow me to merge it directly from a single avisynth script I was using a 3rd one that is
v1 = AviSource("C:\Users\Paul-Kun\Desktop\justice 1.avs")
v2 = AviSource("C:\Users\Paul-Kun\Desktop\justice 2.avs")
v1+v2
Since this a Blu-ray the size of the files are pretty big at 30GB each and merging them in such a way is really resource intensive I don't know if there is any other way as I was trying to find other ways but nothing that I could use.