Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th August 2023, 02:13   #1  |  Link
Paul-Kun
Just Learning To Use This
 
Join Date: Aug 2012
Posts: 2
Merge 2 half videos but error on loading on encoder

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

Quote:
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
Quote:
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

Quote:
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.
Paul-Kun is offline   Reply With Quote
Old 8th August 2023, 02:31   #2  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 997
Code:
FFMS2("E:\DISC1\BDMV\STREAM\00109.m2ts", vtrack = -1, atrack = -1)
DownMix()
Normalize()
ConvertAudioTo16bit()
v1 = Last

FFMS2("E:\DISC2\BDMV\STREAM\00109.m2ts", vtrack = -1, atrack = -1)
DownMix()
Normalize()
ConvertAudioTo16bit()
v2 = Last

v1++v2
VoodooFX is offline   Reply With Quote
Old 9th August 2023, 01:08   #3  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 1,051
Quote:
Originally Posted by Paul-Kun View Post
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



And the second script is


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



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.
You could try MKVToolNix or tsmuxer to merge the clips...
__________________
Long term RipBot264 user.

RipBot264 modded builds..
*new* x264 & x265 addon packs..
TDS is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:57.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.