View Full Version : Combining two vobsets
sjakke
3rd July 2005, 23:04
I'm trying to join the two discs of Lotr-return of the king EE, and after searching the forums I decided to join the vobs with avisynth. I've looked at other posts on this procedure, but I can't figure out the procedures, as I know nothing about creating .avs files.
I wrote this avs:
LoadPlugin("C:\programmer\autogk\DGMPGDec\DGDecode.dll")
first=mpeg2source("C:\test\disc1.d2v")
second=mpeg2source("C:\test\disc2.d2v")
first=wavsource("C:\test\disc1.wav")
second=wavsource("C:\test\disc2.wav")
unalignedsplice(first,second)
When I open it with Vdubmod an error occurs, it says "AviSource: could not locate video stream". This is the first time i'm playing around with avs, I don't know what I'm doing, and it's driving me mad. How can I get it to work?
mg262
3rd July 2005, 23:28
first=wavsource("C:\test\disc1.wav")
second=wavsource("C:\test\disc2.wav")
These two lines are replacing your video with audio rather than adding it. try replacing them with this:
first= first.audiodub( wavsource("C:\test\disc1.wav") )
second= second.audiodub( wavsource("C:\test\disc2.wav") )
_________________
You can also write
first+second
as a shorthand for the unalignedsplice line . And ++ is aligned splice. I haven't done this sort of stuff, so I'm not sure which of those is appropriate...
Backwoods
3rd July 2005, 23:29
EDIT: ^^^ Beat me to it with a much cleaner script.
LoadPlugin("C:\programmer\autogk\DGMPGDec\DGDecode.dll")
firstV=mpeg2source("C:\test\disc1.d2v")
secondV=mpeg2source("C:\test\disc2.d2v")
firstA=wavsource("C:\test\disc1.wav")
secondA=wavsource("C:\test\disc2.wav")
v1=AudioDub(firstV,firstA)
v2=AudioDub(secondV,secondA)
v1+v2
mg262
4th July 2005, 11:54
I don't know about cleaner... reusing variables isn't terribly nice!
Seeing you here has reminded me about EDLs...
sjakke
4th July 2005, 17:13
thnx guys now I can succesfully open the file in vdubmod....but then something funny happens, in the preview window, all that is blue in the movie is now red, and their skin colour is blue, and the picture is vertically flipped.
Ok the vertical flip is no problem, but the colour changes are. I tried to invert the colour and it only made it worse, by really inverting it. has anyone encountered this before?
by the way the versions i'm using are:
vdubmod 1.5.4.1, avisynth 2.5 and DGIndex 1.4.0RC5
Backwoods
4th July 2005, 23:43
Post your full script.
I don't know about cleaner... reusing variables isn't terribly nice!
Seeing you here has reminded me about EDLs...
Cleaner looking at least :) Also the EDLS...I didn't think you forgot. No rush, if and when you get around to it.
sjakke
5th July 2005, 02:07
I used what you wrote....did I mention that I've never written an avs before :confused: I'm a total noob in this area, and I'm very apreciative for any help I can get :)
mg262
5th July 2005, 02:20
I used what you wrote....did I mention that I've never written an avs before :confused: I'm a total noob in this area, and I'm very apreciative for any help I can get :)What happens if you just try this:
mpeg2source("C:\test\disc1.d2v")
on its own?
It sounds like what may be happening is that a YUV clip is being misread as RGB or vice versa (so the luma Y is turned into red, etc, and also the picture is flipped upside down)... but I'm don't know why this might be happening.
Also try opening the .avs with a media player.
sjakke
5th July 2005, 17:04
That's weird, I tried to encode a small sample with avs2avi, and the avi looked fine. Also after I had played the avs in mediaplayer2, and then opened the avs agian in vdubmod, it looked fine to. Don't know what happened there.
I could also mention that there was an audio delay, where the vobs were joined, but I fixed that with the extra "+" mg262 mentioned about aligned splice "thnx mg262, saved me alot of time there :) "
One more thing can I encode this with one avs script, I mean entering the crop commands and other filters, after the aligned splice command, and encode it straight from there?
mg262
5th July 2005, 17:21
No problem!One more thing can I encode this with one avs script, I mean entering the crop commands and other filters, after the aligned splice command, and encode it straight from there?Absolutely. The only thing to note is that if you're using a multi-pass encoding method, then each pass will apply the filters anew. This doesn't change what the output will look like but can slow things down if you're using slow filters. The way to work around this is to save the file in a lossless format (like HuffYUV) and encode that.
sjakke
5th July 2005, 17:35
Never heard about HuffYUV. Tell me if I'm right, what your'e saying to me is that I should run this:
LoadPlugin("C:\programmer\autogk\DGMPGDec\DGDecode.dll")
mpeg2source("C:\test\disc1.d2v")
first=mpeg2source("C:\test\disc1.d2v")
second=mpeg2source("C:\test\disc2.d2v")
first= first.audiodub(wavsource("C:\test\disc1.wav"))
second= second.audiodub(wavsource("C:\test\disc2.wav"))
first++second
with.....say avs2avi, heard that avs2avi does the job faster, and encode with HuffYUV. And then do another encode with a new script, where I just load the resulting avi, and then I'm done right?
mg262
5th July 2005, 17:42
None of those filters are slow, so you can just encode directly. You will know when something is slow because it will be very jerky when you try and scroll through it in VirtualDub. It's mainly things like heavy denoising filters that slow things down.
If you do add slow filters:
- Google should throw up huffyuv
- avs2avi doesn't output any audio, so you probably want to stick with VirtualDub(Mod)
- when you're throwing the huffyuv file into whatever (probably CCE or XVID?) you don't need to create another script -- just open the file in VirtualDubMod and save it again.
sjakke
5th July 2005, 17:51
But won't HuffYUV result in huge filsize, just guessing? And re-encoding it, won't that have an affect on quality?
And if I want to use Normalize.exe, on the wav's, and then convert to mp3 with Lame.exe, is it then possible for me to use the mp3's instead of wav. Or can vdubmod do this for me?
I'm sorry if I'm asking to many questions, but I want you to know that I'm really glad for your help, your'e a lifesaver.
mg262
5th July 2005, 18:05
Yes, sorry, I should have mentioned that HuffYUV (and all other lossless codecs) result in pretty large files -- maybe 500MB/min for HuffYUV and a bit less for some of the others. (I tend to work on episodic material so it's not too much of a problem, but the Lord of the rings is another matter!) For the moment I wouldn't worry about intermediate encoding for multipass... it's just something worth knowing about.
You can normalise in the script -- If I try and quote the command I'll get confused with the English/American spelling, but you can look it up in the documentation under ' Audio'. I've never played with mp3s, so you'll have to wait for someone else to give you a proper answer, but this is what I know:
- the AVI container wasn't designed to handle variable-rate audio. You can stick it in, but it's a bit of a hack.
- IIRC, the program NanDub (a modification of VirtualDub) can mux in mp3s
- If you want a container that can deal with this properly, search for Matroska and MKV
- There are better compression formats than mp3 around, including .AAC .
- i think @Nic has written plug-ins that will import all sorts of audio file formats... but they will all be converted to WAV internally. What you really want to do is take the output from AVISynth and convert that to whatever format you want (e.g. using lame and then using NanDub to mux it in).
sjakke
5th July 2005, 18:14
Sorry I was a bit to late on editing my previous reply, here:
And re-encoding it, won't that have an affect on quality?
mg262
5th July 2005, 18:20
Yes. But that's unavoidable if you're aiming to use less space for the audio. The alternative is just use the.AC3s from the DVD in your destination format (presumably .avi).
It's just occurred to me that you are probably talking about the video... the reason Huffyuv, etc. take so much space is precisely because they are lossless -- i.e. you don't lose any quality when you encoded to them.
sjakke
5th July 2005, 18:34
One more question, is it possible for me to just output the audio from the avs file? Then I could just create a new d2v file using both vobsets, and then load it with GKnot and mux the audio. If this is possible, then it would end my misery :)
This is why I initially started to think about using avisynth, because I couldn't get the audio in synch, with the video, using any other progs.
mg262
5th July 2005, 18:46
VirtualDubMod will do it... Streams/stream list and you'll get a save wav option. Or use avs2wav.
Backwoods
5th July 2005, 20:48
What are you aiming for with your final output?
sjakke
5th July 2005, 23:45
In the FaQ, at the avisynth homepage, it says "Q2.10 - Using the MPASource and AC3filter plugins you can import mp1/mp2/mp3 and AC3 audio." Does this also mean that I can combine the ac3's with avs. If so, how do I use MPASource?
Well, I started out learning about encoding with GKnot, and I progressed quite fast, but then AutoGK came along, and now I'm just used to relying on it to do everything for me. But now when I stumbled upon these two discs, I realised AutoGK could do nothing for me there, and that the hard way is much more fun and you get to apreciate your encodes, and make them as good as possible.
Now enough of that, don't know where that came from, whew.
My goal is to create a ess-standalone compatible avi, Divx6 - two passes or Target quality 75%, Original AC3 file, which is why I'm asking if it's possible to use AC3 in the avs.
And also I would like to learn how to use adjustsub, which AutoGK uses, and colourcorrection. If anyone can tell me how to implement this, point out filters, I would be extatic.
sjakke
6th July 2005, 00:01
change of mind I'd rather use Xvid because it gives a crisper video, whereas Divx is more blurred.
sjakke
7th July 2005, 04:01
any suggestions on my ac3 question?
Backwoods
8th July 2005, 02:52
Maybe you could encode each disc to a separate file then combine each file afterwards. Not sure if that would work but it would keep you from re-encoding the AC3.
You can combine video files of the same properties in VirtualDub without re-encoding.
mg262
8th July 2005, 05:21
any suggestions on my ac3 question?
Google 'ac3 join' gave:
http://forum.doom9.org/showpost.php?p=424067&postcount=6
MaximRecoil
12th July 2005, 04:53
Maybe I am missing something but it seems like this is being made out to be more complicated than it actually is. I know of a couple programs that can seamlessly merge DVD titles (such as the two halves of LotR); i.e. IFOEdit/VOBEdit and DVD2one. There are probably more out there as well. I always use DVD2one because it works well and it is a small, basic, easy to use program (the IFOEdit/VOBEdit method is more complicated and not particularly intuitive). In any event, once you have created a single title from multiple titles, you can then just process it as you would any other single DVD title.
Backwoods
12th July 2005, 06:22
Can DVD2ONE export without compression? Also is it free?
He could use DVD Shrink to do this too.
There are many choices.
MaximRecoil
12th July 2005, 19:06
Can DVD2ONE export without compression? Also is it free?
He could use DVD Shrink to do this too.
There are many choices.DVD2one can seamlessly merge multiple titles; the stream is untouched, i.e. no compression. Just make sure you set it to fit like a DL DVD if you are using SL, or set a custom size limit that is larger than what the file size will total; then it will not transcode because nothing needs to be reduced to fit your target. I don't think it is free, though it may have a trial version.
IFOEdit/VOBEdit can do the same thing, though it is sort of complicated compared to DVD2one and again, there is no compression applied.
If DVD-Shrink can seamlessly merge multiple titles, then I have never figured out how to do it. I know that it can put multiple titles onto a single DVD, but that really isn't the same thing. When you play the DVD you will get a slight pause at the end of each title as it resets to the next title when doing it that way.
Backwoods
13th July 2005, 17:36
When you play the DVD you will get a slight pause at the end of each title as it resets to the next title when doing it that way.
Does it? I haven't done it since 3.05 or which ever release that was. I know you can still do it in the new one but I have not had a reason to.
Also I was asking serious questions about DVD2ONE, wasn't being a jerk. Re-reading it now makes me think maybe you thought that. Again, I remember an old version of DVD2ONE and it just compressed...at least from what I remember.
MaximRecoil
14th July 2005, 00:50
Does it? I haven't done it since 3.05 or which ever release that was. I know you can still do it in the new one but I have not had a reason to.Like I said, if there is a way to seamlessly merge multiple titles into one title in DVD-Shrink, then I don't know what it is. How do you do it?
Also I was asking serious questions about DVD2ONE, wasn't being a jerk.I know.
Re-reading it now makes me think maybe you thought that.Nope.
Again, I remember an old version of DVD2ONE and it just compressed...at least from what I remember.I have version 1.5.1. Under the "compression" setting there is no option for "no compression" like DVD-Shrink has. However, if you choose as a destination, a size larger than you need (i.e. larger than the sum of the multiple file sizes you are joining), then it simply copies.
sjakke
14th July 2005, 03:35
As mentioned earlier I tried Vobedit, but it had a audio delay, plus one black frame, where the two vobsets were joined. DVD2ONE is not free, and the trial only outputs 30min of video. I've also tried to use DVD-shrink, but I can't figure out how to join the clips. And I also tried ifoedit, with no success.
Avisynth is the only thing that has successfully joined the vobsets, without an audio delay, plus it can remove the extra frame, which appears at the end of the first disc.....so I'm sticking with avisynth, and if won't give me ac3, then too bad, but at least it can fix the audio delay, and the extra frame.
But tnx anyways guys, all your help and suggestion are really appreciatet :)
Will ac3 be supported in avisynth 3.0? any thoughts...
And my question on how to use colorcorrection and adjustsubs, like AGK does?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.